public class CompressedStringDataChunk extends AbstractCompressedDataChunk implements StringDataChunk
DataChunk.JsonParsingContext, DataChunk.Split<P extends AbstractPoint,A extends DataChunk<P,A>>
offset, stepLengths, uncompressedLength
Constructor and Description |
---|
CompressedStringDataChunk(int offset,
int uncompressedLength,
java.lang.String[] stepValues,
int[] stepLengths) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
void |
fillBuffer(BigStringBuffer buffer,
long timeSeriesOffset) |
void |
fillBuffer(CompactStringBuffer buffer,
int timeSeriesOffset) |
TimeSeriesDataType |
getDataType()
Get data type.
|
int |
getEstimatedSize()
Get estimated size in bytes.
|
java.lang.String[] |
getStepValues() |
int |
getUncompressedEstimatedSize() |
int |
hashCode() |
java.util.Iterator<StringPoint> |
iterator(TimeSeriesIndex index)
Get a point iterator.
|
DataChunk.Split<StringPoint,StringDataChunk> |
splitAt(int splitIndex)
Split the chunk in two parts.
|
java.util.stream.Stream<StringPoint> |
stream(TimeSeriesIndex index)
Get a point stream.
|
StringDataChunk |
tryToCompress()
Try to compress the chunk.
|
protected void |
writeStepValuesJson(com.fasterxml.jackson.core.JsonGenerator generator) |
getCompressionFactor, getLength, getOffset, getStepLengths, getUncompressedLength, isCompressed, toJson, writeJson
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
addCompressedChunk, addUncompressedChunk, create, create, create, create, getCompressionFactor, getLength, getOffset, isCompressed, parseEndObject, parseFieldName, parseJson, parseJson, parseValueNumberInt, toJson, writeJson, writeJson
public CompressedStringDataChunk(int offset, int uncompressedLength, java.lang.String[] stepValues, int[] stepLengths)
public java.lang.String[] getStepValues()
public int getEstimatedSize()
DataChunk
getEstimatedSize
in interface DataChunk<StringPoint,StringDataChunk>
getEstimatedSize
in class AbstractCompressedDataChunk
public int getUncompressedEstimatedSize()
getUncompressedEstimatedSize
in class AbstractCompressedDataChunk
public TimeSeriesDataType getDataType()
DataChunk
getDataType
in interface DataChunk<StringPoint,StringDataChunk>
public void fillBuffer(CompactStringBuffer buffer, int timeSeriesOffset)
fillBuffer
in interface StringDataChunk
public void fillBuffer(BigStringBuffer buffer, long timeSeriesOffset)
fillBuffer
in interface StringDataChunk
public java.util.Iterator<StringPoint> iterator(TimeSeriesIndex index)
DataChunk
iterator
in interface DataChunk<StringPoint,StringDataChunk>
index
- the time series indexpublic java.util.stream.Stream<StringPoint> stream(TimeSeriesIndex index)
DataChunk
stream
in interface DataChunk<StringPoint,StringDataChunk>
index
- the time series indexpublic StringDataChunk tryToCompress()
DataChunk
tryToCompress
in interface DataChunk<StringPoint,StringDataChunk>
public DataChunk.Split<StringPoint,StringDataChunk> splitAt(int splitIndex)
DataChunk
splitAt
in interface DataChunk<StringPoint,StringDataChunk>
splitIndex
- the split indexprotected void writeStepValuesJson(com.fasterxml.jackson.core.JsonGenerator generator) throws java.io.IOException
writeStepValuesJson
in class AbstractCompressedDataChunk
java.io.IOException
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object