public class AlignedChunkWriterImpl extends Object implements IChunkWriter
| Constructor and Description |
|---|
AlignedChunkWriterImpl(List<IMeasurementSchema> schemaList) |
AlignedChunkWriterImpl(VectorMeasurementSchema schema) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkIsChunkSizeOverThreshold(long threshold)
Used for compaction to control the target chunk size.
|
void |
clearPageWriter()
set the current pageWriter to null, friendly for gc
|
long |
estimateMaxSeriesMemSize()
estimate memory usage of this series.
|
TSDataType |
getCurrentValueChunkType() |
long |
getSerializedChunkSize()
return the serialized size of the chunk header + all pages (not including the un-sealed page).
|
void |
sealCurrentPage()
seal the current page which may has not enough data points in force.
|
void |
write(long time) |
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 |
write(long time,
TsPrimitiveType[] points) |
void |
writeToFileWriter(TsFileIOWriter tsfileWriter)
flush data to TsFileIOWriter.
|
public AlignedChunkWriterImpl(VectorMeasurementSchema schema)
schema - schema of this measurementpublic AlignedChunkWriterImpl(List<IMeasurementSchema> schemaList)
public void write(long time,
int value,
boolean isNull)
public void write(long time,
long 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 time,
TsPrimitiveType[] points)
public void write(long time)
public void writeToFileWriter(TsFileIOWriter tsfileWriter) throws IOException
IChunkWriterwriteToFileWriter in interface IChunkWriterIOExceptionpublic long estimateMaxSeriesMemSize()
IChunkWriterestimateMaxSeriesMemSize in interface IChunkWriterpublic long getSerializedChunkSize()
IChunkWritergetSerializedChunkSize in interface IChunkWriterpublic void sealCurrentPage()
IChunkWritersealCurrentPage in interface IChunkWriterpublic void clearPageWriter()
IChunkWriterclearPageWriter in interface IChunkWriterpublic boolean checkIsChunkSizeOverThreshold(long threshold)
public TSDataType getCurrentValueChunkType()
Copyright © 2022 The Apache Software Foundation. All rights reserved.