Class TCompressedElasticFramedTransport

    • Constructor Detail

      • TCompressedElasticFramedTransport

        protected TCompressedElasticFramedTransport​(org.apache.thrift.transport.TTransport underlying,
                                                    int thriftDefaultBufferSize,
                                                    int thriftMaxFrameSize)
    • Method Detail

      • readFrame

        protected void readFrame()
                          throws org.apache.thrift.transport.TTransportException
        Overrides:
        readFrame in class TElasticFramedTransport
        Throws:
        org.apache.thrift.transport.TTransportException
      • flush

        public void flush()
                   throws org.apache.thrift.transport.TTransportException
        Overrides:
        flush in class TElasticFramedTransport
        Throws:
        org.apache.thrift.transport.TTransportException
      • uncompressedLength

        protected abstract int uncompressedLength​(byte[] but,
                                                  int off,
                                                  int len)
                                           throws IOException
        Throws:
        IOException
      • maxCompressedLength

        protected abstract int maxCompressedLength​(int len)
      • compress

        protected abstract int compress​(byte[] input,
                                        int inOff,
                                        int len,
                                        byte[] output,
                                        int outOff)
                                 throws IOException
        Throws:
        IOException
      • uncompress

        protected abstract void uncompress​(byte[] input,
                                           int inOff,
                                           int size,
                                           byte[] output,
                                           int outOff)
                                    throws IOException
        Throws:
        IOException