Class CycleResultsIntervalSegment
java.lang.Object
io.nosqlbench.engine.api.activityapi.cyclelog.buffers.results.CycleResultsIntervalSegment
- All Implemented Interfaces:
CycleResultsSegment,java.lang.Comparable<CycleResultsSegment>,java.lang.Iterable<CycleResult>
public class CycleResultsIntervalSegment extends java.lang.Object implements CycleResultsSegment
This is just a typed-data holder for efficient transfer of tracked data.
It holds a base cycle value, and a byte array view of result values.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.nosqlbench.engine.api.activityapi.cyclelog.buffers.results.CycleResultsSegment
CycleResultsSegment.EmptySegment -
Field Summary
Fields Modifier and Type Field Description byte[]codesA view of status codes in byte form.longcycleThe base cycle value, the minimum cycle in the segment.Fields inherited from interface io.nosqlbench.engine.api.activityapi.cyclelog.buffers.results.CycleResultsSegment
EMPTY -
Constructor Summary
Constructors Constructor Description CycleResultsIntervalSegment() -
Method Summary
Modifier and Type Method Description static CycleResultsIntervalSegmentforData(long cycle, byte[] buffer)static CycleResultsIntervalSegmentforData(long cycle, byte[] buffer, int offset, int len)longgetCount()longgetMinCycle()java.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, filter
-
Field Details
-
Constructor Details
-
CycleResultsIntervalSegment
public CycleResultsIntervalSegment()
-
-
Method Details
-
forData
-
forData
-
iterator
- Specified by:
iteratorin interfacejava.lang.Iterable<CycleResult>
-
getCount
public long getCount()- Specified by:
getCountin interfaceCycleResultsSegment
-
getMinCycle
public long getMinCycle()- Specified by:
getMinCyclein interfaceCycleResultsSegment
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-