public class ValueChunkWriter extends Object
| Constructor and Description |
|---|
ValueChunkWriter(String measurementId,
CompressionType compressionType,
TSDataType dataType,
TSEncoding encodingType,
Encoder valueEncoder) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkPageSizeAndMayOpenANewPage() |
void |
clearPageWriter() |
long |
estimateMaxSeriesMemSize() |
long |
getCurrentChunkSize() |
TSDataType |
getDataType() |
int |
getNumOfPages() |
PublicBAOS |
getPageBuffer()
only used for test
|
void |
sealCurrentPage() |
void |
write(long[] timestamps,
Binary[] values,
int batchSize) |
void |
write(long[] timestamps,
boolean[] values,
int batchSize) |
void |
write(long[] timestamps,
double[] values,
int batchSize) |
void |
write(long[] timestamps,
float[] values,
int batchSize) |
void |
write(long[] timestamps,
int[] values,
int batchSize) |
void |
write(long[] timestamps,
long[] values,
int batchSize) |
void |
write(long time,
Binary value,
boolean isNull) |
void |
write(long time,
boolean value,
boolean isNull) |
void |
write(long time,
double value,
boolean isNull) |
void |
write(long time,
float value,
boolean isNull) |
void |
write(long time,
int value,
boolean isNull) |
void |
write(long time,
long value,
boolean isNull) |
void |
writeAllPagesOfChunkToTsFile(TsFileIOWriter writer)
write the page to specified IOWriter.
|
void |
writeEmptyPageToPageBuffer() |
void |
writePageToPageBuffer() |
void |
writeToFileWriter(TsFileIOWriter tsfileWriter) |
public ValueChunkWriter(String measurementId, CompressionType compressionType, TSDataType dataType, TSEncoding encodingType, Encoder valueEncoder)
public void write(long time,
long value,
boolean isNull)
public void write(long time,
int value,
boolean isNull)
public void write(long time,
boolean value,
boolean isNull)
public void write(long time,
float value,
boolean isNull)
public void write(long time,
double value,
boolean isNull)
public void write(long time,
Binary value,
boolean isNull)
public void write(long[] timestamps,
int[] values,
int batchSize)
public void write(long[] timestamps,
long[] values,
int batchSize)
public void write(long[] timestamps,
boolean[] values,
int batchSize)
public void write(long[] timestamps,
float[] values,
int batchSize)
public void write(long[] timestamps,
double[] values,
int batchSize)
public void write(long[] timestamps,
Binary[] values,
int batchSize)
public void writeEmptyPageToPageBuffer()
public void writePageToPageBuffer()
public void writeToFileWriter(TsFileIOWriter tsfileWriter) throws IOException
IOExceptionpublic long estimateMaxSeriesMemSize()
public long getCurrentChunkSize()
public boolean checkPageSizeAndMayOpenANewPage()
public void sealCurrentPage()
public void clearPageWriter()
public int getNumOfPages()
public TSDataType getDataType()
public void writeAllPagesOfChunkToTsFile(TsFileIOWriter writer) throws IOException
writer - the specified IOWriterIOException - exception in IOpublic PublicBAOS getPageBuffer()
Copyright © 2022 The Apache Software Foundation. All rights reserved.