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,
String[] stepValues,
int[] stepLengths) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(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.
|
String[] |
getStepValues() |
int |
getUncompressedEstimatedSize() |
int |
hashCode() |
Iterator<StringPoint> |
iterator(TimeSeriesIndex index)
Get a point iterator.
|
DataChunk.Split<StringPoint,StringDataChunk> |
splitAt(int splitIndex)
Split the chunk in two parts.
|
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, String[] stepValues, int[] stepLengths)
public 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 Iterator<StringPoint> iterator(TimeSeriesIndex index)
DataChunk
iterator
in interface DataChunk<StringPoint,StringDataChunk>
index
- the time series indexpublic 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 IOException
writeStepValuesJson
in class AbstractCompressedDataChunk
IOException
Copyright © 2020. All rights reserved.