public class DataHandleOutput extends DataHandle
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttributeName(int col)
Returns the name of the specified column.
|
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()
Returns the number of columns in the dataset.
|
int |
getNumRows()
Returns the number of rows in the dataset.
|
StatisticsBuilder |
getStatistics()
Returns an object providing access to basic descriptive statistics about the data represented
by this handle.
|
java.lang.String |
getValue(int row,
int col)
Returns the value in the specified cell.
|
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 |
write(java.io.OutputStream out)
Internal method: writes some data into the output stream
|
getColumnIndexOf, getDate, getDefinition, getDistinctValues, getDouble, getFloat, getInt, getLong, getMatchingDataTypes, getMatchingDataTypes, getMatchingDataTypes, getMatchingDataTypes, getMatchingDataTypes, getMatchingDataTypes, getMatchingDataTypes, getMatchingDataTypes, getNonConformingValues, getNumConformingValues, getRiskEstimator, getRiskEstimator, getRiskEstimator, getRiskEstimator, getRiskEstimator, getRiskEstimator, getRiskEstimator, getTransformation, getView, isOutlier, isReleased, isSuppressed, release, render, save, save, save, save, save, save, save, save, save, sort, sort, sort, sort, swap
public java.lang.String getAttributeName(int col)
DataHandle
getAttributeName
in class DataHandle
col
- The column indexpublic 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()
DataHandle
getNumColumns
in class DataHandle
public int getNumRows()
DataHandle
getNumRows
in class DataHandle
public StatisticsBuilder getStatistics()
DataHandle
getStatistics
in class DataHandle
public java.lang.String getValue(int row, int col)
DataHandle
getValue
in class DataHandle
row
- The cell's row indexcol
- The cell's column indexpublic 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 write(java.io.OutputStream out) throws java.io.IOException
out
- java.io.IOException