Package com.powsybl.timeseries
Class AbstractCompressedDataChunk
- java.lang.Object
-
- com.powsybl.timeseries.AbstractCompressedDataChunk
-
- Direct Known Subclasses:
CompressedDoubleDataChunk
,CompressedStringDataChunk
public abstract class AbstractCompressedDataChunk extends Object
- Author:
- Geoffroy Jamgotchian
-
-
Field Summary
Fields Modifier and Type Field Description protected int
offset
protected int[]
stepLengths
protected int
uncompressedLength
-
Constructor Summary
Constructors Constructor Description AbstractCompressedDataChunk(int offset, int uncompressedLength, int[] stepLengths)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
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
public String toJson()
-
-