public class HashGroupify
extends java.lang.Object
Constructor and Description |
---|
HashGroupify(int capacity,
ARXConfiguration.ARXConfigurationInternal config)
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
|
int |
getNumberOfEquivalenceClasses()
Returns the current size in terms of classes
|
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(int[][] data,
int start,
int num,
DistributionAggregateFunction[] functions,
int[] map,
java.lang.String[] header,
Dictionary dictionary)
Microaggregates all according attributes
|
void |
performSuppression(int[][] data)
Marks all outliers in the given (generalized subset of the) input datasets
|
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)
capacity
- The capacityconfig
- The configpublic 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 int getNumberOfEquivalenceClasses()
public boolean isMinimalClassSizeFulfilled()
public boolean isPrivacyModelFulfilled()
public Data performMicroaggregation(int[][] data, int start, int num, DistributionAggregateFunction[] functions, int[] map, java.lang.String[] header, Dictionary dictionary)
data
- start
- num
- functions
- map
- header
- dictionary
- public void performSuppression(int[][] data)
data
- public void stateAnalyze(Transformation transformation, boolean force)
transformation
- force
- public void stateClear()
public void stateResetSuppression()