| Modifier and Type | Class and Description |
|---|---|
class |
DelegateCodec<T>
A placeholder for a
ThriftCodec that defers computation of the real codec
until it is actually used, and then just delegates to that codec. |
| Modifier and Type | Method and Description |
|---|---|
<T> ThriftCodec<T> |
ThriftCodecManager.getCachedCodecIfPresent(Class<T> javaType) |
ThriftCodec<?> |
ThriftCodecManager.getCachedCodecIfPresent(ThriftType type) |
ThriftCodec<?> |
ThriftCodecManager.getCachedCodecIfPresent(Type javaType) |
<T> ThriftCodec<T> |
ThriftCodecManager.getCachedCodecIfPresent(com.google.common.reflect.TypeToken<T> type) |
<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) |
ThriftCodec<?> |
ThriftCodecManager.getElementCodec(ThriftTypeReference thriftTypeReference) |
| 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>> |
ProtocolReader.readEnumField(ThriftCodec<T> enumCodec) |
Object |
ProtocolReader.readField(ThriftCodec<?> codec) |
<E> List<E> |
ProtocolReader.readList(ThriftCodec<E> elementCodec) |
<E> List<E> |
ProtocolReader.readListField(ThriftCodec<List<E>> listCodec) |
<K,V> Map<K,V> |
ProtocolReader.readMap(ThriftCodec<K> keyCodec,
ThriftCodec<V> valueCodec) |
<K,V> Map<K,V> |
ProtocolReader.readMap(ThriftCodec<K> keyCodec,
ThriftCodec<V> valueCodec) |
<K,V> Map<K,V> |
ProtocolReader.readMapField(ThriftCodec<Map<K,V>> mapCodec) |
<E> Set<E> |
ProtocolReader.readSet(ThriftCodec<E> elementCodec) |
<E> Set<E> |
ProtocolReader.readSetField(ThriftCodec<Set<E>> setCodec) |
<T> T |
ProtocolReader.readStructField(ThriftCodec<T> codec) |
<T extends Enum<T>> |
ProtocolWriter.writeEnumField(String name,
short id,
ThriftCodec<T> codec,
T enumValue) |
<T> void |
ProtocolWriter.writeField(String name,
short id,
ThriftCodec<T> codec,
T value) |
<T> void |
ProtocolWriter.writeList(ThriftCodec<T> elementCodec,
List<T> list) |
<E> void |
ProtocolWriter.writeListField(String name,
short id,
ThriftCodec<List<E>> codec,
List<E> list) |
<K,V> void |
ProtocolWriter.writeMap(ThriftCodec<K> keyCodec,
ThriftCodec<V> valueCodec,
Map<K,V> map) |
<K,V> void |
ProtocolWriter.writeMap(ThriftCodec<K> keyCodec,
ThriftCodec<V> valueCodec,
Map<K,V> map) |
<K,V> void |
ProtocolWriter.writeMapField(String name,
short id,
ThriftCodec<Map<K,V>> codec,
Map<K,V> map) |
<T> void |
ProtocolWriter.writeSet(ThriftCodec<T> elementCodec,
Set<T> set) |
<E> void |
ProtocolWriter.writeSetField(String name,
short id,
ThriftCodec<Set<E>> codec,
Set<E> set) |
<T> void |
ProtocolWriter.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 |
OptionalDoubleThriftCodec |
class |
OptionalIntThriftCodec |
class |
OptionalLongThriftCodec |
class |
OptionalThriftCodec<T> |
class |
SetThriftCodec<T> |
class |
ShortArrayThriftCodec |
class |
ShortThriftCodec |
class |
StringThriftCodec |
class |
UriThriftCodec |
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) |
OptionalThriftCodec(ThriftType type,
ThriftCodec<T> elementCodec) |
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–2024. All rights reserved.