Klasse HashGroupify
java.lang.Object
org.deidentifier.arx.framework.check.groupify.HashGroupify
A hash groupify operator. It implements a hash table with chaining and keeps
track of additional properties per equivalence class
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungHashGroupify(int capacity, ARXConfiguration.ARXConfigurationInternal config, int dataAnalyzedNumberOfColumns, DataMatrix input, DataMatrix output, DataMatrix analyzed, int[] suppressedCodes) Constructs a new hash groupify operator. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidaddFromBuffer(int generalized, int other, int representative, int count, int pcount) Adds a tuple from the buffervoidaddFromGroupify(int generalized, Distribution[] distributions, int representative, int count, int pcount) Adds an entry from another groupify operatorvoidaddFromSnapshot(int generalized, int[][] elements, int[][] frequencies, int representative, int count, int pcount) Adds a class from a snapshotgetEntry(int[] tuple) Returns the entry for the given tupleReturns the first entryReturns the input data matrixintReturns the current size in terms of classesReturns the output databooleanReturns whether the given entry is completely generalizedbooleanReturns whether the current state of the dataset fulfills the minimal class-size propertybooleanReturns whether the current state of the dataset fulfills the privacy modelperformMicroaggregation(DataAggregationInformation microaggregationData, Dictionary dictionary) Returns a data object with microaggregation performedvoidSuppresses all records in the output dataset which
(a) do not satisfy privacy requirements, or
(b) are not included in the research subsetvoidstateAnalyze(Transformation<?> transformation, boolean force) Analyzes the current statevoidClears all entriesvoidThis method will reset all flags that indicate that equivalence classes are suppressed.
-
Konstruktordetails
-
HashGroupify
public HashGroupify(int capacity, ARXConfiguration.ARXConfigurationInternal config, int dataAnalyzedNumberOfColumns, DataMatrix input, DataMatrix output, DataMatrix analyzed, int[] suppressedCodes) Constructs a new hash groupify operator.- Parameter:
capacity- The capacityconfig- The configinput-output-analyzed-suppressedCodes-aggregation- The aggregation information
-
-
Methodendetails
-
addFromBuffer
public void addFromBuffer(int generalized, int other, int representative, int count, int pcount) Adds a tuple from the buffer- Parameter:
generalized-other-representative-count-pcount-
-
addFromGroupify
public void addFromGroupify(int generalized, Distribution[] distributions, int representative, int count, int pcount) Adds an entry from another groupify operator- Parameter:
generalized-distributions-representative-count-pcount-
-
addFromSnapshot
public void addFromSnapshot(int generalized, int[][] elements, int[][] frequencies, int representative, int count, int pcount) Adds a class from a snapshot- Parameter:
generalized-elements-frequencies-representative-count-pcount-
-
getEntry
Returns the entry for the given tuple- Parameter:
tuple-- Gibt zurück:
-
getFirstEquivalenceClass
Returns the first entry- Gibt zurück:
-
getInputData
Returns the input data matrix- Gibt zurück:
-
getNumberOfEquivalenceClasses
public int getNumberOfEquivalenceClasses()Returns the current size in terms of classes- Gibt zurück:
-
getOutputData
Returns the output data- Gibt zurück:
-
isCompletelyGeneralized
Returns whether the given entry is completely generalized- Parameter:
entry-- Gibt zurück:
-
isMinimalClassSizeFulfilled
public boolean isMinimalClassSizeFulfilled()Returns whether the current state of the dataset fulfills the minimal class-size property- Gibt zurück:
-
isPrivacyModelFulfilled
public boolean isPrivacyModelFulfilled()Returns whether the current state of the dataset fulfills the privacy model- Gibt zurück:
-
performMicroaggregation
public Data performMicroaggregation(DataAggregationInformation microaggregationData, Dictionary dictionary) Returns a data object with microaggregation performed- Parameter:
microaggregationData-dictionary-- Gibt zurück:
-
performSuppression
public void performSuppression()Suppresses all records in the output dataset which
(a) do not satisfy privacy requirements, or
(b) are not included in the research subset- Parameter:
dictionary-
-
stateAnalyze
Analyzes the current state- Parameter:
transformation-force-
-
stateClear
public void stateClear()Clears all entries -
stateResetSuppression
public void stateResetSuppression()This method will reset all flags that indicate that equivalence classes are suppressed.
-