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 theGetJavaRDDOfAllElements
operation. This simply uses the operationGetRDDOfAllElements
to produce anRDD
and then callstoJavaRDD()
to obtain aJavaRDD
.If the
If thegaffer.accumulo.spark.directrdd.use_rfile_reader
option is set totrue
then the RDD will be produced by directly reading the RFiles in the Accumulo table, rather than usingElementInputFormat
to 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_reader
option 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 givenOutput
operation.-
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:OutputOperationHandler
Execute the givenOutput
operation.- 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
-
-