public class NOPRecordCompressor extends Object implements IRecordCompressor, Externalizable
| Modifier and Type | Field and Description |
|---|---|
static NOPRecordCompressor |
INSTANCE |
protected static org.apache.log4j.Logger |
log |
| Constructor and Description |
|---|
NOPRecordCompressor()
(De-)serialization ctor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
compress(byte[] bytes,
int off,
int len,
OutputStream os)
Writes the bytes on the output stream.
|
void |
compress(byte[] bytes,
OutputStream os)
Writes the bytes on the output stream.
|
ByteBuffer |
compress(ByteBuffer bin)
Compresses data onto the provided ByteBuffer.
|
void |
compress(ByteBuffer bin,
ByteBuffer out)
Compresses data onto the provided ByteBuffer.
|
void |
compress(ByteBuffer buf,
OutputStream os)
Writes the buffer on the output stream.
|
ByteBuffer |
decompress(byte[] bin)
Returns the argument wrapped as a
ByteBuffer. |
ByteBuffer |
decompress(ByteBuffer bin)
Returns the argument.
|
void |
readExternal(ObjectInput arg0)
NOP
|
void |
writeExternal(ObjectOutput arg0)
NOP
|
protected static final org.apache.log4j.Logger log
public static final transient NOPRecordCompressor INSTANCE
public void compress(ByteBuffer bin, ByteBuffer out)
IRecordCompressorcompress in interface IRecordCompressorbin - The data. The data from the position to the limit will be
compressed. The position will be advanced to the limit as a
side effect.out - The ByteBuffer into which the compressed data is writtenpublic ByteBuffer compress(ByteBuffer bin)
IRecordCompressorcompress in interface IRecordCompressorbin - The data. The data from the position to the limit will be
compressed. The position will be advanced to the limit as a
side effect.public void compress(ByteBuffer buf, OutputStream os)
compress in interface IRecordCompressorbuf - The data. The data from the position to the limit will be
compressed. The position will be advanced to the limit as a
side effect.os - The stream onto which the compressed data are written.public void compress(byte[] bytes,
OutputStream os)
compress in interface IRecordCompressorbytes - The data.os - The stream onto which the compressed data are written.public void compress(byte[] bytes,
int off,
int len,
OutputStream os)
compress in interface IRecordCompressorbytes - The source data.off - The offset of the first source byte that will be compressed
onto the output stream.len - The #of source bytes that will be compressed onto the output
stream.os - The stream onto which the compressed data are written.public ByteBuffer decompress(ByteBuffer bin)
decompress in interface IRecordCompressorbin - The compressed data.public ByteBuffer decompress(byte[] bin)
ByteBuffer.decompress in interface IRecordCompressorbin - The compressed data.public void readExternal(ObjectInput arg0) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void writeExternal(ObjectOutput arg0) throws IOException
writeExternal in interface ExternalizableIOExceptionCopyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.