|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hbase.io.TagCompressionContext
@InterfaceAudience.Private public class TagCompressionContext
Context that holds the dictionary for Tag compression and doing the compress/uncompress. This will be used for compressing tags while writing into HFiles and WALs.
| Constructor Summary | |
|---|---|
TagCompressionContext(Class<? extends Dictionary> dictType,
int dictCapacity)
|
|
| Method Summary | |
|---|---|
void |
clear()
|
void |
compressTags(OutputStream out,
byte[] in,
int offset,
int length)
Compress tags one by one and writes to the OutputStream. |
void |
compressTags(OutputStream out,
ByteBuffer in,
int length)
Compress tags one by one and writes to the OutputStream. |
int |
uncompressTags(ByteBuffer src,
byte[] dest,
int offset,
int length)
Uncompress tags from the input ByteBuffer and writes to the destination array. |
void |
uncompressTags(InputStream src,
byte[] dest,
int offset,
int length)
Uncompress tags from the InputStream and writes to the destination array. |
void |
uncompressTags(InputStream src,
ByteBuffer dest,
int length)
Uncompress tags from the InputStream and writes to the destination buffer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TagCompressionContext(Class<? extends Dictionary> dictType,
int dictCapacity)
throws SecurityException,
NoSuchMethodException,
InstantiationException,
IllegalAccessException,
InvocationTargetException
SecurityException
NoSuchMethodException
InstantiationException
IllegalAccessException
InvocationTargetException| Method Detail |
|---|
public void clear()
public void compressTags(OutputStream out,
byte[] in,
int offset,
int length)
throws IOException
out - Stream to which the compressed tags to be writtenin - Source where tags are availableoffset - Offset for the tags byteslength - Length of all tag bytes
IOException
public void compressTags(OutputStream out,
ByteBuffer in,
int length)
throws IOException
out - Stream to which the compressed tags to be writtenin - Source buffer where tags are availablelength - Length of all tag bytes
IOException
public void uncompressTags(InputStream src,
byte[] dest,
int offset,
int length)
throws IOException
src - Stream where the compressed tags are availabledest - Destination array where to write the uncompressed tagsoffset - Offset in destination where tags to be writtenlength - Length of all tag bytes
IOException
public int uncompressTags(ByteBuffer src,
byte[] dest,
int offset,
int length)
throws IOException
src - Buffer where the compressed tags are availabledest - Destination array where to write the uncompressed tagsoffset - Offset in destination where tags to be writtenlength - Length of all tag bytes
IOException
public void uncompressTags(InputStream src,
ByteBuffer dest,
int length)
throws IOException
src - Stream where the compressed tags are availabledest - Destination buffer where to write the uncompressed tagslength - Length of all tag bytes
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||