| org.h2.compress.Compressor
All known Subclasses: org.h2.compress.CompressDeflate, org.h2.compress.CompressLZF, org.h2.compress.CompressNo,
Compressor | public interface Compressor (Code) | | Each data compression algorithm must implement this interface.
|
Field Summary | |
int | DEFLATE The DEFLATE compression algorithm is used. | int | LZF | int | NO No compression is used. |
Method Summary | |
int | compress(byte[] in, int inLen, byte[] out, int outPos) Compress a number of bytes. | void | expand(byte[] in, int inPos, int inLen, byte[] out, int outPos, int outLen) Expand a number of compressed bytes. | int | getAlgorithm() Get the compression algorithm type. | void | setOptions(String options) Set the compression options. |
DEFLATE | int DEFLATE(Code) | | The DEFLATE compression algorithm is used.
|
LZF | int LZF(Code) | | The LZF compression algorithm is used
|
NO | int NO(Code) | | No compression is used.
|
compress | int compress(byte[] in, int inLen, byte[] out, int outPos)(Code) | | Compress a number of bytes.
Parameters: in - the input data Parameters: inLen - the number of bytes to compress Parameters: out - the output area Parameters: outPos - the offset at the output array the size of the compressed data |
expand | void expand(byte[] in, int inPos, int inLen, byte[] out, int outPos, int outLen) throws SQLException(Code) | | Expand a number of compressed bytes.
Parameters: in - the compressed data Parameters: inPos - the offset at the input array Parameters: inLen - the number of bytes to read Parameters: out - the output area Parameters: outPos - the offset at the output array Parameters: outLen - the size of the uncompressed data |
getAlgorithm | int getAlgorithm()(Code) | | Get the compression algorithm type.
the type |
setOptions | void setOptions(String options) throws SQLException(Code) | | Set the compression options. This may include settings for
higher performance but less compression.
Parameters: options - the options |
|
|