Package org.apache.iotdb.rpc
Class TCompressedElasticFramedTransport
- java.lang.Object
-
- org.apache.thrift.transport.TTransport
-
- org.apache.iotdb.rpc.TElasticFramedTransport
-
- org.apache.iotdb.rpc.TCompressedElasticFramedTransport
-
- All Implemented Interfaces:
Closeable,AutoCloseable
- Direct Known Subclasses:
TSnappyElasticFramedTransport
public abstract class TCompressedElasticFramedTransport extends TElasticFramedTransport
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.iotdb.rpc.TElasticFramedTransport
TElasticFramedTransport.Factory
-
-
Field Summary
-
Fields inherited from class org.apache.iotdb.rpc.TElasticFramedTransport
i32buf, readBuffer, thriftDefaultBufferSize, thriftMaxFrameSize, underlying, writeBuffer
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedTCompressedElasticFramedTransport(org.apache.thrift.transport.TTransport underlying, int thriftDefaultBufferSize, int thriftMaxFrameSize)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract intcompress(byte[] input, int inOff, int len, byte[] output, int outOff)voidflush()protected abstract intmaxCompressedLength(int len)protected voidreadFrame()protected abstract voiduncompress(byte[] input, int inOff, int size, byte[] output, int outOff)protected abstract intuncompressedLength(byte[] but, int off, int len)-
Methods inherited from class org.apache.iotdb.rpc.TElasticFramedTransport
checkReadBytesAvailable, close, getConfiguration, getSocket, isOpen, open, read, updateKnownMessageSize, write
-
-
-
-
Method Detail
-
readFrame
protected void readFrame() throws org.apache.thrift.transport.TTransportException- Overrides:
readFramein classTElasticFramedTransport- Throws:
org.apache.thrift.transport.TTransportException
-
flush
public void flush() throws org.apache.thrift.transport.TTransportException- Overrides:
flushin classTElasticFramedTransport- 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
-
-