public class HashGroupify
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
HashGroupify.EquivalenceClassStatistics
Statistics about the equivalence classes, excluding outliers.
|
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
|
HashGroupify.EquivalenceClassStatistics |
getEquivalenceClassStatistics()
Returns statistics
|
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)
Microaggregates all according attributes
|
void |
performSuppression(int[][] data)
Marks all outliers in the given (generalized subset of the) input datasets
|
void |
stateAnalyze(Node 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 HashGroupify.EquivalenceClassStatistics getEquivalenceClassStatistics()
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)
data
- start
- num
- functions
- map
- header
- public void performSuppression(int[][] data)
data
- public void stateAnalyze(Node transformation, boolean force)
transformation
- force
- public void stateClear()
public void stateResetSuppression()