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.
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungDataHandleSubset(DataHandle source, DataSubset subset) Creates a new handle that represents the research subset. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibunggetAttributeName(int col) Returns the name of the specified column.DataType<?> getDataType(String attribute) Returns the according data type.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.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.getView()Returns a new data handle that represents a context specific view on the dataset.booleanHas 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
getColumnIndexOf, getDate, getDefinition, getDistinctValues, getDouble, getFloat, getInt, getLong, getMatchingDataTypes, getMatchingDataTypes, getMatchingDataTypes, getMatchingDataTypes, getMatchingDataTypes, getMatchingDataTypes, getMatchingDataTypes, getMatchingDataTypes, getNonConformingValues, getNumConformingValues, getRiskEstimator, getRiskEstimator, getRiskEstimator, getRiskEstimator, getRiskEstimator, getRiskEstimator, getRiskEstimator, getTransformation, isReleased, isSuppressed, release, render, save, save, save, save, save, save, save, save, save, 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
-