Class SweepResults
- java.lang.Object
-
- com.palantir.atlasdb.keyvalue.api.SweepResults
-
@Immutable public abstract class SweepResults extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SweepResults.Builder
-
Constructor Summary
Constructors Constructor Description SweepResults()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description SweepResults
accumulateWith(SweepResults other)
Returns a newSweepResults
representing cumulative results from this instance andother
.static SweepResults.Builder
builder()
static SweepResults
createEmptySweepResult(Optional<byte[]> startRow)
static SweepResults
createEmptySweepResultWithMoreToSweep()
static SweepResults
createEmptySweepResultWithNoMoreToSweep()
abstract long
getCellTsPairsExamined()
The approximate number of (cell, timestamp) pairs examined.abstract long
getMinSweptTimestamp()
The minimum sweep timestamp while sweeping this table.Optional<byte[]>
getNextStartRow()
protected abstract byte[]
getNextStartRowNullable()
Optional<byte[]>
getPreviousStartRow()
protected abstract byte[]
getPreviousStartRowNullable()
abstract long
getStaleValuesDeleted()
The number of (cell, timestamp) pairs deleted.long
getTimeElapsedSinceStartedSweeping()
abstract long
getTimeInMillis()
Time spent sweeping this iteration in milliseconds.abstract long
getTimeSweepStarted()
Time in milliseconds when we started sweeping this table.
-
-
-
Method Detail
-
getPreviousStartRowNullable
@Nullable protected abstract byte[] getPreviousStartRowNullable()
-
getNextStartRowNullable
@Nullable protected abstract byte[] getNextStartRowNullable()
-
getPreviousStartRow
public Optional<byte[]> getPreviousStartRow()
-
getNextStartRow
public Optional<byte[]> getNextStartRow()
-
getCellTsPairsExamined
public abstract long getCellTsPairsExamined()
The approximate number of (cell, timestamp) pairs examined.
-
getStaleValuesDeleted
public abstract long getStaleValuesDeleted()
The number of (cell, timestamp) pairs deleted.
-
getMinSweptTimestamp
public abstract long getMinSweptTimestamp()
The minimum sweep timestamp while sweeping this table.
-
getTimeInMillis
public abstract long getTimeInMillis()
Time spent sweeping this iteration in milliseconds.
-
getTimeSweepStarted
@Auxiliary public abstract long getTimeSweepStarted()
Time in milliseconds when we started sweeping this table.
-
getTimeElapsedSinceStartedSweeping
public long getTimeElapsedSinceStartedSweeping()
-
accumulateWith
public SweepResults accumulateWith(SweepResults other)
Returns a newSweepResults
representing cumulative results from this instance andother
. The operation is commutative.
-
builder
public static SweepResults.Builder builder()
-
createEmptySweepResultWithMoreToSweep
public static SweepResults createEmptySweepResultWithMoreToSweep()
-
createEmptySweepResultWithNoMoreToSweep
public static SweepResults createEmptySweepResultWithNoMoreToSweep()
-
createEmptySweepResult
public static SweepResults createEmptySweepResult(Optional<byte[]> startRow)
-
-