public class ARXAnonymizer
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static boolean |
PRODUCTION_RELEASE
Is this a production release?
|
static java.lang.String |
VERSION
The global version string of this release
|
| Constructor and Description |
|---|
ARXAnonymizer()
Creates a new anonymizer with the default configuration.
|
ARXAnonymizer(int historySize,
double snapshotSizeDataset,
double snapshotSizeSnapshot)
Creates a new anonymizer with the given configuration.
|
| Modifier and Type | Method and Description |
|---|---|
ARXResult |
anonymize(Data data,
ARXConfiguration config)
Performs data anonymization.
|
int |
getHistorySize()
Returns the maximum number of snapshots allowed to store in the history.
|
double |
getMaximumSnapshotSizeDataset()
Gets the snapshot size.
|
double |
getMaximumSnapshotSizeSnapshot()
Gets the snapshot size.
|
int |
getMaxQuasiIdentifiers()
Returns the maximal number of quasi-identifiers.
|
void |
setHistorySize(int historySize)
Sets the maximum number of snapshots allowed to store in the history.
|
void |
setListener(ARXListener listener)
Sets a listener.
|
void |
setMaximumSnapshotSizeDataset(double snapshotSize)
Sets the maximum size of a snapshot relative to the dataset size.
|
void |
setMaximumSnapshotSizeSnapshot(double snapshotSizeSnapshot)
Sets the maximum size of a snapshot relative to the previous snapshot.
|
void |
setMaxQuasiIdentifiers(int maxQuasiIdentifiers)
Sets the maximal number of quasi-identifiers.
|
public static final boolean PRODUCTION_RELEASE
public static final java.lang.String VERSION
public ARXAnonymizer()
public ARXAnonymizer(int historySize,
double snapshotSizeDataset,
double snapshotSizeSnapshot)
historySize - The maximum number of snapshots stored in the buffer [default=200]snapshotSizeDataset - The maximum relative size of a snapshot compared to the dataset [default=0.2]snapshotSizeSnapshot - The maximum relative size of a snapshot compared to its predecessor [default=0.8]public ARXResult anonymize(Data data, ARXConfiguration config) throws java.io.IOException
data - The dataconfig - The privacy configjava.io.IOExceptionpublic int getHistorySize()
public double getMaximumSnapshotSizeDataset()
public double getMaximumSnapshotSizeSnapshot()
public int getMaxQuasiIdentifiers()
public void setHistorySize(int historySize)
historySize - The sizepublic void setListener(ARXListener listener)
listener - the new listener, if anypublic void setMaximumSnapshotSizeDataset(double snapshotSize)
snapshotSize - public void setMaximumSnapshotSizeSnapshot(double snapshotSizeSnapshot)
snapshotSizeSnapshot - The sizepublic void setMaxQuasiIdentifiers(int maxQuasiIdentifiers)
maxQuasiIdentifiers -