Class SortHandler
- java.lang.Object
-
- uk.gov.gchq.gaffer.store.operation.handler.compare.SortHandler
-
- All Implemented Interfaces:
OperationHandler<Sort>
,OutputOperationHandler<Sort,Iterable<? extends Element>>
public class SortHandler extends Object implements OutputOperationHandler<Sort,Iterable<? extends Element>>
ASortHandler
handles theSort
operation. It does that in memory using theLimitedInMemorySortedIterable
. If the resultLimit is set to one that it just deletes the operation to theMaxHandler
.
-
-
Constructor Summary
Constructors Constructor Description SortHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterable<? extends Element>
doOperation(Sort operation, Context context, Store store)
Execute the givenOutput
operation.
-
-
-
Method Detail
-
doOperation
public Iterable<? extends Element> doOperation(Sort operation, Context context, Store store) throws OperationException
Description copied from interface:OutputOperationHandler
Execute the givenOutput
operation.- Specified by:
doOperation
in interfaceOperationHandler<Sort>
- Specified by:
doOperation
in interfaceOutputOperationHandler<Sort,Iterable<? extends Element>>
- Parameters:
operation
- theOutput
operation to be executedcontext
- the operation chain context, containing the user who executed the operationstore
- theStore
the operation should be run on- Returns:
- the output for the operation.
- Throws:
OperationException
- thrown if the operation fails
-
-