Class AbstractSampleElementsForSplitPointsHandler<T,S extends Store>
- java.lang.Object
-
- uk.gov.gchq.gaffer.store.operation.handler.AbstractSampleElementsForSplitPointsHandler<T,S>
-
- All Implemented Interfaces:
OperationHandler<SampleElementsForSplitPoints<T>>
,OutputOperationHandler<SampleElementsForSplitPoints<T>,List<T>>
- Direct Known Subclasses:
SampleElementsForSplitPointsHandler
public abstract class AbstractSampleElementsForSplitPointsHandler<T,S extends Store> extends Object implements OutputOperationHandler<SampleElementsForSplitPoints<T>,List<T>>
-
-
Field Summary
Fields Modifier and Type Field Description static int
MAX_SAMPLED_ELEMENTS_DEFAULT
-
Constructor Summary
Constructors Constructor Description AbstractSampleElementsForSplitPointsHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<T>
doOperation(SampleElementsForSplitPoints<T> operation, Context context, Store store)
Execute the givenOutput
operation.int
getMaxSampledElements()
void
setMaxSampledElements(int maxSampledElements)
-
-
-
Field Detail
-
MAX_SAMPLED_ELEMENTS_DEFAULT
public static final int MAX_SAMPLED_ELEMENTS_DEFAULT
- See Also:
- Constant Field Values
-
-
Method Detail
-
doOperation
public List<T> doOperation(SampleElementsForSplitPoints<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<T,S extends Store>
- 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
-
getMaxSampledElements
public int getMaxSampledElements()
-
setMaxSampledElements
public void setMaxSampledElements(int maxSampledElements)
-
-