public abstract class AbstractCompressedDataChunk extends Object
Modifier and Type | Field and Description |
---|---|
protected int |
offset |
protected int[] |
stepLengths |
protected int |
uncompressedLength |
Constructor and Description |
---|
AbstractCompressedDataChunk(int offset,
int uncompressedLength,
int[] stepLengths) |
Modifier and Type | Method and Description |
---|---|
double |
getCompressionFactor() |
protected abstract int |
getEstimatedSize() |
int |
getLength() |
int |
getOffset() |
int[] |
getStepLengths() |
protected abstract int |
getUncompressedEstimatedSize() |
int |
getUncompressedLength() |
boolean |
isCompressed() |
String |
toJson() |
void |
writeJson(com.fasterxml.jackson.core.JsonGenerator generator) |
protected abstract void |
writeStepValuesJson(com.fasterxml.jackson.core.JsonGenerator generator) |
protected final int offset
protected final int uncompressedLength
protected final int[] stepLengths
public AbstractCompressedDataChunk(int offset, int uncompressedLength, int[] stepLengths)
public int getOffset()
public int[] getStepLengths()
public int getUncompressedLength()
public int getLength()
public boolean isCompressed()
protected abstract int getEstimatedSize()
protected abstract int getUncompressedEstimatedSize()
public double getCompressionFactor()
protected abstract void writeStepValuesJson(com.fasterxml.jackson.core.JsonGenerator generator) throws IOException
IOException
public void writeJson(com.fasterxml.jackson.core.JsonGenerator generator)
public String toJson()
Copyright © 2020. All rights reserved.