Package com.illumon.iris.db.v2
Class SliceLikeOperation
java.lang.Object
com.illumon.iris.db.v2.SliceLikeOperation
- All Implemented Interfaces:
QueryTable.Operation
public class SliceLikeOperation extends Object implements QueryTable.Operation
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.illumon.iris.db.v2.QueryTable.Operation
QueryTable.Operation.Result -
Method Summary
Modifier and Type Method Description StringgetDescription()protected longgetFirstPositionInclusive()protected longgetLastPositionExclusive()StringgetLogPrefix()static SliceLikeOperationheadPct(QueryTable parent, double percent)QueryTable.Operation.Resultinitialize(boolean usePrev, long beforeClock)Initialize this operation.static SliceLikeOperationslice(QueryTable parent, long firstPositionInclusive, long lastPositionExclusive, String op)static SliceLikeOperationtailPct(QueryTable parent, double percent)
-
Method Details
-
slice
public static SliceLikeOperation slice(QueryTable parent, long firstPositionInclusive, long lastPositionExclusive, String op) -
headPct
-
tailPct
-
getDescription
- Specified by:
getDescriptionin interfaceQueryTable.Operation- Returns:
- the description of this operation
-
getLogPrefix
- Specified by:
getLogPrefixin interfaceQueryTable.Operation- Returns:
- the log prefix of this operation
-
getFirstPositionInclusive
protected long getFirstPositionInclusive() -
getLastPositionExclusive
protected long getLastPositionExclusive() -
initialize
Description copied from interface:QueryTable.OperationInitialize this operation.- Specified by:
initializein interfaceQueryTable.Operation- Parameters:
usePrev- data from the previous cycle should be used (otherwise use this cycle)beforeClock- the clock value that we captured before the function began; the function can use this value to bail out early if it notices something has gone wrong.- Returns:
- the result table / listener if successful, null if it should be retried.
-