Class CycleArray

java.lang.Object
io.nosqlbench.engine.api.activityapi.cyclelog.buffers.results.CycleArray
All Implemented Interfaces:
Input

public class CycleArray extends Object implements Input
Just cycle numbers in a long array.
  • Constructor Details

    • CycleArray

      public CycleArray(long recycle, long... values)
  • Method Details

    • getInputSegment

      public CycleSegment getInputSegment(int segmentLength)
      Description copied from interface: Input
      Return the next InputSegment available, or null if none were available. This method is required to be thread safe.

      All implementations of this method are required to be thread-safe.

      Specified by:
      getInputSegment in interface Input
      Parameters:
      segmentLength - The number of cycles (not necessarily contiguous) in the segment.
      Returns:
      a segment, or null if none available.