Class CommitLogSegmentReader
java.lang.Object
org.apache.cassandra.db.commitlog.CommitLogSegmentReader
- All Implemented Interfaces:
Iterable<CommitLogSegmentReader.SyncSegment>
public class CommitLogSegmentReader
extends Object
implements Iterable<CommitLogSegmentReader.SyncSegment>
Read each sync section of a commit log, iteratively.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classstatic classstatic class -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCommitLogSegmentReader(CommitLogReadHandler handler, CommitLogDescriptor descriptor, RandomAccessReader reader, boolean tolerateTruncation) -
Method Summary
Modifier and TypeMethodDescriptioniterator()static voidsetAllowSkipSyncMarkerCrc(boolean allow) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
end
protected int endending position of the current sync section.
-
-
Constructor Details
-
CommitLogSegmentReader
protected CommitLogSegmentReader(CommitLogReadHandler handler, CommitLogDescriptor descriptor, RandomAccessReader reader, boolean tolerateTruncation)
-
-
Method Details
-
setAllowSkipSyncMarkerCrc
public static void setAllowSkipSyncMarkerCrc(boolean allow) -
iterator
- Specified by:
iteratorin interfaceIterable<CommitLogSegmentReader.SyncSegment>
-