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, swap
public DataHandleSubset(DataHandle source, DataSubset subset)
source
- subset
- 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 int[] getSubset()
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 DataHandle getView()
DataHandle
getView
in class DataHandle
public boolean isOptimized()
DataHandle
isOptimized
in class DataHandle
public boolean isOutlier(int row)
DataHandle
isOutlier
in class DataHandle
row
- the rowpublic java.util.Iterator<java.lang.String[]> iterator()
DataHandle
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 replacement