Class CycleSpanResults
java.lang.Object
io.nosqlbench.engine.api.activityapi.cyclelog.buffers.results_rle.CycleSpanResults
- All Implemented Interfaces:
CycleResultsSegment,ResultReadable,java.lang.Comparable<CycleResultsSegment>,java.lang.Iterable<CycleResult>
public class CycleSpanResults extends java.lang.Object implements CycleResultsSegment, ResultReadable
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.nosqlbench.engine.api.activityapi.cyclelog.buffers.results.CycleResultsSegment
CycleResultsSegment.EmptySegment -
Field Summary
Fields inherited from interface io.nosqlbench.engine.api.activityapi.cyclelog.buffers.results.CycleResultsSegment
EMPTY -
Constructor Summary
Constructors Constructor Description CycleSpanResults(long min, long nextMin, int result) -
Method Summary
Modifier and Type Method Description CycleResultsSegmentfilter(java.util.function.Predicate<ResultReadable> filter)longgetCount()longgetMinCycle()intgetResult()Get a result associated with some operation, according to the activity-specific result mapjava.util.Iterator<CycleResult>iterator()java.lang.StringtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.nosqlbench.engine.api.activityapi.cyclelog.buffers.results.CycleResultsSegment
compareTo
-
Constructor Details
-
CycleSpanResults
public CycleSpanResults(long min, long nextMin, int result)
-
-
Method Details
-
getCount
public long getCount()- Specified by:
getCountin interfaceCycleResultsSegment
-
getMinCycle
public long getMinCycle()- Specified by:
getMinCyclein interfaceCycleResultsSegment
-
getResult
public int getResult()Description copied from interface:ResultReadableGet a result associated with some operation, according to the activity-specific result map- Specified by:
getResultin interfaceResultReadable- Returns:
- an activity-specific result code
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
filter
- Specified by:
filterin interfaceCycleResultsSegment
-
iterator
- Specified by:
iteratorin interfacejava.lang.Iterable<CycleResult>
-