R
- algorithm's result typepublic abstract class SimpleDriver<K,VV,EV,R extends PrintableResult> extends ParameterizedBase implements Driver<K,VV,EV>
DataSet
with values
implementing PrintableResult
.Constructor and Description |
---|
SimpleDriver() |
Modifier and Type | Method and Description |
---|---|
protected DataSet<R> |
getResult() |
void |
hash(String executionName)
Print hash of execution results.
|
void |
plan(Graph<K,VV,EV> graph)
"Run" algorithms and analytics on the input graph.
|
void |
print(String executionName)
Print execution results.
|
protected abstract DataSet<R> |
simplePlan(Graph<K,VV,EV> graph)
Plan the algorithm and return the result
DataSet . |
void |
writeCSV(String filename,
String lineDelimiter,
String fieldDelimiter)
Write execution results to file using CSV format.
|
addParameter, configure, getUsage
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLongDescription, getShortDescription
configure, getName, getUsage
protected abstract DataSet<R> simplePlan(Graph<K,VV,EV> graph) throws Exception
DataSet
.graph
- input graphException
- on errorpublic void plan(Graph<K,VV,EV> graph) throws Exception
Driver
public void hash(String executionName) throws Exception
Hash
since Driver
implementations designate the appropriate outputs.executionName
- job nameException
- on errorpublic void print(String executionName) throws Exception
Print
since Driver
implementations designate the appropriate outputs.executionName
- job nameException
- on errorpublic void writeCSV(String filename, String lineDelimiter, String fieldDelimiter)
CSV
since Driver
implementations designate the appropriate outputs.filename
- output filenamelineDelimiter
- CSV delimiter between linesfieldDelimiter
- CSV delimiter between fieldsCopyright © 2014–2018 The Apache Software Foundation. All rights reserved.