public class DataHandleInput extends DataHandle
| Modifier and Type | Field and Description |
|---|---|
protected org.deidentifier.arx.framework.data.DataMatrix |
data
The data.
|
protected org.deidentifier.arx.framework.data.Dictionary |
dictionary
The dictionary.
|
columnToDataType, definition, header, headerMap, node, registry, 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<?>[] |
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
|
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.
|
protected org.deidentifier.arx.framework.data.DataMatrix |
getInputBuffer()
Returns the input buffer
|
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 column)
Returns the value in the specified cell.
|
protected int |
getValueIdentifier(int column,
java.lang.String value)
Returns the internal value identifier
|
protected int |
internalGetEncodedValue(int row,
int column,
boolean ignoreSuppression)
Internal representation of get encoded value.
|
protected java.lang.String |
internalGetValue(int row,
int column,
boolean ignoreSuppression)
Internal representation of get value.
|
protected boolean |
internalIsOutlier(int row)
Returns whether the given row is an outlier.
|
protected boolean |
internalIsOutlier(int row,
int[] columns)
Returns whether this is an outlier regarding the given columns.
|
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?.
|
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(org.deidentifier.arx.framework.data.DataMatrix dataGeneralized,
org.deidentifier.arx.framework.data.DataMatrix dataAnalyzed)
Updates the definition with further data to swap.
|
checkColumn, checkColumns, checkReleased, 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, getRiskEstimator, getTransformation, getView, internalCompare, isAnonymous, isOptimized, isOutlier, isReleased, isSuppressed, release, render, replace, save, save, save, save, save, save, save, save, save, setHeader, setRegistry, setView, sort, sort, sort, sort, swapprotected org.deidentifier.arx.framework.data.DataMatrix data
protected org.deidentifier.arx.framework.data.Dictionary dictionary
protected DataHandleInput(Data data)
data - public java.lang.String getAttributeName(int column)
DataHandlegetAttributeName in class DataHandlecolumn - The column indexpublic 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 java.lang.String getValue(int row,
int column)
DataHandlegetValue in class DataHandlerow - The cell's row indexcolumn - The cell's column indexpublic java.util.Iterator<java.lang.String[]> iterator()
DataHandleiterator in class DataHandleprotected void doRelease()
doRelease in class DataHandleprotected DataType<?> getBaseDataType(java.lang.String attribute)
DataHandlegetBaseDataType in class DataHandleattribute - the attributeprotected 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 org.deidentifier.arx.framework.data.DataMatrix getInputBuffer()
protected int getValueIdentifier(int column,
java.lang.String value)
DataHandlegetValueIdentifier in class DataHandleprotected int internalGetEncodedValue(int row,
int column,
boolean ignoreSuppression)
DataHandleinternalGetEncodedValue in class DataHandlerow - the rowcolumn - the colprotected java.lang.String internalGetValue(int row,
int column,
boolean ignoreSuppression)
DataHandleinternalGetValue in class DataHandlerow - the rowcolumn - the colprotected boolean internalIsOutlier(int row)
row - protected boolean internalIsOutlier(int row,
int[] columns)
DataHandletrue will be returned.internalIsOutlier in class DataHandleprotected 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 boolean isLocked()
protected void setDefinition(DataDefinition definition)
definition - protected void setLocked(boolean locked)
locked - protected void update(Data data)
data - protected void update(org.deidentifier.arx.framework.data.DataMatrix dataGeneralized,
org.deidentifier.arx.framework.data.DataMatrix dataAnalyzed)
dataGeneralized - dataAnalyzed - matrixIS -