public class HashGroupify
extends java.lang.Object
Constructor and Description |
---|
HashGroupify(int capacity,
ARXConfiguration.ARXConfigurationInternal config,
int dataAnalyzedNumberOfColumns,
DataMatrix input,
DataMatrix output,
DataMatrix analyzed,
int[] suppressedCodes)
Constructs a new hash groupify operator.
|
Modifier and Type | Method and Description |
---|---|
void |
addFromBuffer(int generalized,
int other,
int representative,
int count,
int pcount)
Adds a tuple from the buffer
|
void |
addFromGroupify(int generalized,
Distribution[] distributions,
int representative,
int count,
int pcount)
Adds an entry from another groupify operator
|
void |
addFromSnapshot(int generalized,
int[][] elements,
int[][] frequencies,
int representative,
int count,
int pcount)
Adds a class from a snapshot
|
HashGroupifyEntry |
getEntry(int[] tuple)
Returns the entry for the given tuple
|
HashGroupifyEntry |
getFirstEquivalenceClass()
Returns the first entry
|
DataMatrix |
getInputData()
Returns the input data matrix
|
int |
getNumberOfEquivalenceClasses()
Returns the current size in terms of classes
|
DataMatrix |
getOutputData()
Returns the output data
|
boolean |
isCompletelyGeneralized(HashGroupifyEntry entry)
Returns whether the given entry is completely generalized
|
boolean |
isMinimalClassSizeFulfilled()
Returns whether the current state of the dataset fulfills the minimal class-size property
|
boolean |
isPrivacyModelFulfilled()
Returns whether the current state of the dataset fulfills the privacy model
|
Data |
performMicroaggregation(DataAggregationInformation microaggregationData,
Dictionary dictionary)
Returns a data object with microaggregation performed
|
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 |
void |
stateAnalyze(Transformation<?> transformation,
boolean force)
Analyzes the current state
|
void |
stateClear()
Clears all entries
|
void |
stateResetSuppression()
This method will reset all flags that indicate that equivalence classes are suppressed.
|
public HashGroupify(int capacity, ARXConfiguration.ARXConfigurationInternal config, int dataAnalyzedNumberOfColumns, DataMatrix input, DataMatrix output, DataMatrix analyzed, int[] suppressedCodes)
capacity
- The capacityaggregation
- The aggregation informationconfig
- The configinput
- output
- analyzed
- suppressedCodes
- public void addFromBuffer(int generalized, int other, int representative, int count, int pcount)
generalized
- other
- representative
- count
- pcount
- public void addFromGroupify(int generalized, Distribution[] distributions, int representative, int count, int pcount)
generalized
- distributions
- representative
- count
- pcount
- public void addFromSnapshot(int generalized, int[][] elements, int[][] frequencies, int representative, int count, int pcount)
generalized
- elements
- frequencies
- representative
- count
- pcount
- public HashGroupifyEntry getEntry(int[] tuple)
tuple
- public HashGroupifyEntry getFirstEquivalenceClass()
public DataMatrix getInputData()
public int getNumberOfEquivalenceClasses()
public DataMatrix getOutputData()
public boolean isCompletelyGeneralized(HashGroupifyEntry entry)
entry
- public boolean isMinimalClassSizeFulfilled()
public boolean isPrivacyModelFulfilled()
public Data performMicroaggregation(DataAggregationInformation microaggregationData, Dictionary dictionary)
microaggregationData
- dictionary
- public void performSuppression()
dictionary
- public void stateAnalyze(Transformation<?> transformation, boolean force)
transformation
- force
- public void stateClear()
public void stateResetSuppression()