This project has retired. For details please refer to its
Attic page .
CrunchTool (Apache Crunch 0.7.0 API)
org.apache.crunch.util
Class CrunchTool
java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.crunch.util.CrunchTool
All Implemented Interfaces: Serializable , org.apache.hadoop.conf.Configurable, org.apache.hadoop.util.Tool
Direct Known Subclasses: SortExample
public abstract class CrunchTool extends org.apache.hadoop.conf.Configuredimplements org.apache.hadoop.util.Tool, Serializable
An extension of the Tool
interface that creates a Pipeline
instance and provides methods for working with the Pipeline from inside of
the Tool's run method.
See Also: Serialized Form
Methods inherited from interface org.apache.hadoop.util.Tool
run
CrunchTool
public CrunchTool ()
CrunchTool
public CrunchTool (boolean inMemory)
setConf
public void setConf (org.apache.hadoop.conf.Configuration conf)
Specified by: setConf
in interface org.apache.hadoop.conf.Configurable
Overrides: setConf
in class org.apache.hadoop.conf.Configured
getConf
public org.apache.hadoop.conf.Configuration getConf ()
Specified by: getConf
in interface org.apache.hadoop.conf.Configurable
Overrides: getConf
in class org.apache.hadoop.conf.Configured
enableDebug
public void enableDebug ()
read
public <T> PCollection <T> read (Source <T> source)
read
public <K,V> PTable <K,V> read (TableSource <K,V> tableSource)
readTextFile
public PCollection <String > readTextFile (String pathName)
write
public void write (PCollection <?> pcollection,
Target target)
writeTextFile
public void writeTextFile (PCollection <?> pcollection,
String pathName)
materialize
public <T> Iterable <T> materialize (PCollection <T> pcollection)
run
public PipelineResult run ()
runAsync
public PipelineExecution runAsync ()
done
public PipelineResult done ()
Copyright © 2013 The Apache Software Foundation . All Rights Reserved.