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,
java.lang.String[] values) |
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.
|
int |
getLength()
Get data chunk length
|
java.lang.String[] |
getValues() |
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 |
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, java.lang.String[] values)
public java.lang.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 java.util.stream.Stream<StringPoint> stream(TimeSeriesIndex index)
DataChunk
stream
in interface DataChunk<StringPoint,StringDataChunk>
index
- the time series indexpublic java.util.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 java.io.IOException
writeValuesJson
in class AbstractUncompressedDataChunk
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
Copyright © 2019. All rights reserved.