Class AbstractCompressedDataChunk

java.lang.Object
com.powsybl.timeseries.AbstractCompressedDataChunk
Direct Known Subclasses:
CompressedDoubleDataChunk, CompressedStringDataChunk

public abstract class AbstractCompressedDataChunk extends Object
Author:
Geoffroy Jamgotchian <geoffroy.jamgotchian at rte-france.com>
  • 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

      public String toJson()