Class CycleResultsRLEBufferReadable
- java.lang.Object
-
- io.engineblock.activityapi.cyclelog.buffers.results_rle.CycleResultsRLEBufferReadable
-
- All Implemented Interfaces:
CycleResultSegmentsReadable,java.lang.Iterable<CycleResultsSegment>
public class CycleResultsRLEBufferReadable extends java.lang.Object implements CycleResultSegmentsReadable
Implements a cycle result segment in a run-length encoded buffer that contains the cycle interval and the result in long, long, byte format, where the last value (the second long value) is *not* included in the cycle inteval. (closed-open interval)This is not a threadsafe iterator. It references buffer data that is presumed to be access by only one reader for the sake of efficiency.
-
-
Field Summary
Fields Modifier and Type Field Description static intBYTES
-
Constructor Summary
Constructors Constructor Description CycleResultsRLEBufferReadable(int readSizeInSpans, java.nio.ByteBuffer src)CycleResultsRLEBufferReadable(java.nio.ByteBuffer buf)
-
Method Summary
Modifier and Type Method Description java.util.Iterator<CycleResultsSegment>iterator()java.util.Iterator<CycleResultsSegment>iterator(java.util.function.Predicate<ResultReadable> filter)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.engineblock.activityapi.cyclelog.buffers.CycleResultSegmentsReadable
getCycleResultIterable
-
-
-
-
Field Detail
-
BYTES
public static final int BYTES
- See Also:
- Constant Field Values
-
-
Method Detail
-
iterator
public java.util.Iterator<CycleResultsSegment> iterator(java.util.function.Predicate<ResultReadable> filter)
-
iterator
public java.util.Iterator<CycleResultsSegment> iterator()
- Specified by:
iteratorin interfacejava.lang.Iterable<CycleResultsSegment>
-
-