Class CycleLogInput
java.lang.Object
io.nosqlbench.engine.api.activityapi.cyclelog.inputs.cyclelog.CycleLogInput
- All Implemented Interfaces:
CanFilterResultValue,Input,java.lang.AutoCloseable,java.lang.Iterable<CycleResultsSegment>
public class CycleLogInput extends java.lang.Object implements Input, java.lang.AutoCloseable, java.lang.Iterable<CycleResultsSegment>, CanFilterResultValue
-
Constructor Summary
Constructors Constructor Description CycleLogInput(Activity activity)CycleLogInput(java.lang.String filename) -
Method Summary
Modifier and Type Method Description voidclose()CycleSegmentgetInputSegment(int segmentLength)Return the next InputSegment available, or null if none were available.java.util.Iterator<CycleResultsSegment>iterator()voidsetFilter(java.util.function.Predicate<ResultReadable> filter)
-
Constructor Details
-
CycleLogInput
-
CycleLogInput
public CycleLogInput(java.lang.String filename)
-
-
Method Details
-
setFilter
- Specified by:
setFilterin interfaceCanFilterResultValue
-
getInputSegment
Description copied from interface:InputReturn 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:
getInputSegmentin interfaceInput- Parameters:
segmentLength- The number of cycles (not necessarily contiguous) in the segment.- Returns:
- a segment, or null if none available.
-
close
public void close() throws java.lang.Exception- Specified by:
closein interfacejava.lang.AutoCloseable- Throws:
java.lang.Exception
-
iterator
- Specified by:
iteratorin interfacejava.lang.Iterable<CycleResultsSegment>
-