public final class PersistedOutputRDD extends Object implements OutputRDD, PersistResultGraphAware
Constructor and Description |
---|
PersistedOutputRDD() |
Modifier and Type | Method and Description |
---|---|
boolean |
supportsResultGraphPersistCombination(GraphComputer.ResultGraph resultGraph,
GraphComputer.Persist persist) |
void |
writeGraphRDD(Configuration configuration,
<any> graphRDD)
Write the graphRDD to an output location.
|
<K,V> Iterator<KeyValue<K,V>> |
writeMemoryRDD(Configuration configuration,
String memoryKey,
<any> memoryRDD)
Write the sideEffect memoryRDD to an output location.
|
public void writeGraphRDD(Configuration configuration, <any> graphRDD)
OutputRDD
Configuration
maintains the specified location via Constants.GREMLIN_HADOOP_OUTPUT_LOCATION
.writeGraphRDD
in interface OutputRDD
configuration
- the configuration of the Spark jobgraphRDD
- the graphRDD to outputpublic <K,V> Iterator<KeyValue<K,V>> writeMemoryRDD(Configuration configuration, String memoryKey, <any> memoryRDD)
OutputRDD
Configuration
maintains the specified location via Constants.GREMLIN_HADOOP_OUTPUT_LOCATION
.
The default implementation returns an empty iterator.writeMemoryRDD
in interface OutputRDD
K
- the key class of the RDDV
- the value class of the RDDconfiguration
- the configuration of the Spark jobmemoryKey
- the memory key of the memoryRDDmemoryRDD
- the memoryRDDKeyValue
iterator to store in the final resultant Memory
.public boolean supportsResultGraphPersistCombination(GraphComputer.ResultGraph resultGraph, GraphComputer.Persist persist)
supportsResultGraphPersistCombination
in interface PersistResultGraphAware
Copyright © 2013–2019 Apache Software Foundation. All rights reserved.