de.hpi.fgis.voidgen.hadoop
Class Driver
java.lang.Object
de.hpi.fgis.voidgen.hadoop.Driver
- All Implemented Interfaces:
- org.apache.hadoop.conf.Configurable, org.apache.hadoop.util.Tool
- Direct Known Subclasses:
- ClosureDriver, ClusterDescription, ClusteringConnectionBased, ClusteringUriBased, ClusterPatterns, ClusterQuadrupleJoin, ClusterSizeDriver, DataSetDescription, DistinctClustering, InputStatistics, KSimilarity, LinkSetDetection, Start, ToVoid, VocabularyDetection
public abstract class Driver
- extends java.lang.Object
- implements org.apache.hadoop.util.Tool
The abstract class for decoupling the client from
concrete tasks.
- Author:
- Johannes Gosda, Hasso Plattner Institute at University of Potsdam, Germany
Method Summary |
org.apache.hadoop.conf.Configuration |
getConf()
|
org.apache.hadoop.fs.Path |
getPath(java.lang.String propertyName)
Returns the Path specified by a property with the given name. |
java.util.List<org.apache.hadoop.fs.Path> |
getPaths(java.lang.String propertyName)
Returns a list of Paths specified by a property with the given name. |
void |
setConf(org.apache.hadoop.conf.Configuration configuration)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.hadoop.util.Tool |
run |
Driver
public Driver()
getConf
public org.apache.hadoop.conf.Configuration getConf()
- Specified by:
getConf
in interface org.apache.hadoop.conf.Configurable
setConf
public void setConf(org.apache.hadoop.conf.Configuration configuration)
- Specified by:
setConf
in interface org.apache.hadoop.conf.Configurable
getPaths
public java.util.List<org.apache.hadoop.fs.Path> getPaths(java.lang.String propertyName)
- Returns a list of Paths specified by a property with the given name.
- Parameters:
propertyName
- the name of the property containing the paths.
- Returns:
- an array containing paths gained from the values
of a property with the given name.
getPath
public org.apache.hadoop.fs.Path getPath(java.lang.String propertyName)
- Returns the Path specified by a property with the given name.
- Parameters:
propertyName
- The name of the property containing the path.
- Returns:
- The first value of the property with the given name or null if no such Path exists.