Klasse History
java.lang.Object
org.deidentifier.arx.framework.check.history.History
The Class History.
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic enumTwo types of storage strategies for the history -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungHistory(int rowCount, int size, double snapshotSizeDataset, double snapshotSizeSnapshot, ARXConfiguration.ARXConfigurationInternal config, IntArrayDictionary dictionarySensValue, IntArrayDictionary dictionarySensFreq, SolutionSpace<?> solutionSpace) Creates a new history. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungint[]get(int[] transformation) Retrieves a snapshot.Method needed for benchmarking.Method needed for benchmarking.Returns the current storage strategy.int[]Returns the node backing the last returned snapshot.voidreset()Clears the history.voidsetSize(int size) Sets the size of this history.voidsetStorageStrategy(History.StorageStrategy strategy) Sets the storage strategybooleanstore(Transformation<?> transformation, HashGroupify groupify, int[] snapshot) Stores a snapshot in the buffer.
-
Konstruktordetails
-
History
public History(int rowCount, int size, double snapshotSizeDataset, double snapshotSizeSnapshot, ARXConfiguration.ARXConfigurationInternal config, IntArrayDictionary dictionarySensValue, IntArrayDictionary dictionarySensFreq, SolutionSpace<?> solutionSpace) Creates a new history.- Parameter:
rowCount- the row countsize- the max sizesnapshotSizeDataset- the snapshotSizeDatasetsnapshotSizeSnapshot-config-dictionarySensValue-dictionarySensFreq-solutionSpace-
-
-
Methodendetails
-
get
public int[] get(int[] transformation) Retrieves a snapshot.- Parameter:
transformation-- Gibt zurück:
- snapshot
-
getDictionarySensFreq
Method needed for benchmarking.- Gibt zurück:
-
getDictionarySensValue
Method needed for benchmarking.- Gibt zurück:
-
getStorageTrigger
Returns the current storage strategy.- Gibt zurück:
-
getTransformation
public int[] getTransformation()Returns the node backing the last returned snapshot.- Gibt zurück:
-
reset
public void reset()Clears the history. -
setSize
public void setSize(int size) Sets the size of this history.- Parameter:
size-
-
setStorageStrategy
Sets the storage strategy- Parameter:
strategy-
-
store
Stores a snapshot in the buffer.- Parameter:
transformation- The transformationgroupify- The groupify operatorsnapshot- The snapshot that was previously used, if any- Gibt zurück:
-