| Modifier and Type | Method and Description |
|---|---|
<T> ThriftCodec<T> |
ThriftCodecManager.getCodec(Class<T> javaType) |
ThriftCodec<?> |
ThriftCodecManager.getCodec(ThriftType type) |
ThriftCodec<?> |
ThriftCodecManager.getCodec(Type javaType) |
<T> ThriftCodec<T> |
ThriftCodecManager.getCodec(com.google.common.reflect.TypeToken<T> type) |
| Modifier and Type | Method and Description |
|---|---|
void |
ThriftCodecManager.addCodec(ThriftCodec<?> codec)
Adds or replaces the codec associated with the type contained in the codec.
|
| Constructor and Description |
|---|
ThriftCodecManager(ClassLoader parent,
ThriftCodec<?>... codecs) |
ThriftCodecManager(ThriftCodec<?>... codecs) |
ThriftCodecManager(ThriftCodecFactory factory,
ThriftCodec<?>... codecs) |
| Constructor and Description |
|---|
ThriftCodecManager(ThriftCodecFactory factory,
Set<ThriftCodec<?>> codecs) |
ThriftCodecManager(ThriftCodecFactory factory,
ThriftCatalog catalog,
Set<ThriftCodec<?>> codecs) |
| Modifier and Type | Method and Description |
|---|---|
void |
ThriftCodecBinder.bindCustomThriftCodec(ThriftCodec<?> thriftCodec) |
| Modifier and Type | Method and Description |
|---|---|
void |
ThriftCodecBinder.bindCustomThriftCodec(Class<? extends ThriftCodec<?>> thriftCodecType) |
void |
ThriftCodecBinder.bindCustomThriftCodec(com.google.inject.Key<? extends ThriftCodec<?>> thriftCodecKey) |
void |
ThriftCodecBinder.bindCustomThriftCodec(com.google.inject.TypeLiteral<? extends ThriftCodec<?>> thriftCodecType) |
| Modifier and Type | Class and Description |
|---|---|
class |
EnumThriftCodec<T extends Enum<T>>
EnumThriftCodec is a codec for Java enum types.
|
| Modifier and Type | Method and Description |
|---|---|
ThriftCodec<?> |
ThriftCodecFactory.generateThriftTypeCodec(ThriftCodecManager codecManager,
ThriftStructMetadata metadata) |
| Modifier and Type | Method and Description |
|---|---|
<T extends Enum<T>> |
TProtocolReader.readEnumField(ThriftCodec<T> enumCodec) |
Object |
TProtocolReader.readField(ThriftCodec<?> codec) |
<E> List<E> |
TProtocolReader.readList(ThriftCodec<E> elementCodec) |
<E> List<E> |
TProtocolReader.readListField(ThriftCodec<List<E>> listCodec) |
<K,V> Map<K,V> |
TProtocolReader.readMap(ThriftCodec<K> keyCodec,
ThriftCodec<V> valueCodec) |
<K,V> Map<K,V> |
TProtocolReader.readMap(ThriftCodec<K> keyCodec,
ThriftCodec<V> valueCodec) |
<K,V> Map<K,V> |
TProtocolReader.readMapField(ThriftCodec<Map<K,V>> mapCodec) |
<E> Set<E> |
TProtocolReader.readSet(ThriftCodec<E> elementCodec) |
<E> Set<E> |
TProtocolReader.readSetField(ThriftCodec<Set<E>> setCodec) |
<T> T |
TProtocolReader.readStructField(ThriftCodec<T> codec) |
<T extends Enum<T>> |
TProtocolWriter.writeEnumField(String name,
short id,
ThriftCodec<T> codec,
T enumValue) |
<T> void |
TProtocolWriter.writeField(String name,
short id,
ThriftCodec<T> codec,
T value) |
<T> void |
TProtocolWriter.writeList(ThriftCodec<T> elementCodec,
List<T> list) |
<E> void |
TProtocolWriter.writeListField(String name,
short id,
ThriftCodec<List<E>> codec,
List<E> list) |
<K,V> void |
TProtocolWriter.writeMap(ThriftCodec<K> keyCodec,
ThriftCodec<V> valueCodec,
Map<K,V> map) |
<K,V> void |
TProtocolWriter.writeMap(ThriftCodec<K> keyCodec,
ThriftCodec<V> valueCodec,
Map<K,V> map) |
<K,V> void |
TProtocolWriter.writeMapField(String name,
short id,
ThriftCodec<Map<K,V>> codec,
Map<K,V> map) |
<T> void |
TProtocolWriter.writeSet(ThriftCodec<T> elementCodec,
Set<T> set) |
<E> void |
TProtocolWriter.writeSetField(String name,
short id,
ThriftCodec<Set<E>> codec,
Set<E> set) |
<T> void |
TProtocolWriter.writeStructField(String name,
short id,
ThriftCodec<T> codec,
T struct) |
| Modifier and Type | Class and Description |
|---|---|
class |
BooleanArrayThriftCodec |
class |
BooleanThriftCodec |
class |
ByteBufferThriftCodec |
class |
ByteThriftCodec |
class |
DoubleArrayThriftCodec |
class |
DoubleThriftCodec |
class |
IntArrayThriftCodec |
class |
IntegerThriftCodec |
class |
ListThriftCodec<T> |
class |
LongArrayThriftCodec |
class |
LongThriftCodec |
class |
MapThriftCodec<K,V> |
class |
SetThriftCodec<T> |
class |
ShortArrayThriftCodec |
class |
ShortThriftCodec |
class |
StringThriftCodec |
class |
VoidThriftCodec
VoidThriftCodec is a convenience codec used for service invocations that return void type.
|
| Constructor and Description |
|---|
ListThriftCodec(ThriftType type,
ThriftCodec<T> elementCodec) |
MapThriftCodec(ThriftType type,
ThriftCodec<K> keyCodec,
ThriftCodec<V> valueCodec) |
MapThriftCodec(ThriftType type,
ThriftCodec<K> keyCodec,
ThriftCodec<V> valueCodec) |
SetThriftCodec(ThriftType type,
ThriftCodec<T> elementCodec) |
| Modifier and Type | Class and Description |
|---|---|
class |
CoercionThriftCodec<T>
CoercionThriftCodec encapsulates a ThriftCodec and coerces the values to another type using
the supplied ThriftCoercion.
|
| Constructor and Description |
|---|
CoercionThriftCodec(ThriftCodec<?> codec,
TypeCoercion typeCoercion) |
| Modifier and Type | Method and Description |
|---|---|
ThriftCodec<?> |
CompilerThriftCodecFactory.generateThriftTypeCodec(ThriftCodecManager codecManager,
ThriftStructMetadata metadata) |
ThriftCodec<T> |
ThriftCodecByteCodeGenerator.getThriftCodec() |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractReflectionThriftCodec<T> |
class |
ReflectionThriftStructCodec<T> |
class |
ReflectionThriftUnionCodec<T> |
| Modifier and Type | Field and Description |
|---|---|
protected SortedMap<Short,ThriftCodec<?>> |
AbstractReflectionThriftCodec.fields |
| Modifier and Type | Method and Description |
|---|---|
ThriftCodec<?> |
ReflectionThriftCodecFactory.generateThriftTypeCodec(ThriftCodecManager codecManager,
ThriftStructMetadata metadata) |
Copyright © 2012-2017. All Rights Reserved.