Class ToArrayHandler<T>
- java.lang.Object
 - 
- uk.gov.gchq.gaffer.store.operation.handler.output.ToArrayHandler<T>
 
 
- 
- Type Parameters:
 T- the type of object in the input iterable
- All Implemented Interfaces:
 OperationHandler<ToArray<T>>,OutputOperationHandler<ToArray<T>,T[]>
public class ToArrayHandler<T> extends Object implements OutputOperationHandler<ToArray<T>,T[]>
AToArrayHandlerhandlesToArrayoperations. The inputIterableof objects is converted into an array. Use of this operation will cause all of the items present in the input iterable to be brought into memory, so this operation is not suitable for situations where the size of the input iterable is very large. 
- 
- 
Constructor Summary
Constructors Constructor Description ToArrayHandler() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T[]doOperation(ToArray<T> operation, Context context, Store store)Execute the givenOutputoperation. 
 - 
 
- 
- 
Method Detail
- 
doOperation
public T[] doOperation(ToArray<T> operation, Context context, Store store) throws OperationException
Description copied from interface:OutputOperationHandlerExecute the givenOutputoperation.- Specified by:
 doOperationin interfaceOperationHandler<T>- Specified by:
 doOperationin interfaceOutputOperationHandler<ToArray<T>,T[]>- 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
 
 - 
 
 -