Klasse ARXAnonymizer

java.lang.Object
org.deidentifier.arx.ARXAnonymizer

public class ARXAnonymizer extends Object
This class offers several methods to define parameters and execute the ARX algorithm.
  • Felddetails

    • PRODUCTION_RELEASE

      public static final boolean PRODUCTION_RELEASE
      Is this a production release?
      Siehe auch:
    • VERSION

      public static final String 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

      public ARXResult anonymize(Data data, ARXConfiguration config) throws IOException
      Performs data anonymization.
      Parameter:
      data - The data
      config - 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

      public void setListener(ARXListener listener)
      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 -