public class CommitLogReplayer
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
CommitLogReplayer.CommitLogReplayException |
Modifier and Type | Method and Description |
---|---|
int |
blockForWrites() |
static CommitLogReplayer |
construct(CommitLog commitLog) |
static ReplayPosition |
firstNotCovered(java.util.Collection<IntervalSet<ReplayPosition>> ranges)
Find the earliest commit log position that is not covered by the known flushed ranges for some table.
|
boolean |
logAndCheckIfShouldSkip(java.io.File file,
CommitLogDescriptor desc) |
static IntervalSet<ReplayPosition> |
persistedIntervals(java.lang.Iterable<SSTableReader> onDisk,
ReplayPosition truncatedAt)
A set of known safe-to-discard commit log replay positions, based on
the range covered by on disk sstables and those prior to the most recent truncation record
|
protected boolean |
pointInTimeExceeded(Mutation fm) |
void |
recover(java.io.File[] clogs) |
void |
recover(java.io.File file,
boolean tolerateTruncation) |
public static CommitLogReplayer construct(CommitLog commitLog)
public void recover(java.io.File[] clogs) throws java.io.IOException
java.io.IOException
public static IntervalSet<ReplayPosition> persistedIntervals(java.lang.Iterable<SSTableReader> onDisk, ReplayPosition truncatedAt)
public static ReplayPosition firstNotCovered(java.util.Collection<IntervalSet<ReplayPosition>> ranges)
public int blockForWrites()
public void recover(java.io.File file, boolean tolerateTruncation) throws java.io.IOException
java.io.IOException
public boolean logAndCheckIfShouldSkip(java.io.File file, CommitLogDescriptor desc)
protected boolean pointInTimeExceeded(Mutation fm)
Copyright © 2017 The Apache Software Foundation