public class DataHandleSubset extends DataHandle
| Constructor and Description |
|---|
DataHandleSubset(DataHandle source,
DataSubset subset)
Creates a new handle that represents the research subset.
|
| 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.
|
int[] |
getSubset()
Returns the research subset.
|
java.lang.String |
getValue(int row,
int col)
Returns the value in the specified cell.
|
DataHandle |
getView()
Returns a new data handle that represents a context specific view on the dataset.
|
boolean |
isOptimized()
Has this handle been optimized with local recoding?
|
boolean |
isOutlier(int row)
Determines whether a given row is an outlier in the currently associated
data transformation.
|
java.util.Iterator<java.lang.String[]> |
iterator()
Returns an iterator over the data.
|
boolean |
replace(int column,
java.lang.String original,
java.lang.String replacement)
Replaces the original value with the replacement in the given column.
|
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, isReleased, isSuppressed, release, render, save, save, save, save, save, save, save, save, save, sort, sort, sort, sort, swappublic DataHandleSubset(DataHandle source, DataSubset subset)
source - subset - public java.lang.String getAttributeName(int col)
DataHandlegetAttributeName in class DataHandlecol - The column indexpublic DataType<?> getDataType(java.lang.String attribute)
DataHandlegetDataType in class DataHandleattribute - the attributepublic int getGeneralization(java.lang.String attribute)
DataHandlegetGeneralization in class DataHandleattribute - the attributepublic int getNumColumns()
DataHandlegetNumColumns in class DataHandlepublic int getNumRows()
DataHandlegetNumRows in class DataHandlepublic StatisticsBuilder getStatistics()
DataHandlegetStatistics in class DataHandlepublic int[] getSubset()
public java.lang.String getValue(int row,
int col)
DataHandlegetValue in class DataHandlerow - The cell's row indexcol - The cell's column indexpublic DataHandle getView()
DataHandlegetView in class DataHandlepublic boolean isOptimized()
DataHandleisOptimized in class DataHandlepublic boolean isOutlier(int row)
DataHandleisOutlier in class DataHandlerow - the rowpublic java.util.Iterator<java.lang.String[]> iterator()
DataHandleiterator in class DataHandlepublic boolean replace(int column,
java.lang.String original,
java.lang.String replacement)
DataHandlereplace in class DataHandlecolumn - the columnoriginal - the originalreplacement - the replacement