public class DataHandleInput extends DataHandle
Modifier and Type | Field and Description |
---|---|
protected int[][] |
data
The data.
|
protected org.deidentifier.arx.framework.data.Dictionary |
dictionary
The dictionary.
|
dataTypes, definition, header, node, registry, statistics, subset
Modifier | Constructor and Description |
---|---|
protected |
DataHandleInput(Data data)
Creates a new data handle.
|
Modifier and Type | Method and Description |
---|---|
protected void |
doRelease()
Releases all resources.
|
java.lang.String |
getAttributeName(int column)
Returns the name of the specified column.
|
protected DataType<?> |
getBaseDataType(java.lang.String attribute)
Returns the base data type without generalization.
|
protected DataType<?>[][] |
getDataTypeArray()
Generates an array of data types.
|
protected java.lang.String[] |
getDistinctValues(int column,
DataHandleStatistics.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.
|
java.lang.String |
getValue(int row,
int column)
Returns the value in the specified cell.
|
protected java.lang.String |
internalGetValue(int row,
int column)
Internal representation of get value.
|
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 rows.
|
protected boolean |
isLocked()
Is this handle locked?.
|
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.
|
protected void |
setDefinition(DataDefinition definition)
Overrides the handles data definition.
|
protected void |
setLocked(boolean locked)
Lock/unlock this handle.
|
protected void |
update(Data data)
Update the definition.
|
protected void |
update(int[][] dataGH,
int[][] dataDI,
int[][] dataIS)
Updates the definition with further data to swap.
|
checkColumn, checkColumns, checkRegistry, checkRow, getColumnIndexOf, getDataType, getDate, getDefinition, getDistinctValues, getDouble, getFloat, getInt, getLong, getMatchingDataTypes, getMatchingDataTypes, getMatchingDataTypes, getMatchingDataTypes, getMatchingDataTypes, getMatchingDataTypes, getMatchingDataTypes, getMatchingDataTypes, getNonConformingValues, getNumConformingValues, getRegistry, getRiskEstimator, getRiskEstimator, getRiskEstimator, getRiskEstimator, getRiskEstimator, getRiskEstimator, getStatistics, getSuppressionString, getTransformation, getView, internalCompare, isOrphaned, release, replace, save, save, save, save, save, save, save, save, save, setRegistry, setView, sort, sort, sort, sort, swap
protected int[][] data
protected org.deidentifier.arx.framework.data.Dictionary dictionary
protected DataHandleInput(Data data)
data
- public java.lang.String getAttributeName(int column)
DataHandle
getAttributeName
in class DataHandle
column
- The column indexpublic 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 java.lang.String getValue(int row, int column)
DataHandle
getValue
in class DataHandle
row
- The cell's row indexcolumn
- The cell's column indexpublic boolean isOutlier(int row)
DataHandle
isOutlier
in class DataHandle
row
- the rowpublic java.util.Iterator<java.lang.String[]> iterator()
DataHandle
iterator
in class DataHandle
protected void doRelease()
doRelease
in class DataHandle
protected DataType<?> getBaseDataType(java.lang.String attribute)
DataHandle
getBaseDataType
in class DataHandle
attribute
- the attributeprotected DataType<?>[][] getDataTypeArray()
DataHandle
getDataTypeArray
in class DataHandle
protected java.lang.String[] getDistinctValues(int column, DataHandleStatistics.InterruptHandler handler)
DataHandle
getDistinctValues
in class DataHandle
column
- the columnhandler
- the handlerprotected java.lang.String internalGetValue(int row, int column)
DataHandle
internalGetValue
in class DataHandle
row
- the rowcolumn
- the colprotected boolean internalReplace(int column, java.lang.String original, java.lang.String replacement)
DataHandle
internalReplace
in class DataHandle
column
- the columnoriginal
- the originalreplacement
- the replacementprotected void internalSwap(int row1, int row2)
row1
- row2
- protected boolean isLocked()
protected void setDefinition(DataDefinition definition)
definition
- protected void setLocked(boolean locked)
locked
- protected void update(Data data)
data
- protected void update(int[][] dataGH, int[][] dataDI, int[][] dataIS)
dataGH
- dataDI
- dataIS
-