public class AddElementsFromFileHandler extends Object implements OperationHandler<AddElementsFromFile>
A AddElementsFromFileHandler
handles the AddElementsFromFile
operation.
This uses Flink to stream the Element
objects from a file into Gaffer.
Rebalancing can be skipped by setting the operation option: gaffer.flink.operation.handler.skip-rebalancing to true
Constructor and Description |
---|
AddElementsFromFileHandler() |
AddElementsFromFileHandler(org.apache.flink.api.common.io.RichOutputFormat<Element> outputFormat) |
Modifier and Type | Method and Description |
---|---|
Object |
doOperation(AddElementsFromFile op,
Context context,
Store store)
Execute the given
Operation . |
public AddElementsFromFileHandler()
public AddElementsFromFileHandler(org.apache.flink.api.common.io.RichOutputFormat<Element> outputFormat)
public Object doOperation(AddElementsFromFile op, Context context, Store store) throws OperationException
OperationHandler
Operation
.doOperation
in interface OperationHandler<AddElementsFromFile>
op
- the Operation
to be executedcontext
- the operation chain context, containing the user who executed the operationstore
- the Store
the operation should be run onOperationException
- thrown if the operation failsCopyright © 2022. All rights reserved.