Package io.airlift.drift.codec.internal
Class ProtocolReader
java.lang.Object
io.airlift.drift.codec.internal.ProtocolReader
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionshortbytebooleanbooleanreadBool()boolean[]boolean[]booleanbytereadByte()bytedoubledouble[]double[]double<T extends Enum<T>>
TreadEnumField(ThriftCodec<T> enumCodec) readField(ThriftCodec<?> codec) shortreadI16()short[]short[]shortintreadI32()int[]int[]intlongreadI64()long[]long[]long<E> List<E>readList(ThriftCodec<E> elementCodec) <E> List<E>readListField(ThriftCodec<List<E>> listCodec) <K,V> Map<K, V> readMap(ThriftCodec<K> keyCodec, ThriftCodec<V> valueCodec) <K,V> Map<K, V> readMapField(ThriftCodec<Map<K, V>> mapCodec) <E> Set<E>readSet(ThriftCodec<E> elementCodec) <E> Set<E>readSetField(ThriftCodec<Set<E>> setCodec) voidvoid<T> TreadStructField(ThriftCodec<T> codec) voidtoString()
-
Constructor Details
-
ProtocolReader
-
-
Method Details
-
readStructBegin
- Throws:
TException
-
readStructEnd
- Throws:
TException
-
nextField
- Throws:
TException
-
getFieldId
public short getFieldId() -
getFieldType
public byte getFieldType() -
skipFieldData
- Throws:
TException
-
readField
- Throws:
Exception
-
readBinaryField
- Throws:
TException
-
readBoolField
- Throws:
TException
-
readByteField
- Throws:
TException
-
readDoubleField
- Throws:
TException
-
readI16Field
- Throws:
TException
-
readI32Field
- Throws:
TException
-
readI64Field
- Throws:
TException
-
readStringField
- Throws:
TException
-
readStructField
- Throws:
Exception
-
readBoolArrayField
- Throws:
TException
-
readI16ArrayField
- Throws:
TException
-
readI32ArrayField
- Throws:
TException
-
readI64ArrayField
- Throws:
TException
-
readDoubleArrayField
- Throws:
TException
-
readSetField
- Throws:
Exception
-
readListField
- Throws:
Exception
-
readMapField
- Throws:
Exception
-
readEnumField
- Throws:
Exception
-
readBinary
- Throws:
TException
-
readBool
- Throws:
TException
-
readByte
- Throws:
TException
-
readI16
- Throws:
TException
-
readI32
- Throws:
TException
-
readI64
- Throws:
TException
-
readDouble
- Throws:
TException
-
readString
- Throws:
TException
-
readBoolArray
- Throws:
TException
-
readI16Array
- Throws:
TException
-
readI32Array
- Throws:
TException
-
readI64Array
- Throws:
TException
-
readDoubleArray
- Throws:
TException
-
readSet
- Throws:
Exception
-
readList
- Throws:
Exception
-
readMap
- Throws:
Exception
-
toString
-