Package org.deidentifier.arx
Klasse DataDefinition
java.lang.Object
org.deidentifier.arx.DataDefinition
- Alle implementierten Schnittstellen:
Cloneable
Encapsulates a definition of the types of attributes contained in a dataset.
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungclone()getAttributeType(String attribute) Returns the type defined for the attribute.DataType<?> getDataType(String columnName) Returns the data type for the given column.String[][]getHierarchy(String attribute) Returns the according hierarchy as String array.getHierarchyBuilder(String attribute) Returns the associated builder, if any.getHierarchyObject(String attribute) Returns the according hierarchy object.Returns the direct identifiers.Returns the insensitive attributes.intgetMaximumGeneralization(String attribute) Returns the maximum generalization for the attribute.getMicroAggregationFunction(String attribute) Returns the according microaggregation function.intgetMinimumGeneralization(String attribute) Returns the minimum generalization for the attribute.Returns the quasi-identifiers for which clustering and microaggregation has been specified.Returns the quasi-identifiers for which generalization is specified.Returns the quasi-identifiers for which microaggregation is specified.Returns the quasi identifying attributes.Returns the set of defined response variablesReturns the sensitive attributes.booleanisHierarchyAvailable(String attribute) Returns whether a hierarchy is available.booleanisHierarchyBuilderAvailable(String attribute) Returns whether a hierarchy builder is available.booleanisLocked()Returns whether this definition can be altered.booleanisMaximumGeneralizationAvailable(String attribute) Returns whether a maximum generalization level is available.booleanisMinimumGeneralizationAvailable(String attribute) Returns whether a minimum generalization level is available.booleanisResponseVariable(String attribute) Returns whether the given attribute is a response variableprotected voidmaterializeHierarchies(DataHandle handle) Materializes all functional hierarchies.protected voidparse(ImportAdapter adapter) Parses the configuration of the import adapter.voidread(DataDefinition other) Reads all settings from the given definitionrender()Renders this objectvoidresetAttributeType(String attribute) Resets the according settingvoidresetHierarchy(String attribute) Resets the according settingvoidresetHierarchyBuilder(String attribute) Resets the according settingvoidresetMaximumGeneralization(String attribute) Resets the according settingvoidresetMicroAggregationFunction(String attribute) Resets the according settingvoidresetMinimumGeneralization(String attribute) Resets the according settingvoidsetAttributeType(String attribute, HierarchyBuilder<?> builder) Defines the given attribute as a quasi-identifier and stores the functional representation of the generalization hierarchy.voidsetAttributeType(String attribute, AttributeType type) Define the type of a given attribute.voidsetDataType(String attribute, DataType<?> type) Define the datatype of a given attribute.voidsetHierarchy(String attribute, HierarchyBuilder<?> builder) Associates the given hierarchy buildervoidsetHierarchy(String attribute, AttributeType.Hierarchy hierarchy) Associates the given hierarchyprotected voidsetLocked(boolean locked) Lock/unlock the definition.voidsetMaximumGeneralization(String attribute, int maximumLevel) Define the maximal generalization of a given attribute.voidsetMicroAggregationFunction(String attribute, AttributeType.MicroAggregationFunction function) Associates the given microaggregation function.voidsetMicroAggregationFunction(String attribute, AttributeType.MicroAggregationFunction function, boolean performClustering) Associates the given microaggregation functionvoidsetMinimumGeneralization(String attribute, int minimumLevel) Define the minimal generalization of a given attribute.voidsetResponseVariable(String attribute, boolean value) Sets whether the given attribute is a response variable
-
Konstruktordetails
-
DataDefinition
public DataDefinition()
-
-
Methodendetails
-
clone
-
getAttributeType
Returns the type defined for the attribute.- Parameter:
attribute-- Gibt zurück:
-
getDataType
Returns the data type for the given column.- Parameter:
columnName-- Gibt zurück:
-
getHierarchy
Returns the according hierarchy as String array.- Parameter:
attribute-- Gibt zurück:
-
getHierarchyBuilder
Returns the associated builder, if any.- Parameter:
attribute-- Gibt zurück:
-
getHierarchyObject
Returns the according hierarchy object.- Parameter:
attribute-- Gibt zurück:
-
getIdentifyingAttributes
Returns the direct identifiers.- Gibt zurück:
-
getInsensitiveAttributes
Returns the insensitive attributes.- Gibt zurück:
-
getMaximumGeneralization
Returns the maximum generalization for the attribute.- Parameter:
attribute-- Gibt zurück:
-
getMicroAggregationFunction
Returns the according microaggregation function.- Parameter:
attribute-- Gibt zurück:
-
getMinimumGeneralization
Returns the minimum generalization for the attribute.- Parameter:
attribute-- Gibt zurück:
-
getQuasiIdentifiersWithClusteringAndMicroaggregation
Returns the quasi-identifiers for which clustering and microaggregation has been specified. The result of this method is a subset of the attributes returned bygetQuasiIdentifiersWithMicroaggregation().- Gibt zurück:
-
getQuasiIdentifiersWithGeneralization
Returns the quasi-identifiers for which generalization is specified.- Gibt zurück:
-
getQuasiIdentifiersWithMicroaggregation
Returns the quasi-identifiers for which microaggregation is specified.- Gibt zurück:
-
getQuasiIdentifyingAttributes
Returns the quasi identifying attributes.- Gibt zurück:
-
getResponseVariables
Returns the set of defined response variables- Gibt zurück:
-
getSensitiveAttributes
Returns the sensitive attributes.- Gibt zurück:
-
isHierarchyAvailable
Returns whether a hierarchy is available.- Parameter:
attribute-- Gibt zurück:
-
isHierarchyBuilderAvailable
Returns whether a hierarchy builder is available.- Parameter:
attribute-- Gibt zurück:
-
isLocked
public boolean isLocked()Returns whether this definition can be altered.- Gibt zurück:
-
isMaximumGeneralizationAvailable
Returns whether a maximum generalization level is available.- Parameter:
attribute-- Gibt zurück:
-
isMinimumGeneralizationAvailable
Returns whether a minimum generalization level is available.- Parameter:
attribute-- Gibt zurück:
-
isResponseVariable
Returns whether the given attribute is a response variable- Parameter:
attribute-- Gibt zurück:
-
read
Reads all settings from the given definition- Parameter:
definition-
-
render
Renders this object- Gibt zurück:
-
resetAttributeType
Resets the according setting- Parameter:
attribute-
-
resetHierarchy
Resets the according setting- Parameter:
attribute-
-
resetHierarchyBuilder
Resets the according setting- Parameter:
attribute-
-
resetMaximumGeneralization
Resets the according setting- Parameter:
attribute-
-
resetMicroAggregationFunction
Resets the according setting- Parameter:
attribute-
-
resetMinimumGeneralization
Resets the according setting- Parameter:
attribute-
-
setAttributeType
Define the type of a given attribute.- Parameter:
attribute-type-
-
setAttributeType
Defines the given attribute as a quasi-identifier and stores the functional representation of the generalization hierarchy.- Parameter:
attribute-builder-
-
setDataType
Define the datatype of a given attribute.- Parameter:
attribute-type-
-
setHierarchy
Associates the given hierarchy- Parameter:
attribute-hierarchy-
-
setHierarchy
Associates the given hierarchy builder- Parameter:
attribute-builder-
-
setMaximumGeneralization
Define the maximal generalization of a given attribute.- Parameter:
attribute-maximumLevel-
-
setMicroAggregationFunction
public void setMicroAggregationFunction(String attribute, AttributeType.MicroAggregationFunction function) Associates the given microaggregation function. When configuring microaggregation with this method generalization hierarchies will not be used for clustering attribute values before aggregation.- Parameter:
attribute-function-
-
setMicroAggregationFunction
public void setMicroAggregationFunction(String attribute, AttributeType.MicroAggregationFunction function, boolean performClustering) Associates the given microaggregation function- Parameter:
attribute-function-performClustering- When set to true, available generalization hierarchies will be used for clustering attribute values before aggregation.
-
setMinimumGeneralization
Define the minimal generalization of a given attribute.- Parameter:
attribute-minimumLevel-
-
setResponseVariable
Sets whether the given attribute is a response variable- Parameter:
attribute-value-
-
materializeHierarchies
Materializes all functional hierarchies.- Parameter:
handle-
-
parse
Parses the configuration of the import adapter.- Parameter:
adapter-
-
setLocked
protected void setLocked(boolean locked) Lock/unlock the definition.- Parameter:
locked-
-