|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.elasticsearch.common.io.compression.lzf.LZFChunk
public class LZFChunk
Helper class used to store LZF encoded segments (compressed and non-compressed) that can be sequenced to produce LZF files/streams.
Field Summary | |
---|---|
static int |
BLOCK_TYPE_COMPRESSED
|
static int |
BLOCK_TYPE_NON_COMPRESSED
|
static byte |
BYTE_V
|
static byte |
BYTE_Z
|
static int |
MAX_CHUNK_LEN
|
static int |
MAX_LITERAL
Maximum length of literal run for LZF encoding. |
Method Summary | |
---|---|
int |
copyTo(byte[] dst,
int ptr)
|
static LZFChunk |
createCompressed(int origLen,
byte[] encData,
int encPtr,
int encLen)
Factory method for constructing compressed chunk |
static LZFChunk |
createNonCompressed(byte[] plainData,
int ptr,
int len)
Factory method for constructing compressed chunk |
byte[] |
getData()
|
int |
length()
|
LZFChunk |
next()
|
void |
setNext(LZFChunk next)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int MAX_LITERAL
public static final int MAX_CHUNK_LEN
public static final byte BYTE_Z
public static final byte BYTE_V
public static final int BLOCK_TYPE_NON_COMPRESSED
public static final int BLOCK_TYPE_COMPRESSED
Method Detail |
---|
public static LZFChunk createCompressed(int origLen, byte[] encData, int encPtr, int encLen)
public static LZFChunk createNonCompressed(byte[] plainData, int ptr, int len)
public void setNext(LZFChunk next)
public LZFChunk next()
public int length()
public byte[] getData()
public int copyTo(byte[] dst, int ptr)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |