Class CommitLogSegmentReader
- java.lang.Object
-
- org.apache.cassandra.db.commitlog.CommitLogSegmentReader
-
- All Implemented Interfaces:
java.lang.Iterable<CommitLogSegmentReader.SyncSegment>
public class CommitLogSegmentReader extends java.lang.Object implements java.lang.Iterable<CommitLogSegmentReader.SyncSegment>
Read each sync section of a commit log, iteratively.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
CommitLogSegmentReader.SegmentIterator
static class
CommitLogSegmentReader.SegmentReadException
static class
CommitLogSegmentReader.SyncSegment
-
Field Summary
Fields Modifier and Type Field Description protected int
end
ending position of the current sync section.
-
Constructor Summary
Constructors Modifier Constructor Description protected
CommitLogSegmentReader(CommitLogReadHandler handler, CommitLogDescriptor descriptor, RandomAccessReader reader, boolean tolerateTruncation)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Iterator<CommitLogSegmentReader.SyncSegment>
iterator()
static void
setAllowSkipSyncMarkerCrc(boolean allow)
-
-
-
Constructor Detail
-
CommitLogSegmentReader
protected CommitLogSegmentReader(CommitLogReadHandler handler, CommitLogDescriptor descriptor, RandomAccessReader reader, boolean tolerateTruncation)
-
-
Method Detail
-
setAllowSkipSyncMarkerCrc
public static void setAllowSkipSyncMarkerCrc(boolean allow)
-
iterator
public java.util.Iterator<CommitLogSegmentReader.SyncSegment> iterator()
- Specified by:
iterator
in interfacejava.lang.Iterable<CommitLogSegmentReader.SyncSegment>
-
-