Klasse HierarchyBuilderRedactionBased<T>
- Typparameter:
T-
- Alle implementierten Schnittstellen:
Serializable
- Siehe auch:
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenVon Klasse geerbte verschachtelte Klassen/Schnittstellen org.deidentifier.arx.aggregates.HierarchyBuilder
HierarchyBuilder.Type -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbuild()Creates a new hierarchy, based on the predefined specification.Creates a new hierarchy, based on the predefined specification.static <T> HierarchyBuilderRedactionBased<T> create(char redactionCharacter) Values are aligned left-to-right and redacted right-to-left.static <T> HierarchyBuilderRedactionBased<T> Loads a builder specification from the given file.static <T> HierarchyBuilderRedactionBased<T> Loads a builder specification from the given file.static <T> HierarchyBuilderRedactionBased<T> create(HierarchyBuilderRedactionBased.Order alignmentOrder, HierarchyBuilderRedactionBased.Order redactionOrder, char redactionCharacter) Values are aligned according to the alignmentOrder and redacted according to the redactionOrder.static <T> HierarchyBuilderRedactionBased<T> create(HierarchyBuilderRedactionBased.Order alignmentOrder, HierarchyBuilderRedactionBased.Order redactionOrder, char paddingCharacter, char redactionCharacter) Values are aligned according to the alignmentOrder and redacted according to the redactionOrder.Returns the alignment order.Returns properties about the attribute's domain.Returns properties about the attribute's domain.Returns properties about the attribute's domain.charReturns the padding character.charReturns the redaction character.Returns the redaction order.booleanReturns whether domain-properties are available for this builder.int[]Prepares the builder.voidsetAlphabetSize(int alphabetSize, int maxValueLength) Sets properties about the attribute's domain.voidsetDomainAndAlphabetSize(int domainSize, int alphabetSize, int maxValueLength) Sets properties about the attribute's domain.voidsetDomainMetadata(String[] data) Sets properties about the attribute's domain.voidsetDomainSize(int domainSize, int maxValueLength) Sets properties about the attribute's domain.Von Klasse geerbte Methoden org.deidentifier.arx.aggregates.HierarchyBuilder
getType, save, save
-
Methodendetails
-
create
Values are aligned left-to-right and redacted right-to-left. Redacted characters are replaced with the given character. The same character is used for padding.- Typparameter:
T-- Parameter:
redactionCharacter-- Gibt zurück:
-
create
Loads a builder specification from the given file.- Typparameter:
T-- Parameter:
file-- Gibt zurück:
- Löst aus:
IOException
-
create
public static <T> HierarchyBuilderRedactionBased<T> create(HierarchyBuilderRedactionBased.Order alignmentOrder, HierarchyBuilderRedactionBased.Order redactionOrder, char redactionCharacter) Values are aligned according to the alignmentOrder and redacted according to the redactionOrder. Redacted characters are replaced with the given character. The same character is used for padding.- Typparameter:
T-- Parameter:
alignmentOrder-redactionOrder-redactionCharacter-- Gibt zurück:
-
create
public static <T> HierarchyBuilderRedactionBased<T> create(HierarchyBuilderRedactionBased.Order alignmentOrder, HierarchyBuilderRedactionBased.Order redactionOrder, char paddingCharacter, char redactionCharacter) Values are aligned according to the alignmentOrder and redacted according to the redactionOrder. Redacted characters are replaced with the given character. The padding character is used for padding.- Typparameter:
T-- Parameter:
alignmentOrder-redactionOrder-paddingCharacter-redactionCharacter-- Gibt zurück:
-
create
Loads a builder specification from the given file.- Typparameter:
T-- Parameter:
file-- Gibt zurück:
- Löst aus:
IOException
-
build
Creates a new hierarchy, based on the predefined specification.- Angegeben von:
buildin KlasseHierarchyBuilder<T>- Gibt zurück:
-
build
Creates a new hierarchy, based on the predefined specification.- Angegeben von:
buildin KlasseHierarchyBuilder<T>- Parameter:
data-- Gibt zurück:
-
getAligmentOrder
Returns the alignment order.- Gibt zurück:
-
getAlphabetSize
Returns properties about the attribute's domain. Currently, this information is only used for evaluating information loss with the generalized loss metric for attributes with functional redaction-based hierarchies. May return
null.- Gibt zurück:
- Size of the alphabet: the possible number of elements per character of any value from the domain
-
getDomainSize
Returns properties about the attribute's domain. Currently, this information is only used for evaluating information loss with the generalized loss metric for attributes with functional redaction-based hierarchies. May return
null.- Gibt zurück:
- Size of the domain: the number of elements in the domain of the attribute
-
getMaxValueLength
Returns properties about the attribute's domain. Currently, this information is only used for evaluating information loss with the generalized loss metric for attributes with functional redaction-based hierarchies. May return
null.- Gibt zurück:
- Max. length of an element: the number of characters of the largest element in the domain
-
getPaddingCharacter
public char getPaddingCharacter()Returns the padding character.- Gibt zurück:
-
getRedactionCharacter
public char getRedactionCharacter()Returns the redaction character.- Gibt zurück:
-
getRedactionOrder
Returns the redaction order.- Gibt zurück:
-
isDomainPropertiesAvailable
public boolean isDomainPropertiesAvailable()Returns whether domain-properties are available for this builder. Currently, this information is only used for evaluating information loss with the generalized loss metric for attributes with functional redaction-based hierarchies.- Gibt zurück:
-
prepare
Prepares the builder. Returns a list of the number of equivalence classes per level- Angegeben von:
preparein KlasseHierarchyBuilder<T>- Parameter:
data-- Gibt zurück:
-
setAlphabetSize
public void setAlphabetSize(int alphabetSize, int maxValueLength) Sets properties about the attribute's domain. Currently, this information is only used for evaluating information loss with the generalized loss metric for attributes with functional redaction-based hierarchies. Required properties are:
- Size of the domain: the number of elements in the domain of the attribute
- Size of the alphabet: the possible number of elements per character of any value from the domain
- Max. length of an element: the number of characters of the largest element in the domain
As a simplifying assumption, it is assumed that the domain values are distributed equally regarding their length and their characters from the alphabet.
This method will estimate the size of the domain as domainSize = alphabetSize^{maxValueLength}
- Parameter:
alphabetSize-maxValueLength-
-
setDomainAndAlphabetSize
public void setDomainAndAlphabetSize(int domainSize, int alphabetSize, int maxValueLength) Sets properties about the attribute's domain. Currently, this information is only used for evaluating information loss with the generalized loss metric for attributes with functional redaction-based hierarchies. Required properties are:
- Size of the domain: the number of elements in the domain of the attribute
- Size of the alphabet: the possible number of elements per character of any value from the domain
- Max. length of an element: the number of characters of the largest element in the domain
- Parameter:
domainSize-alphabetSize-maxValueLength-
-
setDomainMetadata
Sets properties about the attribute's domain. Currently, this information is only used for evaluating information loss with the generalized loss metric for attributes with functional redaction-based hierarchies.
- Parameter:
data-
-
setDomainSize
public void setDomainSize(int domainSize, int maxValueLength) Sets properties about the attribute's domain. Currently, this information is only used for evaluating information loss with the generalized loss metric for attributes with functional redaction-based hierarchies. Required properties are:
- Size of the domain: the number of elements in the domain of the attribute
- Size of the alphabet: the possible number of elements per character of any value from the domain
- Max. length of an element: the number of characters of the largest element in the domain
As a simplifying assumption, it is assumed that the domain values are distributed equally regarding their length and their characters from the alphabet.
This method will estimate the size of the alphabet as alphabetSize = pow(domainSize, 1.0d / maxValueLength)
- Parameter:
domainSize-maxValueLength-
-