Class CycleResultsIntervalSegment
java.lang.Object
io.nosqlbench.engine.api.activityapi.cyclelog.buffers.results.CycleResultsIntervalSegment
- All Implemented Interfaces:
CycleResultsSegment,Comparable<CycleResultsSegment>,Iterable<CycleResult>
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
FieldsModifier and TypeFieldDescriptionbyte[]A view of status codes in byte form.longThe 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 -
Method Summary
Modifier and TypeMethodDescriptionstatic CycleResultsIntervalSegmentforData(long cycle, byte[] buffer) static CycleResultsIntervalSegmentforData(long cycle, byte[] buffer, int offset, int len) longgetCount()longiterator()toString()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, filterMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
cycle
public long cycleThe base cycle value, the minimum cycle in the segment. -
codes
public byte[] codesA view of status codes in byte form.
-
-
Constructor Details
-
CycleResultsIntervalSegment
public CycleResultsIntervalSegment()
-
-
Method Details
-
forData
-
forData
-
iterator
- Specified by:
iteratorin interfaceIterable<CycleResult>
-
getCount
public long getCount()- Specified by:
getCountin interfaceCycleResultsSegment
-
getMinCycle
public long getMinCycle()- Specified by:
getMinCyclein interfaceCycleResultsSegment
-
toString
-