Class ForceAppendTsFileWriter
- java.lang.Object
-
- org.apache.iotdb.tsfile.write.writer.TsFileIOWriter
-
- org.apache.iotdb.tsfile.write.writer.ForceAppendTsFileWriter
-
- All Implemented Interfaces:
AutoCloseable
public class ForceAppendTsFileWriter extends TsFileIOWriter
ForceAppendTsFileWriter opens a COMPLETE TsFile, reads and truncate its metadata to support appending new data.
-
-
Field Summary
-
Fields inherited from class org.apache.iotdb.tsfile.write.writer.TsFileIOWriter
canWrite, CHUNK_METADATA_TEMP_FILE_SUFFIX, chunkGroupMetadataList, chunkMetadataList, chunkMetadataTempFile, config, currentChunkMetadata, currentChunkMetadataSize, enableMemoryControl, endPosInCMTForDevice, file, hasChunkMetadataInDisk, MAGIC_STRING_BYTES, maxMetadataSize, out, pathCount, tempOutput, VERSION_NUMBER_BYTE
-
-
Constructor Summary
Constructors Constructor Description ForceAppendTsFileWriter(File file)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoTruncate()longgetTruncatePosition()-
Methods inherited from class org.apache.iotdb.tsfile.write.writer.TsFileIOWriter
canWrite, checkMetadataSizeAndMayFlush, close, endChunkGroup, endCurrentChunk, endFile, filterChunks, flush, getChunkGroupMetadataList, getChunkMetadataListOfCurrentDeviceInMemory, getCurrentChunkGroupDeviceId, getDeviceChunkMetadataMap, getDeviceTimeseriesMetadataMap, getFile, getIOWriterOut, getMaxPlanIndex, getMinPlanIndex, getPos, getTsFileOutput, isWritingChunkGroup, mark, reset, setFile, setMaxPlanIndex, setMinPlanIndex, sortAndFlushChunkMetadata, startChunkGroup, startFile, startFlushChunk, truncate, writeBytesToStream, writeChunk, writeChunk, writeEmptyValueChunk, writePlanIndices
-
-
-
-
Constructor Detail
-
ForceAppendTsFileWriter
public ForceAppendTsFileWriter(File file) throws IOException
- Throws:
IOException
-
-
Method Detail
-
doTruncate
public void doTruncate() throws IOException- Throws:
IOException
-
getTruncatePosition
public long getTruncatePosition()
-
-