public class UncompressedStringDataChunk extends AbstractUncompressedDataChunk implements StringDataChunk
DataChunk.JsonParsingContext, DataChunk.Split<P extends AbstractPoint,A extends DataChunk<P,A>>
offset
Constructor and Description |
---|
UncompressedStringDataChunk(int offset,
String[] values) |
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.
|
int |
getLength()
Get data chunk length
|
String[] |
getValues() |
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 |
writeValuesJson(com.fasterxml.jackson.core.JsonGenerator generator) |
getCompressionFactor, getOffset, isCompressed, toJson, writeJson
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
addCompressedChunk, addUncompressedChunk, create, create, create, create, getCompressionFactor, getOffset, isCompressed, parseEndObject, parseFieldName, parseJson, parseJson, parseValueNumberInt, toJson, writeJson, writeJson
public UncompressedStringDataChunk(int offset, String[] values)
public String[] getValues()
public int getLength()
DataChunk
getLength
in interface DataChunk<StringPoint,StringDataChunk>
public int getEstimatedSize()
DataChunk
getEstimatedSize
in interface DataChunk<StringPoint,StringDataChunk>
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 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 indexpublic Stream<StringPoint> stream(TimeSeriesIndex index)
DataChunk
stream
in interface DataChunk<StringPoint,StringDataChunk>
index
- the time series indexpublic Iterator<StringPoint> iterator(TimeSeriesIndex index)
DataChunk
iterator
in interface DataChunk<StringPoint,StringDataChunk>
index
- the time series indexprotected void writeValuesJson(com.fasterxml.jackson.core.JsonGenerator generator) throws IOException
writeValuesJson
in class AbstractUncompressedDataChunk
IOException
Copyright © 2020. All rights reserved.