@TypedActionDef(name="readdataset", inputType=BinaryData.class, outputType=DataSet.class, description="Read DataSet from text file") @Parameter(name="columnNames",multiple=true,description="The names of columns. By default the first raw is supposed to be name raw") @Parameter(name="encoding",def="UTF8",description="file encoding") @Parameter(name="headerLength",type=NUMBER,description="The number of header lines to be ignored") @Parameter(name="dataSetName",description="The name of resulting DataSet. By default the input content name is taken.") public class ReadDataSetAction extends OneToOneAction<BinaryData,DataSet>
ReadDataSetAction class.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
READ_DATA_SET_ACTION_NAME
Constant
READ_DATA_SET_ACTION_NAME="readdataset" |
ACTION_DEPENDENCY_LOG_KEY, ACTION_DEPENDENCY_META_KEY| Constructor and Description |
|---|
ReadDataSetAction(ActionContext context,
Meta an)
Constructor for ReadDataSetAction.
|
| Modifier and Type | Method and Description |
|---|---|
protected DataSet |
execute(Logable log,
MetaReader reader,
BinaryData source)
Calculate the action result for single input content TODO replace input
by Dependency
|
afterSingle, beforeSingle, execute, runOne, runOneafterAction, beforeAction, buildLog, getAnnotationReader, getAnnotationReader, getContext, getDependencyLog, getDescriptor, getInputType, getName, getOutputType, isEmptyInputAllowed, isParallelExecutionAllowed, run, run, wrapannotate, annotate, getValue, hasValue, meta, setDescriptorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisAnonimousgetBoolean, getBoolean, getDouble, getDouble, getInt, getInt, getString, getString, getValuepublic static final java.lang.String READ_DATA_SET_ACTION_NAME
READ_DATA_SET_ACTION_NAME="readdataset"public ReadDataSetAction(ActionContext context, Meta an)
Constructor for ReadDataSetAction.
protected DataSet execute(Logable log, MetaReader reader, BinaryData source)
execute in class OneToOneAction<BinaryData,DataSet>source - log - a Logable object.reader - a MetaReader
object.