Class LimitHandler<T>
- java.lang.Object
-
- uk.gov.gchq.gaffer.store.operation.handler.LimitHandler<T>
-
- All Implemented Interfaces:
OperationHandler<Limit<T>>
,OutputOperationHandler<Limit<T>,Iterable<? extends T>>
public class LimitHandler<T> extends Object implements OutputOperationHandler<Limit<T>,Iterable<? extends T>>
AnLimitHandler
handles forLimit
operations. It simply wraps the input iterable in aLimitedIterable
so the data is not stored in memory.
-
-
Constructor Summary
Constructors Constructor Description LimitHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterable<? extends T>
doOperation(Limit<T> operation, Context context, Store store)
Execute the givenOutput
operation.
-
-
-
Method Detail
-
doOperation
public Iterable<? extends T> doOperation(Limit<T> operation, Context context, Store store) throws OperationException
Description copied from interface:OutputOperationHandler
Execute the givenOutput
operation.- Specified by:
doOperation
in interfaceOperationHandler<T>
- Specified by:
doOperation
in interfaceOutputOperationHandler<Limit<T>,Iterable<? extends T>>
- 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
-
-