public class HDFSLoader extends AbstractLoader implements BatchConverter, IncrementalConverter, EnvironmentHandler, OptionHandler, CommandlineRunnable
Loader.StructureNotReadyExceptionBATCH, 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 |
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, setSourcepublic HDFSLoader()
throws java.lang.Exception
java.lang.Exceptionpublic java.lang.String globalInfo()
public java.util.Enumeration<Option> listOptions()
listOptions in interface OptionHandlerpublic void setOptions(java.lang.String[] options)
throws java.lang.Exception
setOptions in interface OptionHandlerjava.lang.Exceptionpublic java.lang.String[] getOptions()
getOptions in interface OptionHandlerpublic 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 RevisionHandlerpublic void reset()
throws java.lang.Exception
reset in interface Loaderreset in class AbstractLoaderjava.lang.Exceptionpublic Instances getStructure() throws java.io.IOException
getStructure in interface LoadergetStructure in class AbstractLoaderjava.io.IOExceptionpublic Instances getDataSet() throws java.io.IOException
getDataSet in interface LoadergetDataSet in class AbstractLoaderjava.io.IOExceptionpublic Instance getNextInstance(Instances structure) throws java.io.IOException
getNextInstance in interface LoadergetNextInstance in class AbstractLoaderjava.io.IOExceptionpublic void setEnvironment(Environment env)
setEnvironment in interface EnvironmentHandlerpublic static void main(java.lang.String[] args)
args - should contain the options of a Loaderpublic void run(java.lang.Object toRun,
java.lang.String[] options)
run in interface CommandlineRunnable