Class FileDirectSegment
- java.lang.Object
-
- org.apache.cassandra.db.commitlog.CommitLogSegment
-
- org.apache.cassandra.db.commitlog.FileDirectSegment
-
- Direct Known Subclasses:
CompressedSegment
,EncryptedSegment
public abstract class FileDirectSegment extends CommitLogSegment
Writes to the backing commit log file only on sync, allowing transformations of the mutations, such as compression or encryption, before writing out to disk.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.cassandra.db.commitlog.CommitLogSegment
CommitLogSegment.Allocation, CommitLogSegment.Builder, CommitLogSegment.CDCState, CommitLogSegment.CommitLogSegmentFileComparator
-
-
Field Summary
-
Fields inherited from class org.apache.cassandra.db.commitlog.CommitLogSegment
descriptor, ENTRY_OVERHEAD_SIZE, id, manager
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
flush(int startMarker, int nextMarker)
protected void
internalClose()
Close the segment file.-
Methods inherited from class org.apache.cassandra.db.commitlog.CommitLogSegment
additionalHeaderParameters, contains, contentSize, coverInMap, createBuffer, dirtyString, getCDCFile, getCDCIndexFile, getCDCState, getCurrentCommitLogPosition, getDirtyTableIds, getName, getPath, isStillAllocating, isUnused, markClean, onDiskSize, resetReplayLimit, setCDCState, toString, writeCDCIndexFile, writeSyncMarker
-
-
-
-
Method Detail
-
internalClose
protected void internalClose()
Description copied from class:CommitLogSegment
Close the segment file. Do not call from outside this class, use syncAndClose() instead.- Overrides:
internalClose
in classCommitLogSegment
-
flush
protected void flush(int startMarker, int nextMarker)
-
-