Class 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.
    • Constructor Detail

      • InterningProtocol

        public InterningProtocol​(org.apache.thrift.protocol.TProtocol delegate)
    • Method Detail

      • getTransport

        public org.apache.thrift.transport.TTransport getTransport()
        Overrides:
        getTransport in class org.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()
        Overrides:
        hashCode in class Object
      • 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

        public void writeUuid​(UUID uuid)
                       throws org.apache.thrift.TException
        Throws:
        org.apache.thrift.TException
      • writeDouble

        public void writeDouble​(double dub)
                         throws org.apache.thrift.TException
        Throws:
        org.apache.thrift.TException
      • writeString

        public void writeString​(String str)
                         throws org.apache.thrift.TException
        Throws:
        org.apache.thrift.TException
      • writeBinary

        public void writeBinary​(ByteBuffer buf)
                         throws org.apache.thrift.TException
        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
      • 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

        public UUID readUuid()
                      throws org.apache.thrift.TException
        Throws:
        org.apache.thrift.TException
      • readDouble

        public double readDouble()
                          throws org.apache.thrift.TException
        Throws:
        org.apache.thrift.TException
      • readString

        public String readString()
                          throws org.apache.thrift.TException
        Throws:
        org.apache.thrift.TException
      • readBinary

        public ByteBuffer readBinary()
                              throws org.apache.thrift.TException
        Throws:
        org.apache.thrift.TException
      • reset

        public void reset()
        Overrides:
        reset in class org.apache.thrift.protocol.TProtocol
      • getMinSerializedSize

        public int getMinSerializedSize​(byte type)
                                 throws org.apache.thrift.TException
        Specified by:
        getMinSerializedSize in class org.apache.thrift.protocol.TProtocol
        Throws:
        org.apache.thrift.TException