|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.rapidminer.tools.AbstractObservable<Operator>
com.rapidminer.operator.Operator
com.rapidminer.operator.io.AbstractReader<T>
public abstract class AbstractReader<T extends IOObject>
Superclass of all operators that have no input and generate a single output. This class is mainly a tribute to the e-LICO DMO.
| Nested Class Summary | |
|---|---|
static class |
AbstractReader.ReaderDescription
Describes an operator that can read certain file types. |
| Constructor Summary | |
|---|---|
AbstractReader(OperatorDescription description,
java.lang.Class<? extends IOObject> generatedClass)
|
|
| Method Summary | |
|---|---|
protected void |
addAnnotations(T result)
|
static boolean |
canMakeReaderFor(java.net.URL url)
|
static AbstractReader |
createReader(java.net.URL url)
|
void |
doWork()
Performs the actual work of the operator and must be implemented by subclasses. |
static java.lang.String |
getFileParameterForOperator(Operator operator)
Returns the key of the parameter that specifies the file to be read. |
MetaData |
getGeneratedMetaData()
|
java.util.List<ParameterType> |
getParameterTypes()
Returns a list of ParameterTypes describing the parameters of this operator. |
protected boolean |
isMetaDataCacheable()
|
abstract T |
read()
Creates (or reads) the ExampleSet that will be returned by Operator.apply(). |
protected void |
registerOperator(Process process)
Registers this operator in the given process. |
protected static void |
registerReaderDescription(AbstractReader.ReaderDescription rd)
Registers an operator that can read files with a given extension. |
protected boolean |
supportsEncoding()
|
| Methods inherited from class com.rapidminer.tools.AbstractObservable |
|---|
addObserver, addObserverAsFirst, fireUpdate, removeObserver |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractReader(OperatorDescription description,
java.lang.Class<? extends IOObject> generatedClass)
| Method Detail |
|---|
public MetaData getGeneratedMetaData()
throws OperatorException
OperatorExceptionprotected boolean isMetaDataCacheable()
public abstract T read()
throws OperatorException
Operator.apply().
OperatorException
public void doWork()
throws OperatorException
Operatorapply().
doWork in class OperatorOperatorExceptionprotected void addAnnotations(T result)
protected static void registerReaderDescription(AbstractReader.ReaderDescription rd)
public static AbstractReader createReader(java.net.URL url)
throws OperatorCreationException
OperatorCreationExceptionpublic static boolean canMakeReaderFor(java.net.URL url)
public static java.lang.String getFileParameterForOperator(Operator operator)
protected void registerOperator(Process process)
Operator
registerOperator in class Operatorprotected boolean supportsEncoding()
public java.util.List<ParameterType> getParameterTypes()
Operator
getParameterTypes in interface ParameterHandlergetParameterTypes in class Operator
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||