Class GetRDDOfAllElementsHandler
- java.lang.Object
-
- uk.gov.gchq.gaffer.sparkaccumulo.operation.handler.AbstractGetRDDHandler<GetRDDOfAllElements,org.apache.spark.rdd.RDD<Element>>
-
- uk.gov.gchq.gaffer.sparkaccumulo.operation.handler.scalardd.GetRDDOfAllElementsHandler
-
- All Implemented Interfaces:
OperationHandler<GetRDDOfAllElements>,OutputOperationHandler<GetRDDOfAllElements,org.apache.spark.rdd.RDD<Element>>
public class GetRDDOfAllElementsHandler extends AbstractGetRDDHandler<GetRDDOfAllElements,org.apache.spark.rdd.RDD<Element>>
A handler for theGetRDDOfAllElementsoperation.If the
gaffer.accumulo.spark.directrdd.use_rfile_readeroption is set totruethen the RDD will be produced by directly reading the RFiles in the Accumulo table, rather than usingElementInputFormatto get data via the tablet servers. In order to read the RFiles directly, the user must have read access to the files. Also note that any data that has not been minor compacted will not be read. Reading the Rfiles directly can increase the performance.If the
When reading data via the tablet servers, read performance may be improved by setting thegaffer.accumulo.spark.directrdd.use_rfile_readeroption is not set then the standard approach of obtaining data via the tablet servers is used.gaffer.accumulo.spark.rdd.use_batch_scanneroption to true.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGetRDDOfAllElementsHandler.EntryIteratorToElementIteratorstatic classGetRDDOfAllElementsHandler.EntryToElementstatic classGetRDDOfAllElementsHandler.FilterOutNull-
Nested classes/interfaces inherited from class uk.gov.gchq.gaffer.sparkaccumulo.operation.handler.AbstractGetRDDHandler
AbstractGetRDDHandler.FirstElement
-
-
Field Summary
-
Fields inherited from class uk.gov.gchq.gaffer.sparkaccumulo.operation.handler.AbstractGetRDDHandler
HADOOP_CONFIGURATION_KEY, USE_BATCH_SCANNER_RDD, USE_RFILE_READER_RDD, VIEW
-
-
Constructor Summary
Constructors Constructor Description GetRDDOfAllElementsHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.spark.rdd.RDD<Element>doOperation(GetRDDOfAllElements operation, Context context, Store store)Execute the givenOutputoperation.-
Methods inherited from class uk.gov.gchq.gaffer.sparkaccumulo.operation.handler.AbstractGetRDDHandler
addIterators, addRanges, addRangesFromPairs, convertConfigurationToString, convertStringToConfiguration
-
-
-
-
Method Detail
-
doOperation
public org.apache.spark.rdd.RDD<Element> doOperation(GetRDDOfAllElements operation, Context context, Store store) throws OperationException
Description copied from interface:OutputOperationHandlerExecute the givenOutputoperation.- 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
-
-