Package org.apache.parquet.format
Class InterningProtocol
- java.lang.Object
-
- org.apache.thrift.protocol.TProtocol
-
- org.apache.parquet.format.InterningProtocol
-
public class InterningProtocol extends org.apache.thrift.protocol.TProtocolTProtocol that interns the strings.
-
-
Constructor Summary
Constructors Constructor Description InterningProtocol(org.apache.thrift.protocol.TProtocol delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)org.apache.thrift.transport.TTransportgetTransport()inthashCode()ByteBufferreadBinary()booleanreadBool()bytereadByte()doublereadDouble()org.apache.thrift.protocol.TFieldreadFieldBegin()voidreadFieldEnd()shortreadI16()intreadI32()longreadI64()org.apache.thrift.protocol.TListreadListBegin()voidreadListEnd()org.apache.thrift.protocol.TMapreadMapBegin()voidreadMapEnd()org.apache.thrift.protocol.TMessagereadMessageBegin()voidreadMessageEnd()org.apache.thrift.protocol.TSetreadSetBegin()voidreadSetEnd()StringreadString()org.apache.thrift.protocol.TStructreadStructBegin()voidreadStructEnd()voidreset()StringtoString()voidwriteBinary(ByteBuffer buf)voidwriteBool(boolean b)voidwriteByte(byte b)voidwriteDouble(double dub)voidwriteFieldBegin(org.apache.thrift.protocol.TField field)voidwriteFieldEnd()voidwriteFieldStop()voidwriteI16(short i16)voidwriteI32(int i32)voidwriteI64(long i64)voidwriteListBegin(org.apache.thrift.protocol.TList list)voidwriteListEnd()voidwriteMapBegin(org.apache.thrift.protocol.TMap map)voidwriteMapEnd()voidwriteMessageBegin(org.apache.thrift.protocol.TMessage message)voidwriteMessageEnd()voidwriteSetBegin(org.apache.thrift.protocol.TSet set)voidwriteSetEnd()voidwriteString(String str)voidwriteStructBegin(org.apache.thrift.protocol.TStruct struct)voidwriteStructEnd()
-
-
-
Method Detail
-
getTransport
public org.apache.thrift.transport.TTransport getTransport()
- Overrides:
getTransportin classorg.apache.thrift.protocol.TProtocol
-
writeMessageBegin
public void writeMessageBegin(org.apache.thrift.protocol.TMessage message) throws org.apache.thrift.TException- Specified by:
writeMessageBeginin classorg.apache.thrift.protocol.TProtocol- Throws:
org.apache.thrift.TException
-
writeMessageEnd
public void writeMessageEnd() throws org.apache.thrift.TException- Specified by:
writeMessageEndin classorg.apache.thrift.protocol.TProtocol- Throws:
org.apache.thrift.TException
-
writeStructBegin
public void writeStructBegin(org.apache.thrift.protocol.TStruct struct) throws org.apache.thrift.TException- Specified by:
writeStructBeginin classorg.apache.thrift.protocol.TProtocol- Throws:
org.apache.thrift.TException
-
writeStructEnd
public void writeStructEnd() throws org.apache.thrift.TException- Specified by:
writeStructEndin classorg.apache.thrift.protocol.TProtocol- Throws:
org.apache.thrift.TException
-
writeFieldBegin
public void writeFieldBegin(org.apache.thrift.protocol.TField field) throws org.apache.thrift.TException- Specified by:
writeFieldBeginin classorg.apache.thrift.protocol.TProtocol- Throws:
org.apache.thrift.TException
-
writeFieldEnd
public void writeFieldEnd() throws org.apache.thrift.TException- Specified by:
writeFieldEndin classorg.apache.thrift.protocol.TProtocol- Throws:
org.apache.thrift.TException
-
writeFieldStop
public void writeFieldStop() throws org.apache.thrift.TException- Specified by:
writeFieldStopin classorg.apache.thrift.protocol.TProtocol- Throws:
org.apache.thrift.TException
-
writeMapBegin
public void writeMapBegin(org.apache.thrift.protocol.TMap map) throws org.apache.thrift.TException- Specified by:
writeMapBeginin classorg.apache.thrift.protocol.TProtocol- Throws:
org.apache.thrift.TException
-
writeMapEnd
public void writeMapEnd() throws org.apache.thrift.TException- Specified by:
writeMapEndin classorg.apache.thrift.protocol.TProtocol- Throws:
org.apache.thrift.TException
-
writeListBegin
public void writeListBegin(org.apache.thrift.protocol.TList list) throws org.apache.thrift.TException- Specified by:
writeListBeginin classorg.apache.thrift.protocol.TProtocol- Throws:
org.apache.thrift.TException
-
writeListEnd
public void writeListEnd() throws org.apache.thrift.TException- Specified by:
writeListEndin classorg.apache.thrift.protocol.TProtocol- Throws:
org.apache.thrift.TException
-
writeSetBegin
public void writeSetBegin(org.apache.thrift.protocol.TSet set) throws org.apache.thrift.TException- Specified by:
writeSetBeginin classorg.apache.thrift.protocol.TProtocol- Throws:
org.apache.thrift.TException
-
writeSetEnd
public void writeSetEnd() throws org.apache.thrift.TException- Specified by:
writeSetEndin classorg.apache.thrift.protocol.TProtocol- Throws:
org.apache.thrift.TException
-
writeBool
public void writeBool(boolean b) throws org.apache.thrift.TException- Specified by:
writeBoolin classorg.apache.thrift.protocol.TProtocol- Throws:
org.apache.thrift.TException
-
writeByte
public void writeByte(byte b) throws org.apache.thrift.TException- Specified by:
writeBytein classorg.apache.thrift.protocol.TProtocol- Throws:
org.apache.thrift.TException
-
writeI16
public void writeI16(short i16) throws org.apache.thrift.TException- Specified by:
writeI16in classorg.apache.thrift.protocol.TProtocol- Throws:
org.apache.thrift.TException
-
writeI32
public void writeI32(int i32) throws org.apache.thrift.TException- Specified by:
writeI32in classorg.apache.thrift.protocol.TProtocol- Throws:
org.apache.thrift.TException
-
writeI64
public void writeI64(long i64) throws org.apache.thrift.TException- Specified by:
writeI64in classorg.apache.thrift.protocol.TProtocol- Throws:
org.apache.thrift.TException
-
writeDouble
public void writeDouble(double dub) throws org.apache.thrift.TException- Specified by:
writeDoublein classorg.apache.thrift.protocol.TProtocol- Throws:
org.apache.thrift.TException
-
writeString
public void writeString(String str) throws org.apache.thrift.TException
- Specified by:
writeStringin classorg.apache.thrift.protocol.TProtocol- Throws:
org.apache.thrift.TException
-
writeBinary
public void writeBinary(ByteBuffer buf) throws org.apache.thrift.TException
- Specified by:
writeBinaryin classorg.apache.thrift.protocol.TProtocol- Throws:
org.apache.thrift.TException
-
readMessageBegin
public org.apache.thrift.protocol.TMessage readMessageBegin() throws org.apache.thrift.TException- Specified by:
readMessageBeginin classorg.apache.thrift.protocol.TProtocol- Throws:
org.apache.thrift.TException
-
readMessageEnd
public void readMessageEnd() throws org.apache.thrift.TException- Specified by:
readMessageEndin classorg.apache.thrift.protocol.TProtocol- Throws:
org.apache.thrift.TException
-
readStructBegin
public org.apache.thrift.protocol.TStruct readStructBegin() throws org.apache.thrift.TException- Specified by:
readStructBeginin classorg.apache.thrift.protocol.TProtocol- Throws:
org.apache.thrift.TException
-
readStructEnd
public void readStructEnd() throws org.apache.thrift.TException- Specified by:
readStructEndin classorg.apache.thrift.protocol.TProtocol- Throws:
org.apache.thrift.TException
-
readFieldBegin
public org.apache.thrift.protocol.TField readFieldBegin() throws org.apache.thrift.TException- Specified by:
readFieldBeginin classorg.apache.thrift.protocol.TProtocol- Throws:
org.apache.thrift.TException
-
readFieldEnd
public void readFieldEnd() throws org.apache.thrift.TException- Specified by:
readFieldEndin classorg.apache.thrift.protocol.TProtocol- Throws:
org.apache.thrift.TException
-
readMapBegin
public org.apache.thrift.protocol.TMap readMapBegin() throws org.apache.thrift.TException- Specified by:
readMapBeginin classorg.apache.thrift.protocol.TProtocol- Throws:
org.apache.thrift.TException
-
readMapEnd
public void readMapEnd() throws org.apache.thrift.TException- Specified by:
readMapEndin classorg.apache.thrift.protocol.TProtocol- Throws:
org.apache.thrift.TException
-
readListBegin
public org.apache.thrift.protocol.TList readListBegin() throws org.apache.thrift.TException- Specified by:
readListBeginin classorg.apache.thrift.protocol.TProtocol- Throws:
org.apache.thrift.TException
-
readListEnd
public void readListEnd() throws org.apache.thrift.TException- Specified by:
readListEndin classorg.apache.thrift.protocol.TProtocol- Throws:
org.apache.thrift.TException
-
readSetBegin
public org.apache.thrift.protocol.TSet readSetBegin() throws org.apache.thrift.TException- Specified by:
readSetBeginin classorg.apache.thrift.protocol.TProtocol- Throws:
org.apache.thrift.TException
-
readSetEnd
public void readSetEnd() throws org.apache.thrift.TException- Specified by:
readSetEndin classorg.apache.thrift.protocol.TProtocol- Throws:
org.apache.thrift.TException
-
readBool
public boolean readBool() throws org.apache.thrift.TException- Specified by:
readBoolin classorg.apache.thrift.protocol.TProtocol- Throws:
org.apache.thrift.TException
-
readByte
public byte readByte() throws org.apache.thrift.TException- Specified by:
readBytein classorg.apache.thrift.protocol.TProtocol- Throws:
org.apache.thrift.TException
-
readI16
public short readI16() throws org.apache.thrift.TException- Specified by:
readI16in classorg.apache.thrift.protocol.TProtocol- Throws:
org.apache.thrift.TException
-
readI32
public int readI32() throws org.apache.thrift.TException- Specified by:
readI32in classorg.apache.thrift.protocol.TProtocol- Throws:
org.apache.thrift.TException
-
readI64
public long readI64() throws org.apache.thrift.TException- Specified by:
readI64in classorg.apache.thrift.protocol.TProtocol- Throws:
org.apache.thrift.TException
-
readDouble
public double readDouble() throws org.apache.thrift.TException- Specified by:
readDoublein classorg.apache.thrift.protocol.TProtocol- Throws:
org.apache.thrift.TException
-
readString
public String readString() throws org.apache.thrift.TException
- Specified by:
readStringin classorg.apache.thrift.protocol.TProtocol- Throws:
org.apache.thrift.TException
-
readBinary
public ByteBuffer readBinary() throws org.apache.thrift.TException
- Specified by:
readBinaryin classorg.apache.thrift.protocol.TProtocol- Throws:
org.apache.thrift.TException
-
reset
public void reset()
- Overrides:
resetin classorg.apache.thrift.protocol.TProtocol
-
-