/
githubmirror
/
the-algorithm
Обзор
Документация
Войти
/
githubmirror
/
the-algorithm
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/java/com/twitter/search/earlybird/common/EarlybirdThriftBackend.java
28 строк
804 B
twitter-team
Twitter Recommendation Algorithm
01 апр 2023, 01:36
01 апр 2023, 01:36
ef4c5eb
Код
Авторство
О чём код?
package com.twitter.search.earlybird.common; import javax.inject.Inject; import javax.inject.Singleton; import org.apache.thrift.protocol.TProtocolFactory; import com.twitter.finagle.Service; import com.twitter.search.common.util.thrift.ThriftToBytesFilter; import com.twitter.search.earlybird.thrift.EarlybirdService; @Singleton public class EarlybirdThriftBackend extends EarlybirdService.ServiceToClient { /** * Wrapping the bytes svc back to a EarlybirdService.ServiceToClient, which * is a EarlybirdService.ServiceIface again. */ @Inject public EarlybirdThriftBackend( ThriftToBytesFilter thriftToBytesFilter, Service<byte[], byte[]> byteService, TProtocolFactory protocolFactory) { super(thriftToBytesFilter.andThen(byteService), protocolFactory); } }