Package com.illumon.iris.db.v2
Class SortOperation
java.lang.Object
com.illumon.iris.db.v2.SortOperation
- All Implemented Interfaces:
QueryTable.MemoizableOperation
,QueryTable.Operation
public class SortOperation extends Object implements QueryTable.MemoizableOperation
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.illumon.iris.db.v2.QueryTable.Operation
QueryTable.Operation.Result
-
Constructor Summary
Constructors Constructor Description SortOperation(QueryTable parent, SortPair[] sortPairs)
-
Method Summary
Modifier and Type Method Description String
getDescription()
String
getLogPrefix()
MemoizedOperationKey
getMemoizedOperationKey()
QueryTable.Operation.Result
initialize(boolean usePrev, long beforeClock)
Initialize this operation.ShiftAwareSwapListener
newSwapListener(com.fishlib.io.logger.Logger log, QueryTable queryTable)
-
Constructor Details
-
Method Details
-
getDescription
- Specified by:
getDescription
in interfaceQueryTable.Operation
- Returns:
- the description of this operation
-
getLogPrefix
- Specified by:
getLogPrefix
in interfaceQueryTable.Operation
- Returns:
- the log prefix of this operation
-
getMemoizedOperationKey
- Specified by:
getMemoizedOperationKey
in interfaceQueryTable.MemoizableOperation
- Returns:
- the key that should be used to memoize off of
-
newSwapListener
public ShiftAwareSwapListener newSwapListener(com.fishlib.io.logger.Logger log, QueryTable queryTable)- Specified by:
newSwapListener
in interfaceQueryTable.Operation
-
initialize
Description copied from interface:QueryTable.Operation
Initialize this operation.- Specified by:
initialize
in 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.
-