Class CycleResultSegmentBuffer

java.lang.Object
io.nosqlbench.engine.api.activityapi.cyclelog.buffers.results.CycleResultSegmentBuffer

public class CycleResultSegmentBuffer extends Object
Implements a cycle result segment in a basic buffer that contains the cycle and the result in long, byte format. This is not thread safe.
  • Constructor Details

    • CycleResultSegmentBuffer

      public CycleResultSegmentBuffer(CycleResultSegmentBuffer.Sink sink, int resultCount)
    • CycleResultSegmentBuffer

      public CycleResultSegmentBuffer(int resultCount)
  • Method Details

    • append

      public void append(long cycle, int result)
    • append

      public void append(CycleResult result)
    • toReader

      public CycleResultsSegment toReader()
    • hasRemaining

      public boolean hasRemaining()