|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bigdata.io.compression.NOPRecordCompressor
public class NOPRecordCompressor
A compressor that copies bytes without compression them.
| Field Summary | |
|---|---|
static NOPRecordCompressor |
INSTANCE
|
| Constructor Summary | |
|---|---|
NOPRecordCompressor()
(De-)serialization ctor. |
|
| Method Summary | |
|---|---|
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. |
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final transient NOPRecordCompressor INSTANCE
| Constructor Detail |
|---|
public NOPRecordCompressor()
| Method Detail |
|---|
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 ExternalizableIOException
ClassNotFoundException
public void writeExternal(ObjectOutput arg0)
throws IOException
writeExternal in interface ExternalizableIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||