public class DataHandleOutput extends DataHandle
Modifier and Type | Class and Description |
---|---|
class |
DataHandleOutput.ResultIterator
The class ResultIterator.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttributeName(int col)
Gets the attribute name.
|
DataType<?> |
getDataType(java.lang.String attribute)
Returns the according data type.
|
int |
getGeneralization(java.lang.String attribute)
Returns the generalization level for the attribute.
|
int |
getNumColumns()
Gets the num columns.
|
int |
getNumRows()
Gets the num rows.
|
java.lang.String |
getValue(int row,
int col)
Gets the value.
|
boolean |
isOptimized()
Has this handle been optimized with local recoding?
|
java.util.Iterator<java.lang.String[]> |
iterator()
Iterator.
|
boolean |
replace(int column,
java.lang.String original,
java.lang.String replacement)
Replaces the original value with the replacement in the given column.
|
void |
updateData(DataHandle data,
java.util.Map<java.lang.String,DataType<?>> types,
int[] outliers)
Used to update data when loading projects after local recoding.
|
getColumnIndexOf, getDate, getDefinition, getDistinctValues, getDouble, getFloat, getInt, getLong, getMatchingDataTypes, getMatchingDataTypes, getMatchingDataTypes, getMatchingDataTypes, getMatchingDataTypes, getMatchingDataTypes, getMatchingDataTypes, getMatchingDataTypes, getNonConformingValues, getNumConformingValues, getRiskEstimator, getRiskEstimator, getRiskEstimator, getRiskEstimator, getRiskEstimator, getRiskEstimator, getStatistics, getTransformation, getView, isOrphaned, isOutlier, release, save, save, save, save, save, save, save, save, save, sort, sort, sort, sort, swap
public java.lang.String getAttributeName(int col)
getAttributeName
in class DataHandle
col
- the colpublic DataType<?> getDataType(java.lang.String attribute)
DataHandle
getDataType
in class DataHandle
attribute
- the attributepublic int getGeneralization(java.lang.String attribute)
DataHandle
getGeneralization
in class DataHandle
attribute
- the attributepublic int getNumColumns()
getNumColumns
in class DataHandle
public int getNumRows()
getNumRows
in class DataHandle
public java.lang.String getValue(int row, int col)
getValue
in class DataHandle
row
- the rowcol
- the colpublic boolean isOptimized()
DataHandle
isOptimized
in class DataHandle
public java.util.Iterator<java.lang.String[]> iterator()
iterator
in class DataHandle
public boolean replace(int column, java.lang.String original, java.lang.String replacement)
DataHandle
replace
in class DataHandle
column
- the columnoriginal
- the originalreplacement
- the replacementpublic void updateData(DataHandle data, java.util.Map<java.lang.String,DataType<?>> types, int[] outliers)
data
- types
-