Package com.powsybl.timeseries
Class AbstractCompressedDataChunk
java.lang.Object
com.powsybl.timeseries.AbstractCompressedDataChunk
- Direct Known Subclasses:
CompressedDoubleDataChunk
,CompressedStringDataChunk
- Author:
- Geoffroy Jamgotchian <geoffroy.jamgotchian at rte-france.com>
-
Field Summary
Modifier and TypeFieldDescriptionprotected final int
protected final int[]
protected final int
-
Constructor Summary
ConstructorDescriptionAbstractCompressedDataChunk
(int offset, int uncompressedLength, int[] stepLengths) -
Method Summary
Modifier and TypeMethodDescriptiondouble
protected abstract int
int
int
int[]
protected abstract int
int
boolean
toJson()
void
writeJson
(com.fasterxml.jackson.core.JsonGenerator generator) protected abstract void
writeStepValuesJson
(com.fasterxml.jackson.core.JsonGenerator generator)
-
Field Details
-
offset
protected final int offset -
uncompressedLength
protected final int uncompressedLength -
stepLengths
protected final int[] stepLengths
-
-
Constructor Details
-
AbstractCompressedDataChunk
public AbstractCompressedDataChunk(int offset, int uncompressedLength, int[] stepLengths)
-
-
Method Details
-
getOffset
public int getOffset() -
getStepLengths
public int[] getStepLengths() -
getUncompressedLength
public int getUncompressedLength() -
getLength
public int getLength() -
isCompressed
public boolean isCompressed() -
getEstimatedSize
protected abstract int getEstimatedSize() -
getUncompressedEstimatedSize
protected abstract int getUncompressedEstimatedSize() -
getCompressionFactor
public double getCompressionFactor() -
writeStepValuesJson
protected abstract void writeStepValuesJson(com.fasterxml.jackson.core.JsonGenerator generator) throws IOException - Throws:
IOException
-
writeJson
public void writeJson(com.fasterxml.jackson.core.JsonGenerator generator) -
toJson
-