public class DataHandleSubset extends DataHandle
columnToDataType, definition, header, headerMap, node, registry| Constructor and Description |
|---|
DataHandleSubset(DataHandle source,
DataSubset subset)
Creates a new handle that represents the research subset.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doRelease()
Releases all resources.
|
java.lang.String |
getAttributeName(int col)
Returns the name of the specified column.
|
protected DataType<?>[] |
getColumnToDataType()
Generates an array of data types.
|
protected ARXConfiguration |
getConfiguration()
Returns the ARXConfiguration that is currently being used, null if this is an input handle
|
DataType<?> |
getDataType(java.lang.String attribute)
Returns the according data type.
|
protected java.lang.String[] |
getDistinctValues(int column,
boolean ignoreSuppression,
DataHandleInternal.InterruptHandler handler)
Returns the distinct values.
|
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.
|
protected DataHandle |
getSource()
Returns the underlying source data handle.
|
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.
|
protected int |
getValueIdentifier(int column,
java.lang.String value)
Returns the internal value identifier
|
DataHandle |
getView()
Returns a new data handle that represents a context specific view on the dataset.
|
protected int |
internalCompare(int row1,
int row2,
int[] columns,
boolean ascending)
A negative integer, zero, or a positive integer as the first argument is
less than, equal to, or greater than the second.
|
protected int |
internalGetEncodedValue(int row,
int col,
boolean ignoreSuppression)
Internal representation of get encoded value.
|
protected java.lang.String |
internalGetValue(int row,
int col,
boolean ignoreSuppression)
Internal representation of get value.
|
protected boolean |
internalIsOutlier(int row,
int[] columns)
Returns whether this is an outlier regarding the given columns.
|
protected void |
internalRebuild()
Rebuild array representation of subset.
|
protected boolean |
internalReplace(int column,
java.lang.String original,
java.lang.String replacement)
Internal replacement method.
|
protected void |
internalSwap(int row1,
int row2)
Swaps the bits in the set representation.
|
protected int |
internalTranslate(int row)
Translates the row number.
|
protected boolean |
isAnonymous()
Returns whether the data represented by this handle is anonymous
|
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.
|
checkColumn, checkColumns, checkReleased, checkRow, getBaseDataType, getColumnIndexOf, getDate, getDefinition, getDistinctValues, getDouble, getFloat, getInt, getLong, getMatchingDataTypes, getMatchingDataTypes, getMatchingDataTypes, getMatchingDataTypes, getMatchingDataTypes, getMatchingDataTypes, getMatchingDataTypes, getMatchingDataTypes, getNonConformingValues, getNumConformingValues, getRegistry, getRiskEstimator, getRiskEstimator, getRiskEstimator, getRiskEstimator, getRiskEstimator, getRiskEstimator, getRiskEstimator, getTransformation, isReleased, isSuppressed, release, render, save, save, save, save, save, save, save, save, save, setHeader, setRegistry, setView, 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 replacementprotected void doRelease()
DataHandledoRelease in class DataHandleprotected DataType<?>[] getColumnToDataType()
DataHandlegetColumnToDataType in class DataHandleprotected ARXConfiguration getConfiguration()
DataHandlegetConfiguration in class DataHandleprotected java.lang.String[] getDistinctValues(int column,
boolean ignoreSuppression,
DataHandleInternal.InterruptHandler handler)
DataHandlegetDistinctValues in class DataHandlecolumn - the columnhandler - the handlerprotected DataHandle getSource()
protected int getValueIdentifier(int column,
java.lang.String value)
DataHandlegetValueIdentifier in class DataHandleprotected int internalCompare(int row1,
int row2,
int[] columns,
boolean ascending)
DataHandleinternalCompare in class DataHandlerow1 - the row1row2 - the row2columns - the columnsascending - the ascendingprotected int internalGetEncodedValue(int row,
int col,
boolean ignoreSuppression)
DataHandleinternalGetEncodedValue in class DataHandlerow - the rowcol - the colprotected java.lang.String internalGetValue(int row,
int col,
boolean ignoreSuppression)
DataHandleinternalGetValue in class DataHandlerow - the rowcol - the colprotected boolean internalIsOutlier(int row,
int[] columns)
DataHandletrue will be returned.internalIsOutlier in class DataHandleprotected void internalRebuild()
protected boolean internalReplace(int column,
java.lang.String original,
java.lang.String replacement)
DataHandleinternalReplace in class DataHandlecolumn - the columnoriginal - the originalreplacement - the replacementprotected void internalSwap(int row1,
int row2)
row1 - row2 - protected int internalTranslate(int row)
row - protected boolean isAnonymous()
DataHandleisAnonymous in class DataHandle