Class GetJavaRDDOfAllElementsHandler
- java.lang.Object
-
- uk.gov.gchq.gaffer.sparkaccumulo.operation.handler.AbstractGetRDDHandler<GetJavaRDDOfAllElements,org.apache.spark.api.java.JavaRDD<Element>>
-
- uk.gov.gchq.gaffer.sparkaccumulo.operation.handler.javardd.GetJavaRDDOfAllElementsHandler
-
- All Implemented Interfaces:
OperationHandler<GetJavaRDDOfAllElements>,OutputOperationHandler<GetJavaRDDOfAllElements,org.apache.spark.api.java.JavaRDD<Element>>
public class GetJavaRDDOfAllElementsHandler extends AbstractGetRDDHandler<GetJavaRDDOfAllElements,org.apache.spark.api.java.JavaRDD<Element>>
A handler for theGetJavaRDDOfAllElementsoperation. This simply uses the operationGetRDDOfAllElementsto produce anRDDand then callstoJavaRDD()to obtain aJavaRDD.If the
If thegaffer.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.gaffer.accumulo.spark.directrdd.use_rfile_readeroption is not set then the standard approach of obtaining data via the tablet servers is used.
-
-
Nested Class Summary
-
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 GetJavaRDDOfAllElementsHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.spark.api.java.JavaRDD<Element>doOperation(GetJavaRDDOfAllElements 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.api.java.JavaRDD<Element> doOperation(GetJavaRDDOfAllElements 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
-
-