Package org.deidentifier.arx
Klasse ARXAnonymizer
java.lang.Object
org.deidentifier.arx.ARXAnonymizer
This class offers several methods to define parameters and execute the ARX
algorithm.
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungstatic final booleanIs this a production release?static final StringThe global version string of this release -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungCreates a new anonymizer with the default configuration.ARXAnonymizer(int historySize, double snapshotSizeDataset, double snapshotSizeSnapshot) Creates a new anonymizer with the given configuration. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibunganonymize(Data data, ARXConfiguration config) Performs data anonymization.intReturns the maximum number of snapshots allowed to store in the history.doubleGets the snapshot size.doubleGets the snapshot size.intReturns the maximal number of quasi-identifiers.voidsetHistorySize(int historySize) Sets the maximum number of snapshots allowed to store in the history.voidsetListener(ARXListener listener) Sets a listener.voidsetMaximumSnapshotSizeDataset(double snapshotSize) Sets the maximum size of a snapshot relative to the dataset size.voidsetMaximumSnapshotSizeSnapshot(double snapshotSizeSnapshot) Sets the maximum size of a snapshot relative to the previous snapshot.voidsetMaxQuasiIdentifiers(int maxQuasiIdentifiers) Sets the maximal number of quasi-identifiers.
-
Felddetails
-
PRODUCTION_RELEASE
public static final boolean PRODUCTION_RELEASEIs this a production release?- Siehe auch:
-
VERSION
The global version string of this release- Siehe auch:
-
-
Konstruktordetails
-
ARXAnonymizer
public ARXAnonymizer()Creates a new anonymizer with the default configuration. -
ARXAnonymizer
public ARXAnonymizer(int historySize, double snapshotSizeDataset, double snapshotSizeSnapshot) Creates a new anonymizer with the given configuration.- Parameter:
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]
-
-
Methodendetails
-
anonymize
Performs data anonymization.- Parameter:
data- The dataconfig- The privacy config- Gibt zurück:
- ARXResult
- Löst aus:
IOException
-
getHistorySize
public int getHistorySize()Returns the maximum number of snapshots allowed to store in the history.- Gibt zurück:
- The size
-
getMaximumSnapshotSizeDataset
public double getMaximumSnapshotSizeDataset()Gets the snapshot size.- Gibt zurück:
- The maximum size of a snapshot relative to the dataset size
-
getMaximumSnapshotSizeSnapshot
public double getMaximumSnapshotSizeSnapshot()Gets the snapshot size.- Gibt zurück:
- The maximum size of a snapshot relative to the previous snapshot size
-
getMaxQuasiIdentifiers
public int getMaxQuasiIdentifiers()Returns the maximal number of quasi-identifiers.- Gibt zurück:
-
setHistorySize
public void setHistorySize(int historySize) Sets the maximum number of snapshots allowed to store in the history.- Parameter:
historySize- The size
-
setListener
Sets a listener.- Parameter:
listener- the new listener, if any
-
setMaximumSnapshotSizeDataset
public void setMaximumSnapshotSizeDataset(double snapshotSize) Sets the maximum size of a snapshot relative to the dataset size.- Parameter:
snapshotSize-
-
setMaximumSnapshotSizeSnapshot
public void setMaximumSnapshotSizeSnapshot(double snapshotSizeSnapshot) Sets the maximum size of a snapshot relative to the previous snapshot.- Parameter:
snapshotSizeSnapshot- The size
-
setMaxQuasiIdentifiers
public void setMaxQuasiIdentifiers(int maxQuasiIdentifiers) Sets the maximal number of quasi-identifiers. Set to Integer.MAX_VALUE to disable the restriction. By default, the restriction is disabled.- Parameter:
maxQuasiIdentifiers-
-