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>>
ASortHandlerhandles theSortoperation. 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 givenOutputoperation.
-
-
-
Method Detail
-
doOperation
public Iterable<? extends Element> doOperation(Sort operation, Context context, Store store) throws OperationException
Description copied from interface:OutputOperationHandlerExecute the givenOutputoperation.- Specified by:
doOperationin interfaceOperationHandler<Sort>- Specified by:
doOperationin interfaceOutputOperationHandler<Sort,Iterable<? extends Element>>- Parameters:
operation- theOutputoperation to be executedcontext- the operation chain context, containing the user who executed the operationstore- theStorethe operation should be run on- Returns:
- the output for the operation.
- Throws:
OperationException- thrown if the operation fails
-
-