public interface IChunkGroupWriter
| Modifier and Type | Method and Description |
|---|---|
long |
flushToFileWriter(TsFileIOWriter tsfileWriter)
flushing method for serializing to local file system or HDFS.
|
long |
getCurrentChunkGroupSize()
get the serialized size of current chunkGroup header + all chunks.
|
void |
tryToAddSeriesWriter(List<MeasurementSchema> measurementSchemas)
given a measurement descriptor list, create corresponding writers and put into this
ChunkGroupWriter.
|
void |
tryToAddSeriesWriter(MeasurementSchema measurementSchema)
given a measurement descriptor, create a corresponding writer and put into this
ChunkGroupWriter.
|
long |
updateMaxGroupMemSize()
get the max memory occupied at this time.
|
int |
write(long time,
List<DataPoint> data)
receive a timestamp and a list of data points, write them to their series writers.
|
int |
write(Tablet tablet)
receive a tablet, write it to chunk writers
|
int write(long time,
List<DataPoint> data)
throws WriteProcessException,
IOException
time - - all data points have unify time stamp.data - - data point list to inputWriteProcessException - exception in write processIOException - exception in IOint write(Tablet tablet) throws WriteProcessException, IOException
WriteProcessException - exception in write processIOException - exception in IOlong flushToFileWriter(TsFileIOWriter tsfileWriter) throws IOException
tsfileWriter - - TSFileIOWriterIOException - exception in IOlong updateMaxGroupMemSize()
long calcAllocatedSize()void tryToAddSeriesWriter(MeasurementSchema measurementSchema)
measurementSchema - a measurement descriptor containing the message of the seriesvoid tryToAddSeriesWriter(List<MeasurementSchema> measurementSchemas)
measurementSchemas - long getCurrentChunkGroupSize()
Copyright © 2022 The Apache Software Foundation. All rights reserved.