Package no.nav.arxaas.model.anonymity
Class AnonymizationMetrics
- java.lang.Object
-
- no.nav.arxaas.model.anonymity.AnonymizationMetrics
-
public class AnonymizationMetrics extends Object
Model class for displaying metrics from the arxaas process
-
-
Field Summary
Fields Modifier and Type Field Description private List<AttributeGeneralizationRow>attributeGeneralizationprivate SetprivacyModelsprivate LongprocessTimeMillisecounds
-
Constructor Summary
Constructors Modifier Constructor Description privateAnonymizationMetrics(List<AttributeGeneralizationRow> attributeGeneralization, Long processTimeMillisecounds, Set privacyModels)Constructor for populating the class from Jackson SerializingAnonymizationMetrics(org.deidentifier.arx.ARXResult result)Constructor for populating the class with data from aARXResultobject
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static List<AttributeGeneralizationRow>gatherGeneralizationAttributes(org.deidentifier.arx.ARXResult result)Gathers the name, types and generalization level for each attribute and returns them in the form of aAttributeGeneralizationRowprivate static SetgatherPrivacyModels(org.deidentifier.arx.ARXResult result)Gathers set of privacymodel data from result objectprivate static longgatherProcessTime(org.deidentifier.arx.ARXResult result)Gathers the elapsed time the arxaas process took in millisecondsList<AttributeGeneralizationRow>getAttributeGeneralization()SetgetPrivacyModels()LonggetProcessTimeMillisecounds()
-
-
-
Field Detail
-
attributeGeneralization
private List<AttributeGeneralizationRow> attributeGeneralization
-
processTimeMillisecounds
private Long processTimeMillisecounds
-
privacyModels
private Set privacyModels
-
-
Constructor Detail
-
AnonymizationMetrics
public AnonymizationMetrics(org.deidentifier.arx.ARXResult result)
Constructor for populating the class with data from aARXResultobject- Parameters:
result- IncomingARXResultcontaining the data from a completed anonymizaton
-
AnonymizationMetrics
private AnonymizationMetrics(List<AttributeGeneralizationRow> attributeGeneralization, Long processTimeMillisecounds, Set privacyModels)
Constructor for populating the class from Jackson Serializing- Parameters:
attributeGeneralization- ListAttributeGeneralizationRowcontaining Generalization metrics for dataset attributesprocessTimeMillisecounds- Long containg the elapsed time during arxaasprivacyModels- Set containing PrivacyModels and their configurations used during arxaas
-
-
Method Detail
-
gatherGeneralizationAttributes
private static List<AttributeGeneralizationRow> gatherGeneralizationAttributes(org.deidentifier.arx.ARXResult result)
Gathers the name, types and generalization level for each attribute and returns them in the form of aAttributeGeneralizationRow- Parameters:
result- source where the data is gathered from- Returns:
- List of
AttributeGeneralizationRow's
-
gatherProcessTime
private static long gatherProcessTime(org.deidentifier.arx.ARXResult result)
Gathers the elapsed time the arxaas process took in milliseconds- Parameters:
result- SourceARXResultwhich the data is gathered from- Returns:
- Time the arxaas process have taken in milliseconds
-
gatherPrivacyModels
private static Set gatherPrivacyModels(org.deidentifier.arx.ARXResult result)
Gathers set of privacymodel data from result object- Parameters:
result- SourceARXResultwhich the data is gathered from- Returns:
- Set with data from the privacy model settings currently being applied to the arxaas process
-
getAttributeGeneralization
public List<AttributeGeneralizationRow> getAttributeGeneralization()
-
getProcessTimeMillisecounds
public Long getProcessTimeMillisecounds()
-
getPrivacyModels
public Set getPrivacyModels()
-
-