public class ARXAnonymizer
extends java.lang.Object
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.
|
protected org.deidentifier.arx.ARXAnonymizer.Result |
anonymizeInternal(DataHandle handle,
DataDefinition definition,
ARXConfiguration config)
Reset a previous lattice and run the algorithm .
|
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.
|
int |
getMaxTransformations()
Returns the maximal size of the search space.
|
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.
|
void |
setMaxTransformations(int maxTransformations)
Sets the maximal size of the search space.
|
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.IOException
public int getHistorySize()
public double getMaximumSnapshotSizeDataset()
public double getMaximumSnapshotSizeSnapshot()
public int getMaxQuasiIdentifiers()
public int getMaxTransformations()
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
- public void setMaxTransformations(int maxTransformations)
maxTransformations
- protected org.deidentifier.arx.ARXAnonymizer.Result anonymizeInternal(DataHandle handle, DataDefinition definition, ARXConfiguration config) throws java.io.IOException
handle
- definition
- config
- java.io.IOException