public class TriangleListing<K extends Comparable<K> & CopyableValue<K>,VV,EV> extends SimpleDriver<K,VV,EV,PrintableResult> implements CSV, Hash, Print
TriangleListing
,
TriadicCensus
,
TriangleListing
,
TriadicCensus
Constructor and Description |
---|
TriangleListing() |
Modifier and Type | Method and Description |
---|---|
String |
getLongDescription()
A multi-line description, presented in the algorithm usage.
|
String |
getName()
A unique, human-readable identifier.
|
String |
getShortDescription()
A one-line description, presented in the algorithm listing.
|
void |
hash(String executionName)
Print hash of execution results.
|
void |
print(String executionName)
Print execution results.
|
protected DataSet<PrintableResult> |
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.
|
getResult, plan
addParameter, configure, getUsage
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
configure, getUsage
public String getName()
Parameterized
getName
in interface Parameterized
public String getShortDescription()
Driver
getShortDescription
in interface Driver<K extends Comparable<K> & CopyableValue<K>,VV,EV>
public String getLongDescription()
Driver
getLongDescription
in interface Driver<K extends Comparable<K> & CopyableValue<K>,VV,EV>
protected DataSet<PrintableResult> simplePlan(Graph<K,VV,EV> graph) throws Exception
SimpleDriver
DataSet
.simplePlan
in class SimpleDriver<K extends Comparable<K> & CopyableValue<K>,VV,EV,PrintableResult>
graph
- input graphException
- on errorpublic void hash(String executionName) throws Exception
SimpleDriver
Hash
since Driver
implementations designate the appropriate outputs.hash
in interface Hash
hash
in class SimpleDriver<K extends Comparable<K> & CopyableValue<K>,VV,EV,PrintableResult>
executionName
- job nameException
- on errorpublic void print(String executionName) throws Exception
SimpleDriver
Print
since Driver
implementations designate the appropriate outputs.print
in interface Print
print
in class SimpleDriver<K extends Comparable<K> & CopyableValue<K>,VV,EV,PrintableResult>
executionName
- job nameException
- on errorpublic void writeCSV(String filename, String lineDelimiter, String fieldDelimiter)
SimpleDriver
CSV
since Driver
implementations designate the appropriate outputs.writeCSV
in interface CSV
writeCSV
in class SimpleDriver<K extends Comparable<K> & CopyableValue<K>,VV,EV,PrintableResult>
filename
- output filenamelineDelimiter
- CSV delimiter between linesfieldDelimiter
- CSV delimiter between fieldsCopyright © 2014–2018 The Apache Software Foundation. All rights reserved.