Class InputInterval

java.lang.Object
io.nosqlbench.engine.api.activityimpl.input.InputInterval
All Implemented Interfaces:
Input

public class InputInterval
extends java.lang.Object
implements Input
  • Nested Class Summary

    Nested Classes 
    Modifier and Type Class Description
    static class  InputInterval.Segment  
  • Constructor Summary

    Constructors 
    Constructor Description
    InputInterval​(long min, long nextMin)  
  • Method Summary

    Modifier and Type Method Description
    CycleSegment getInputSegment​(int segmentLength)
    Return the next InputSegment available, or null if none were available.
    boolean isContiguous()  
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • InputInterval

      public InputInterval​(long min, long nextMin)
  • 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.
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • isContiguous

      public boolean isContiguous()
      Specified by:
      isContiguous in interface Input