public class HDFSLoader extends AbstractLoader implements BatchConverter, IncrementalConverter, EnvironmentHandler, OptionHandler, CommandlineRunnable
Loader.StructureNotReadyException
BATCH, INCREMENTAL, NONE
Constructor and Description |
---|
HDFSLoader()
Constructor
|
Modifier and Type | Method and Description |
---|---|
HDFSConfig |
getConfig()
Get the HDFSConfig
|
Instances |
getDataSet() |
java.lang.String |
getHDFSPath()
Get the path to save to in HDFS
|
AbstractFileLoader |
getLoader()
Get the base loader to use
|
Instance |
getNextInstance(Instances structure) |
java.lang.String[] |
getOptions() |
java.lang.String |
getRevision() |
Instances |
getStructure() |
java.lang.String |
globalInfo()
Help information for the HDFSLoader
|
java.lang.String |
HDFSPathTipText()
Tip text for this property
|
java.util.Enumeration<Option> |
listOptions() |
java.lang.String |
loaderTipText()
Tip text for this property
|
static void |
main(java.lang.String[] args)
Main method
|
void |
postExecution() |
void |
preExecution() |
void |
reset() |
void |
run(java.lang.Object toRun,
java.lang.String[] options) |
void |
setEnvironment(Environment env) |
void |
setHDFSPath(java.lang.String path)
Set the path to load from in HDFS
|
void |
setLoader(AbstractFileLoader loader)
Set the base loader to use
|
void |
setOptions(java.lang.String[] options) |
setRetrieval, setSource, setSource
public HDFSLoader() throws java.lang.Exception
java.lang.Exception
public java.lang.String globalInfo()
public java.util.Enumeration<Option> listOptions()
listOptions
in interface OptionHandler
public void setOptions(java.lang.String[] options) throws java.lang.Exception
setOptions
in interface OptionHandler
java.lang.Exception
public java.lang.String[] getOptions()
getOptions
in interface OptionHandler
public HDFSConfig getConfig()
public java.lang.String HDFSPathTipText()
public void setHDFSPath(java.lang.String path)
path
- the path to load frompublic java.lang.String getHDFSPath()
public java.lang.String loaderTipText()
public void setLoader(AbstractFileLoader loader)
loader
- the base laoder to usepublic AbstractFileLoader getLoader()
public java.lang.String getRevision()
getRevision
in interface RevisionHandler
public void reset() throws java.lang.Exception
reset
in interface Loader
reset
in class AbstractLoader
java.lang.Exception
public Instances getStructure() throws java.io.IOException
getStructure
in interface Loader
getStructure
in class AbstractLoader
java.io.IOException
public Instances getDataSet() throws java.io.IOException
getDataSet
in interface Loader
getDataSet
in class AbstractLoader
java.io.IOException
public Instance getNextInstance(Instances structure) throws java.io.IOException
getNextInstance
in interface Loader
getNextInstance
in class AbstractLoader
java.io.IOException
public void setEnvironment(Environment env)
setEnvironment
in interface EnvironmentHandler
public static void main(java.lang.String[] args)
args
- should contain the options of a Loaderpublic void preExecution()
preExecution
in interface CommandlineRunnable
public void postExecution()
postExecution
in interface CommandlineRunnable
public void run(java.lang.Object toRun, java.lang.String[] options)
run
in interface CommandlineRunnable