Package org.apache.parquet.format
Class InterningProtocol
java.lang.Object
org.apache.thrift.protocol.TProtocol
org.apache.parquet.format.InterningProtocol
- All Implemented Interfaces:
org.apache.thrift.protocol.TReadProtocol,org.apache.thrift.protocol.TWriteProtocol
public class InterningProtocol
extends org.apache.thrift.protocol.TProtocol
TProtocol that interns the strings.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.thrift.protocol.TProtocol
org.apache.thrift.protocol.TProtocol.ReadCallback<T extends Object,R extends Object>, org.apache.thrift.protocol.TProtocol.ReadCollectionCallback<R extends Object>, org.apache.thrift.protocol.TProtocol.ReadMapEntryCallback<K extends Object, V extends Object>, org.apache.thrift.protocol.TProtocol.WriteCallback<T extends Object> -
Field Summary
Fields inherited from class org.apache.thrift.protocol.TProtocol
skippedBytes, trans_ -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintgetMinSerializedSize(byte type) org.apache.thrift.transport.TTransportinthashCode()booleanreadBool()bytereadByte()doubleorg.apache.thrift.protocol.TFieldvoidshortreadI16()intreadI32()longreadI64()org.apache.thrift.protocol.TListvoidorg.apache.thrift.protocol.TMapvoidorg.apache.thrift.protocol.TMessagevoidorg.apache.thrift.protocol.TSetvoidorg.apache.thrift.protocol.TStructvoidreadUuid()voidreset()toString()voidwriteBinary(ByteBuffer buf) voidwriteBool(boolean b) voidwriteByte(byte b) voidwriteDouble(double dub) voidwriteFieldBegin(org.apache.thrift.protocol.TField field) voidvoidvoidwriteI16(short i16) voidwriteI32(int i32) voidwriteI64(long i64) voidwriteListBegin(org.apache.thrift.protocol.TList list) voidvoidwriteMapBegin(org.apache.thrift.protocol.TMap map) voidvoidwriteMessageBegin(org.apache.thrift.protocol.TMessage message) voidvoidwriteSetBegin(org.apache.thrift.protocol.TSet set) voidvoidwriteString(String str) voidwriteStructBegin(org.apache.thrift.protocol.TStruct struct) voidvoidMethods inherited from class org.apache.thrift.protocol.TProtocol
checkReadBytesAvailable, checkReadBytesAvailable, checkReadBytesAvailable, decrementRecursionDepth, getScheme, incrementRecursionDepth, readField, readFieldBeginData, readList, readList, readList, readMap, readMap, readMap, readMap, readMap, readMessage, readSet, readSet, readSet, readStruct, skip, skip, skipBinary, skipBool, skipByte, skipBytes, skipDouble, skipI16, skipI32, skipI64, writeField, writeList, writeMap, writeMessage, writeSet, writeStruct
-
Constructor Details
-
InterningProtocol
public InterningProtocol(org.apache.thrift.protocol.TProtocol delegate)
-
-
Method Details
-
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 - Throws:
org.apache.thrift.TException
-
writeMessageEnd
public void writeMessageEnd() throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-
hashCode
public int hashCode() -
writeStructBegin
public void writeStructBegin(org.apache.thrift.protocol.TStruct struct) throws org.apache.thrift.TException - Throws:
org.apache.thrift.TException
-
writeStructEnd
public void writeStructEnd() throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-
writeFieldBegin
public void writeFieldBegin(org.apache.thrift.protocol.TField field) throws org.apache.thrift.TException - Throws:
org.apache.thrift.TException
-
writeFieldEnd
public void writeFieldEnd() throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-
writeFieldStop
public void writeFieldStop() throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-
writeMapBegin
public void writeMapBegin(org.apache.thrift.protocol.TMap map) throws org.apache.thrift.TException - Throws:
org.apache.thrift.TException
-
writeMapEnd
public void writeMapEnd() throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-
writeListBegin
public void writeListBegin(org.apache.thrift.protocol.TList list) throws org.apache.thrift.TException - Throws:
org.apache.thrift.TException
-
writeListEnd
public void writeListEnd() throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-
writeSetBegin
public void writeSetBegin(org.apache.thrift.protocol.TSet set) throws org.apache.thrift.TException - Throws:
org.apache.thrift.TException
-
writeSetEnd
public void writeSetEnd() throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-
writeBool
public void writeBool(boolean b) throws org.apache.thrift.TException - Throws:
org.apache.thrift.TException
-
writeByte
public void writeByte(byte b) throws org.apache.thrift.TException - Throws:
org.apache.thrift.TException
-
writeI16
public void writeI16(short i16) throws org.apache.thrift.TException - Throws:
org.apache.thrift.TException
-
writeI32
public void writeI32(int i32) throws org.apache.thrift.TException - Throws:
org.apache.thrift.TException
-
writeI64
public void writeI64(long i64) throws org.apache.thrift.TException - Throws:
org.apache.thrift.TException
-
writeUuid
- Throws:
org.apache.thrift.TException
-
writeDouble
public void writeDouble(double dub) throws org.apache.thrift.TException - Throws:
org.apache.thrift.TException
-
writeString
- Throws:
org.apache.thrift.TException
-
writeBinary
- Throws:
org.apache.thrift.TException
-
readMessageBegin
public org.apache.thrift.protocol.TMessage readMessageBegin() throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-
readMessageEnd
public void readMessageEnd() throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-
readStructBegin
public org.apache.thrift.protocol.TStruct readStructBegin() throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-
readStructEnd
public void readStructEnd() throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-
readFieldBegin
public org.apache.thrift.protocol.TField readFieldBegin() throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-
readFieldEnd
public void readFieldEnd() throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-
readMapBegin
public org.apache.thrift.protocol.TMap readMapBegin() throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-
readMapEnd
public void readMapEnd() throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-
readListBegin
public org.apache.thrift.protocol.TList readListBegin() throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-
readListEnd
public void readListEnd() throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-
readSetBegin
public org.apache.thrift.protocol.TSet readSetBegin() throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-
readSetEnd
public void readSetEnd() throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-
equals
-
readBool
public boolean readBool() throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-
readByte
public byte readByte() throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-
readI16
public short readI16() throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-
readI32
public int readI32() throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-
readI64
public long readI64() throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-
readUuid
- Throws:
org.apache.thrift.TException
-
readDouble
public double readDouble() throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-
readString
- Throws:
org.apache.thrift.TException
-
readBinary
- Throws:
org.apache.thrift.TException
-
reset
public void reset()- Overrides:
resetin classorg.apache.thrift.protocol.TProtocol
-
toString
-
getMinSerializedSize
public int getMinSerializedSize(byte type) throws org.apache.thrift.TException - Specified by:
getMinSerializedSizein classorg.apache.thrift.protocol.TProtocol- Throws:
org.apache.thrift.TException
-