Package org.deidentifier.arx
Klasse DataHandleSubset
java.lang.Object
org.deidentifier.arx.DataHandle
org.deidentifier.arx.DataHandleSubset
This implementation of a data handle projects a given data handle onto a given research subset.
-
Feldübersicht
Von Klasse geerbte Felder org.deidentifier.arx.DataHandle
columnToDataType, definition, header, headerMap, node, registry -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungDataHandleSubset(DataHandle source, DataSubset subset) Creates a new handle that represents the research subset. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected voidReleases all resources.getAttributeName(int col) Returns the name of the specified column.protected DataType<?>[]Generates an array of data types.protected ARXConfigurationReturns the ARXConfiguration that is currently being used, null if this is an input handleDataType<?> getDataType(String attribute) Returns the according data type.protected String[]getDistinctValues(int column, boolean ignoreSuppression, DataHandleInternal.InterruptHandler handler) Returns the distinct values.intgetGeneralization(String attribute) Returns the generalization level for the attribute.intReturns the number of columns in the dataset.intReturns the number of rows in the dataset.protected DataHandleReturns the underlying source data handle.Returns an object providing access to basic descriptive statistics about the data represented by this handle.Returns the research subset.getValue(int row, int col) Returns the value in the specified cell.protected intgetValueIdentifier(int column, String value) Returns the internal value identifiergetView()Returns a new data handle that represents a context specific view on the dataset.protected intinternalCompare(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 intinternalGetEncodedValue(int row, int col, boolean ignoreSuppression) Internal representation of get encoded value.protected StringinternalGetValue(int row, int col, boolean ignoreSuppression) Internal representation of get value.protected booleaninternalIsOutlier(int row, int[] columns) Returns whether this is an outlier regarding the given columns.protected voidRebuild array representation of subset.protected booleaninternalReplace(int column, String original, String replacement) Internal replacement method.protected voidinternalSwap(int row1, int row2) Swaps the bits in the set representation.protected intinternalTranslate(int row) Translates the row number.protected booleanReturns whether the data represented by this handle is anonymousbooleanHas this handle been optimized with local recoding?booleanisOutlier(int row) Determines whether a given row is an outlier in the currently associated data transformation.iterator()Returns an iterator over the data.booleanReplaces the original value with the replacement in the given column.Returns an iterator over the data in a random order.Von Klasse geerbte Methoden org.deidentifier.arx.DataHandle
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, swap
-
Konstruktordetails
-
DataHandleSubset
Creates a new handle that represents the research subset.- Parameter:
source-subset-
-
-
Methodendetails
-
getAttributeName
Beschreibung aus Klasse kopiert:DataHandleReturns the name of the specified column.- Angegeben von:
getAttributeNamein KlasseDataHandle- Parameter:
col- The column index- Gibt zurück:
- the attribute name
-
getDataType
Beschreibung aus Klasse kopiert:DataHandleReturns the according data type.- Setzt außer Kraft:
getDataTypein KlasseDataHandle- Parameter:
attribute- the attribute- Gibt zurück:
- the data type
-
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
-
getSubset
Returns the research subset.- Gibt zurück:
-
getValue
Beschreibung aus Klasse kopiert:DataHandleReturns the value in the specified cell.- Angegeben von:
getValuein KlasseDataHandle- Parameter:
row- The cell's row indexcol- The cell's column index- Gibt zurück:
- the value
-
getView
Beschreibung aus Klasse kopiert:DataHandleReturns a new data handle that represents a context specific view on the dataset.- Setzt außer Kraft:
getViewin KlasseDataHandle- Gibt zurück:
- the view
-
isOptimized
public boolean isOptimized()Beschreibung aus Klasse kopiert:DataHandleHas this handle been optimized with local recoding?- Setzt außer Kraft:
isOptimizedin KlasseDataHandle- Gibt zurück:
-
isOutlier
public boolean isOutlier(int row) Beschreibung aus Klasse kopiert:DataHandleDetermines whether a given row is an outlier in the currently associated data transformation.- Setzt außer Kraft:
isOutlierin KlasseDataHandle- Parameter:
row- the row- Gibt zurück:
- true, if is outlier
-
iterator
Beschreibung aus Klasse kopiert:DataHandleReturns an iterator over the data.- Angegeben von:
iteratorin KlasseDataHandle- Gibt zurück:
- the iterator
-
replace
Beschreibung aus Klasse kopiert:DataHandleReplaces the original value with the replacement in the given column. Only supported by handles for input data.- Setzt außer Kraft:
replacein KlasseDataHandle- Parameter:
column- the columnoriginal- the originalreplacement- the replacement- Gibt zurück:
- Whether the original value was found
-
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()Beschreibung aus Klasse kopiert:DataHandleReleases all resources.- Angegeben von:
doReleasein KlasseDataHandle
-
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
-
getSource
Returns the underlying source data handle.- Gibt zurück:
-
getValueIdentifier
Beschreibung aus Klasse kopiert:DataHandleReturns the internal value identifier- Angegeben von:
getValueIdentifierin KlasseDataHandle- Parameter:
column-value-- Gibt zurück:
-
internalCompare
protected int internalCompare(int row1, int row2, int[] columns, boolean ascending) Beschreibung aus Klasse kopiert:DataHandleA negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second. It uses the specified data types for comparison. If no datatype is specified for a specific column it uses string comparison.- Setzt außer Kraft:
internalComparein KlasseDataHandle- Parameter:
row1- the row1row2- the row2columns- the columnsascending- the ascending- Gibt zurück:
- the int
-
internalGetEncodedValue
protected int internalGetEncodedValue(int row, int col, boolean ignoreSuppression) Beschreibung aus Klasse kopiert:DataHandleInternal representation of get encoded value. Returns -1 for suppressed values.- Angegeben von:
internalGetEncodedValuein KlasseDataHandle- Parameter:
row- the rowcol- the col- Gibt zurück:
- the value
-
internalGetValue
Beschreibung aus Klasse kopiert:DataHandleInternal representation of get value.- Angegeben von:
internalGetValuein KlasseDataHandle- Parameter:
row- the rowcol- the col- Gibt zurück:
- the string
-
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:
-
internalRebuild
protected void internalRebuild()Rebuild array representation of subset. -
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 bits in the set representation.- Parameter:
row1-row2-
-
internalTranslate
protected int internalTranslate(int row) Translates the row number.- Parameter:
row-- Gibt zurück:
-
isAnonymous
protected boolean isAnonymous()Beschreibung aus Klasse kopiert:DataHandleReturns whether the data represented by this handle is anonymous- Setzt außer Kraft:
isAnonymousin KlasseDataHandle- Gibt zurück:
-