public class ArffHeaderHadoopJob extends HadoopJob implements InstancesProducer, CommandlineRunnable
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
OUTPUT_SUBDIR
Subdirectory of the output directory for storing results to
|
COLT_JAR, DISTRIBUTED_WEKA_BASE_JAR, DISTRIBUTED_WEKA_HADOOP_JAR, JCOMMON_JAR, JFREECHART_JAR, LA4J_JAR, OPEN_CSV_JAR| Constructor and Description |
|---|
ArffHeaderHadoopJob()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
attributeNamesFileTipText()
Tip text for this property
|
java.lang.String |
attributeNamesTipText()
Tip text for this property
|
java.lang.String |
csvToArffTaskOptionsTipText()
Tip text for this property
|
java.lang.String |
generateChartsTipText()
Tip text for this property
|
java.lang.String |
getAggregatedHeaderPath() |
java.lang.String |
getAttributeNames()
Get a comma-separated list of attribute names to use when generating the
ARFF header.
|
java.lang.String |
getAttributeNamesFile()
Get the path to an file containing attribute names to use.
|
java.lang.String |
getCsvToArffTaskOptions()
Get the options to pass on to the underlying csv to arff task
|
Instances |
getFinalHeader()
Get the header that was generated by the job.
|
boolean |
getGenerateCharts()
Get whether to generate summary charts as png files in the output directory
(histograms, pie charts, box plots).
|
Instances |
getInstances() |
java.lang.String[] |
getJobOptionsOnly()
Get the options specific to this job only.
|
java.lang.String[] |
getOptions() |
java.lang.String |
getOutputHeaderFileName()
Get the name of the header file to create in the output directory.
|
java.lang.String |
getPathToExistingHeader()
Get the path to an previously created header file to use.
|
java.util.List<java.awt.image.BufferedImage> |
getSummaryCharts()
Get the summary charts (if any)
|
java.lang.String |
globalInfo()
Returns textual help information for this job
|
java.util.Enumeration<Option> |
listOptions() |
static void |
main(java.lang.String[] args) |
java.lang.String |
outputHeaderFileNameTipText()
The tip text for this property
|
java.lang.String |
pathToExistingHeaderTipText()
The tip text for this property
|
void |
run(java.lang.Object toRun,
java.lang.String[] options) |
boolean |
runJob() |
void |
setAttributeNames(java.lang.String names)
Set a comma-separated list of attribute names to use when generating the
ARFF header.
|
void |
setAttributeNamesFile(java.lang.String namesfile)
Set the path to an file containing attribute names to use.
|
void |
setCsvToArffTaskOptions(java.lang.String opts)
Set the options to pass on to the underlying csv to arff task
|
void |
setGenerateCharts(boolean g)
Set whether to generate summary charts as png files in the output directory
(histograms, pie charts, box plots).
|
void |
setOptions(java.lang.String[] options) |
void |
setOutputHeaderFileName(java.lang.String name)
Set the name of the header file to create in the output directory.
|
void |
setPathToExistingHeader(java.lang.String path)
Set the path to an previously created header file to use.
|
additionalWekaPackagesTipText, cleanOutputDirectory, deubgTipText, getAdditionalWekaPackages, getBaseOptionsOnly, getDebug, getLoggingInterval, getMapNumber, getMapReduceJobConfig, getMapReduceNumber, getPathToWekaJar, getReduceNumber, loggingIntervalTipText, pathToWekaJarTipText, setAdditionalWekaPackages, setDebug, setLoggingInterval, setMapReduceJobConfig, setPathToWekaJarpublic static final java.lang.String OUTPUT_SUBDIR
public java.lang.String globalInfo()
public java.lang.String getAggregatedHeaderPath()
public java.util.Enumeration<Option> listOptions()
listOptions in interface OptionHandlerlistOptions in class HadoopJobpublic void setOptions(java.lang.String[] options)
throws java.lang.Exception
setOptions in interface OptionHandlersetOptions in class HadoopJobjava.lang.Exceptionpublic java.lang.String[] getJobOptionsOnly()
public java.lang.String[] getOptions()
getOptions in interface OptionHandlergetOptions in class HadoopJobpublic Instances getFinalHeader()
public Instances getInstances()
getInstances in interface InstancesProducerpublic java.lang.String pathToExistingHeaderTipText()
public void setPathToExistingHeader(java.lang.String path)
path - the path to a previously created headerpublic java.lang.String getPathToExistingHeader()
public java.lang.String outputHeaderFileNameTipText()
public void setOutputHeaderFileName(java.lang.String name)
name - the name for the ARFF header filepublic java.lang.String getOutputHeaderFileName()
public java.lang.String attributeNamesTipText()
public void setAttributeNames(java.lang.String names)
names - the names of the attributespublic java.lang.String getAttributeNames()
public java.lang.String attributeNamesFileTipText()
public void setAttributeNamesFile(java.lang.String namesfile)
namesfile - the path to a names file to usepublic java.lang.String getAttributeNamesFile()
public java.lang.String generateChartsTipText()
public void setGenerateCharts(boolean g)
g - true if summary charts are to be generatedpublic boolean getGenerateCharts()
public java.lang.String csvToArffTaskOptionsTipText()
public void setCsvToArffTaskOptions(java.lang.String opts)
opts - options to pass on to the csv to arff map and reduce taskspublic java.lang.String getCsvToArffTaskOptions()
public java.util.List<java.awt.image.BufferedImage> getSummaryCharts()
public boolean runJob()
throws weka.distributed.DistributedWekaException
runJob in class distributed.core.DistributedJobweka.distributed.DistributedWekaExceptionpublic static void main(java.lang.String[] args)
public void run(java.lang.Object toRun,
java.lang.String[] options)
throws java.lang.IllegalArgumentException
run in interface CommandlineRunnablejava.lang.IllegalArgumentException