Package org.deidentifier.arx
Klasse DataHandleInput
java.lang.Object
org.deidentifier.arx.DataHandle
org.deidentifier.arx.DataHandleInput
An implementation of the DataHandle interface for input data.
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungprotected DataMatrixThe data.protected DictionaryThe dictionary.Von Klasse geerbte Felder org.deidentifier.arx.DataHandle
columnToDataType, definition, header, headerMap, node, registry, subset -
Konstruktorübersicht
KonstruktorenModifiziererKonstruktorBeschreibungprotectedDataHandleInput(Data data) Creates a new data handle. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected voidReleases all resources.getAttributeName(int column) Returns the name of the specified column.protected DataType<?> getBaseDataType(String attribute) Returns the base data type without generalization.protected DataType<?>[]Generates an array of data types.protected ARXConfigurationReturns the ARXConfiguration that is currently being used, null if this is an input handleprotected String[]getDistinctValues(int column, boolean ignoreSuppression, DataHandleInternal.InterruptHandler handler) Returns the distinct values.intgetGeneralization(String attribute) Returns the generalization level for the attribute.protected DataMatrixReturns the input bufferintReturns the number of columns in the dataset.intReturns the number of rows in the dataset.Returns an object providing access to basic descriptive statistics about the data represented by this handle.getValue(int row, int column) Returns the value in the specified cell.protected intgetValueIdentifier(int column, String value) Returns the internal value identifierprotected intinternalGetEncodedValue(int row, int column, boolean ignoreSuppression) Internal representation of get encoded value.protected StringinternalGetValue(int row, int column, boolean ignoreSuppression) Internal representation of get value.protected booleaninternalIsOutlier(int row) Returns whether the given row is an outlier.protected booleaninternalIsOutlier(int row, int[] columns) Returns whether this is an outlier regarding the given columns.protected booleaninternalReplace(int column, String original, String replacement) Internal replacement method.protected voidinternalSwap(int row1, int row2) Swaps the rows.protected booleanisLocked()Is this handle locked?.iterator()Returns an iterator over the data.protected voidsetDefinition(DataDefinition definition) Overrides the handles data definition.protected voidsetLocked(boolean locked) Lock/unlock this handle.Returns an iterator over the data in a random order.protected voidUpdate the definition.protected voidupdate(DataMatrix dataGeneralized, DataMatrix dataAnalyzed) Updates the definition with further data to swap.Von Klasse geerbte Methoden org.deidentifier.arx.DataHandle
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, swap
-
Felddetails
-
data
The data. -
dictionary
The dictionary.
-
-
Konstruktordetails
-
DataHandleInput
Creates a new data handle.- Parameter:
data-
-
-
Methodendetails
-
getAttributeName
Beschreibung aus Klasse kopiert:DataHandleReturns the name of the specified column.- Angegeben von:
getAttributeNamein KlasseDataHandle- Parameter:
column- The column index- Gibt zurück:
- the attribute name
-
getGeneralization
Beschreibung aus Klasse kopiert:DataHandleReturns the generalization level for the attribute.- Angegeben von:
getGeneralizationin KlasseDataHandle- Parameter:
attribute- the attribute- Gibt zurück:
- the generalization
-
getNumColumns
public int getNumColumns()Beschreibung aus Klasse kopiert:DataHandleReturns the number of columns in the dataset.- Angegeben von:
getNumColumnsin KlasseDataHandle- Gibt zurück:
- the num columns
-
getNumRows
public int getNumRows()Beschreibung aus Klasse kopiert:DataHandleReturns the number of rows in the dataset.- Angegeben von:
getNumRowsin KlasseDataHandle- Gibt zurück:
- the num rows
-
getStatistics
Beschreibung aus Klasse kopiert:DataHandleReturns an object providing access to basic descriptive statistics about the data represented by this handle.- Angegeben von:
getStatisticsin KlasseDataHandle- Gibt zurück:
- the statistics
-
getValue
Beschreibung aus Klasse kopiert:DataHandleReturns the value in the specified cell.- Angegeben von:
getValuein KlasseDataHandle- Parameter:
row- The cell's row indexcolumn- The cell's column index- Gibt zurück:
- the value
-
iterator
Beschreibung aus Klasse kopiert:DataHandleReturns an iterator over the data.- Angegeben von:
iteratorin KlasseDataHandle- Gibt zurück:
- the iterator
-
shuffledIterator
Beschreibung aus Klasse kopiert:DataHandleReturns an iterator over the data in a random order.- Angegeben von:
shuffledIteratorin KlasseDataHandle- Gibt zurück:
- the iterator
-
doRelease
protected void doRelease()Releases all resources.- Angegeben von:
doReleasein KlasseDataHandle
-
getBaseDataType
Beschreibung aus Klasse kopiert:DataHandleReturns the base data type without generalization.- Setzt außer Kraft:
getBaseDataTypein KlasseDataHandle- Parameter:
attribute- the attribute- Gibt zurück:
- the base data type
-
getColumnToDataType
Beschreibung aus Klasse kopiert:DataHandleGenerates an array of data types.- Angegeben von:
getColumnToDataTypein KlasseDataHandle- Gibt zurück:
- the data type array
-
getConfiguration
Beschreibung aus Klasse kopiert:DataHandleReturns the ARXConfiguration that is currently being used, null if this is an input handle- Angegeben von:
getConfigurationin KlasseDataHandle- Gibt zurück:
-
getDistinctValues
protected String[] getDistinctValues(int column, boolean ignoreSuppression, DataHandleInternal.InterruptHandler handler) Beschreibung aus Klasse kopiert:DataHandleReturns the distinct values.- Angegeben von:
getDistinctValuesin KlasseDataHandle- Parameter:
column- the columnignoreSuppression-handler- the handler- Gibt zurück:
- the distinct values
-
getInputBuffer
Returns the input buffer- Gibt zurück:
-
getValueIdentifier
Beschreibung aus Klasse kopiert:DataHandleReturns the internal value identifier- Angegeben von:
getValueIdentifierin KlasseDataHandle- Parameter:
column-value-- Gibt zurück:
-
internalGetEncodedValue
protected int internalGetEncodedValue(int row, int column, boolean ignoreSuppression) Beschreibung aus Klasse kopiert:DataHandleInternal representation of get encoded value. Returns -1 for suppressed values.- Angegeben von:
internalGetEncodedValuein KlasseDataHandle- Parameter:
row- the rowcolumn- the col- Gibt zurück:
- the value
-
internalGetValue
Beschreibung aus Klasse kopiert:DataHandleInternal representation of get value.- Angegeben von:
internalGetValuein KlasseDataHandle- Parameter:
row- the rowcolumn- the col- Gibt zurück:
- the string
-
internalIsOutlier
protected boolean internalIsOutlier(int row) Returns whether the given row is an outlier.- Parameter:
row-- Gibt zurück:
-
internalIsOutlier
protected boolean internalIsOutlier(int row, int[] columns) Beschreibung aus Klasse kopiert:DataHandleReturns whether this is an outlier regarding the given columns. If no columns have been specified,truewill be returned.- Angegeben von:
internalIsOutlierin KlasseDataHandle- Parameter:
row-columns-- Gibt zurück:
-
internalReplace
Beschreibung aus Klasse kopiert:DataHandleInternal replacement method.- Angegeben von:
internalReplacein KlasseDataHandle- Parameter:
column- the columnoriginal- the originalreplacement- the replacement- Gibt zurück:
- true, if successful
-
internalSwap
protected void internalSwap(int row1, int row2) Swaps the rows.- Parameter:
row1-row2-
-
isLocked
protected boolean isLocked()Is this handle locked?.- Gibt zurück:
-
setDefinition
Overrides the handles data definition.- Parameter:
definition-
-
setLocked
protected void setLocked(boolean locked) Lock/unlock this handle.- Parameter:
locked-
-
update
Update the definition.- Parameter:
data-
-
update
Updates the definition with further data to swap.- Parameter:
dataGeneralized-dataAnalyzed-matrixIS-
-