Package com.linkedin.venice.compression
Class GzipCompressor
java.lang.Object
com.linkedin.venice.compression.VeniceCompressor
com.linkedin.venice.compression.GzipCompressor
- All Implemented Interfaces:
Closeable,AutoCloseable
-
Field Summary
Fields inherited from class com.linkedin.venice.compression.VeniceCompressor
SCHEMA_HEADER_LENGTH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected byte[]compressInternal(byte[] data) protected ByteBuffercompressInternal(ByteBuffer data, int startPositionOfOutput) protected ByteBufferdecompressAndPrependSchemaHeaderInternal(byte[] data, int offset, int length, int schemaHeader) protected ByteBufferdecompressInternal(byte[] data, int offset, int length) protected InputStreamdecompressInternal(InputStream inputStream) protected ByteBufferdecompressInternal(ByteBuffer data) booleaninthashCode()Methods inherited from class com.linkedin.venice.compression.VeniceCompressor
close, compress, compress, decompress, decompress, decompress, decompressAndPrependSchemaHeader, getCompressionStrategy
-
Constructor Details
-
GzipCompressor
public GzipCompressor()
-
-
Method Details
-
compressInternal
- Specified by:
compressInternalin classVeniceCompressor- Throws:
IOException
-
closeInternal
- Specified by:
closeInternalin classVeniceCompressor- Throws:
IOException
-
compressInternal
protected ByteBuffer compressInternal(ByteBuffer data, int startPositionOfOutput) throws IOException - Specified by:
compressInternalin classVeniceCompressor- Throws:
IOException
-
decompressInternal
- Specified by:
decompressInternalin classVeniceCompressor- Throws:
IOException
-
decompressInternal
- Specified by:
decompressInternalin classVeniceCompressor- Throws:
IOException
-
decompressAndPrependSchemaHeaderInternal
protected ByteBuffer decompressAndPrependSchemaHeaderInternal(byte[] data, int offset, int length, int schemaHeader) throws IOException - Specified by:
decompressAndPrependSchemaHeaderInternalin classVeniceCompressor- Throws:
IOException
-
decompressInternal
- Specified by:
decompressInternalin classVeniceCompressor- Throws:
IOException
-
hashCode
public int hashCode() -
equals
-