public class ETLStepResultImpl extends java.lang.Object implements ETLStepResult, java.io.Serializable
ETLStepResult
interface.Constructor and Description |
---|
ETLStepResultImpl(ETLStepResult result) |
ETLStepResultImpl(java.lang.String outputFlowUuid,
java.util.List<ETLStepMetadataFieldBean> metadataFields) |
ETLStepResultImpl(java.lang.String outputFlowUuid,
java.util.List<ETLStepMetadataFieldBean> metadataFields,
java.util.List<java.lang.Object[]> rows) |
Modifier and Type | Method and Description |
---|---|
void |
addRow(java.lang.Object[] row)
Add a row of data to this result.
|
void |
addRows(java.util.List<java.lang.Object[]> rows)
Add multiple rows of data to this result.
|
java.util.List<java.lang.Object[]> |
getData()
Return available data as a List.
|
java.lang.String |
getFieldForIndex(int idx)
Get field at a specified index.
|
int |
getIndexForField(java.lang.String fieldUuid)
Get position of a field.
|
java.util.List<ETLStepMetadataFieldBean> |
getMetadataFields()
Return the structure of data in the result as a List of
ETLStepMetadataFieldBean . |
java.lang.String |
getOutputFlow()
Get the output flow UUID corresponding to this result
|
long |
getRowCount()
Get the count of rows of data in this Result object.
|
boolean |
isEmpty()
Return true if there is no data.
|
int |
length()
Get the length of every row in the result.
|
void |
reset()
Clear all added rows.
|
public ETLStepResultImpl(java.lang.String outputFlowUuid, java.util.List<ETLStepMetadataFieldBean> metadataFields)
public ETLStepResultImpl(java.lang.String outputFlowUuid, java.util.List<ETLStepMetadataFieldBean> metadataFields, java.util.List<java.lang.Object[]> rows)
public ETLStepResultImpl(ETLStepResult result)
public void reset()
ETLStepResult
reset
in interface ETLStepResult
public boolean isEmpty()
ETLStepResult
isEmpty
in interface ETLStepResult
public java.lang.String getOutputFlow()
ETLStepResult
getOutputFlow
in interface ETLStepResult
public java.util.List<java.lang.Object[]> getData()
ETLStepResult
ETLStepResult.getMetadataFields()
getData
in interface ETLStepResult
public int getIndexForField(java.lang.String fieldUuid)
ETLStepResult
getIndexForField
in interface ETLStepResult
ETLStepResult.getData()
,
ETLStepResult.getMetadataFields()
public java.lang.String getFieldForIndex(int idx)
ETLStepResult
getFieldForIndex
in interface ETLStepResult
ETLStepResult.getData()
,
ETLStepResult.getMetadataFields()
public java.util.List<ETLStepMetadataFieldBean> getMetadataFields()
ETLStepResult
ETLStepMetadataFieldBean
.getMetadataFields
in interface ETLStepResult
ETLStepResult.getData()
public void addRow(java.lang.Object[] row)
ETLStepResult
addRow
in interface ETLStepResult
public void addRows(java.util.List<java.lang.Object[]> rows)
ETLStepResult
addRows
in interface ETLStepResult
public int length()
ETLStepResult
length
in interface ETLStepResult
public long getRowCount()
ETLStepResult
getRowCount
in interface ETLStepResult