Package org.apache.thrift.partial
Class ThriftStructProcessor
java.lang.Object
org.apache.thrift.partial.ThriftStructProcessor
- All Implemented Interfaces:
ThriftFieldValueProcessor<TBase>
Provides a way to create and initialize an instance of TBase during partial deserialization.
This class is supposed to be used as a helper class for PartialThriftDeserializer.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateNewList(int expectedSize) createNewMap(int expectedSize) createNewSet(int expectedSize) createNewStruct(ThriftMetadata.ThriftStruct metadata) prepareBinary(ByteBuffer buffer) prepareEnum(Class<? extends TEnum> enumClass, int ordinal) prepareList(Object instance) prepareMap(Object instance) prepareSet(Object instance) prepareString(ByteBuffer buffer) prepareStruct(Object instance) voidsetBinary(TBase valueCollection, TFieldIdEnum fieldId, ByteBuffer value) voidsetBool(TBase valueCollection, TFieldIdEnum fieldId, boolean value) voidsetByte(TBase valueCollection, TFieldIdEnum fieldId, byte value) voidsetDouble(TBase valueCollection, TFieldIdEnum fieldId, double value) voidsetEnumField(TBase valueCollection, TFieldIdEnum fieldId, Object value) voidsetInt16(TBase valueCollection, TFieldIdEnum fieldId, short value) voidsetInt32(TBase valueCollection, TFieldIdEnum fieldId, int value) voidsetInt64(TBase valueCollection, TFieldIdEnum fieldId, long value) voidsetListElement(Object instance, int index, Object value) voidsetListField(TBase valueCollection, TFieldIdEnum fieldId, Object value) voidsetMapElement(Object instance, int index, Object key, Object value) voidsetMapField(TBase valueCollection, TFieldIdEnum fieldId, Object value) voidsetSetElement(Object instance, int index, Object value) voidsetSetField(TBase valueCollection, TFieldIdEnum fieldId, Object value) voidsetString(TBase valueCollection, TFieldIdEnum fieldId, ByteBuffer buffer) voidsetStructField(TBase valueCollection, TFieldIdEnum fieldId, Object value)
-
Constructor Details
-
ThriftStructProcessor
public ThriftStructProcessor()
-
-
Method Details
-
createNewStruct
- Specified by:
createNewStructin interfaceThriftFieldValueProcessor<TBase>
-
prepareStruct
- Specified by:
prepareStructin interfaceThriftFieldValueProcessor<TBase>
-
createNewList
- Specified by:
createNewListin interfaceThriftFieldValueProcessor<TBase>
-
setListElement
- Specified by:
setListElementin interfaceThriftFieldValueProcessor<TBase>
-
prepareList
- Specified by:
prepareListin interfaceThriftFieldValueProcessor<TBase>
-
createNewMap
- Specified by:
createNewMapin interfaceThriftFieldValueProcessor<TBase>
-
setMapElement
- Specified by:
setMapElementin interfaceThriftFieldValueProcessor<TBase>
-
prepareMap
- Specified by:
prepareMapin interfaceThriftFieldValueProcessor<TBase>
-
createNewSet
- Specified by:
createNewSetin interfaceThriftFieldValueProcessor<TBase>
-
setSetElement
- Specified by:
setSetElementin interfaceThriftFieldValueProcessor<TBase>
-
prepareSet
- Specified by:
prepareSetin interfaceThriftFieldValueProcessor<TBase>
-
prepareEnum
- Specified by:
prepareEnumin interfaceThriftFieldValueProcessor<TBase>
-
prepareString
- Specified by:
prepareStringin interfaceThriftFieldValueProcessor<TBase>
-
prepareBinary
- Specified by:
prepareBinaryin interfaceThriftFieldValueProcessor<TBase>
-
setBool
- Specified by:
setBoolin interfaceThriftFieldValueProcessor<TBase>
-
setByte
- Specified by:
setBytein interfaceThriftFieldValueProcessor<TBase>
-
setInt16
- Specified by:
setInt16in interfaceThriftFieldValueProcessor<TBase>
-
setInt32
- Specified by:
setInt32in interfaceThriftFieldValueProcessor<TBase>
-
setInt64
- Specified by:
setInt64in interfaceThriftFieldValueProcessor<TBase>
-
setDouble
- Specified by:
setDoublein interfaceThriftFieldValueProcessor<TBase>
-
setBinary
- Specified by:
setBinaryin interfaceThriftFieldValueProcessor<TBase>
-
setString
- Specified by:
setStringin interfaceThriftFieldValueProcessor<TBase>
-
setEnumField
- Specified by:
setEnumFieldin interfaceThriftFieldValueProcessor<TBase>
-
setListField
- Specified by:
setListFieldin interfaceThriftFieldValueProcessor<TBase>
-
setMapField
- Specified by:
setMapFieldin interfaceThriftFieldValueProcessor<TBase>
-
setSetField
- Specified by:
setSetFieldin interfaceThriftFieldValueProcessor<TBase>
-
setStructField
- Specified by:
setStructFieldin interfaceThriftFieldValueProcessor<TBase>
-