Package org.deidentifier.arx.aggregates
Klasse HierarchyBuilderDate
java.lang.Object
org.deidentifier.arx.aggregates.HierarchyBuilder<Date>
org.deidentifier.arx.aggregates.HierarchyBuilderDate
- Alle implementierten Schnittstellen:
Serializable
This class enables building hierarchies for dates.
- Siehe auch:
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic classA format-class for localizationstatic enumGranularityVon 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 HierarchyBuilderDateLoads a builder specification from the given file.static HierarchyBuilderDatecreate(DataType<Date> type, TimeZone timeZone, HierarchyBuilderDate.Format format, Date bottomCoding, Date topCoding, HierarchyBuilderDate.Granularity... granularities) Creates an hierarchy reflecting the given granularitiesstatic HierarchyBuilderDatecreate(DataType<Date> type, TimeZone timeZone, HierarchyBuilderDate.Format format, HierarchyBuilderDate.Granularity... granularities) Creates an hierarchy reflecting the given granularitiesstatic HierarchyBuilderDatecreate(DataType<Date> type, HierarchyBuilderDate.Granularity... granularities) Creates an hierarchy reflecting the given granularitiesReturns the granularitiesint[]Prepares the builder.voidsetBottomCodingBound(Date bottomCoding) voidsetFormat(HierarchyBuilderDate.Format format) voidsetGranularities(HierarchyBuilderDate.Granularity[] granularities) Sets the granularitiesvoidsetTimeZone(TimeZone timeZone) voidsetTopCodingBound(Date topCoding) Von Klasse geerbte Methoden org.deidentifier.arx.aggregates.HierarchyBuilder
create, getType, save, save
-
Methodendetails
-
create
public static HierarchyBuilderDate create(DataType<Date> type, HierarchyBuilderDate.Granularity... granularities) Creates an hierarchy reflecting the given granularities- Parameter:
type-granularities-- Gibt zurück:
-
create
public static HierarchyBuilderDate create(DataType<Date> type, TimeZone timeZone, HierarchyBuilderDate.Format format, HierarchyBuilderDate.Granularity... granularities) Creates an hierarchy reflecting the given granularities- Parameter:
type-timeZone-granularities-- Gibt zurück:
-
create
public static HierarchyBuilderDate create(DataType<Date> type, TimeZone timeZone, HierarchyBuilderDate.Format format, Date bottomCoding, Date topCoding, HierarchyBuilderDate.Granularity... granularities) Creates an hierarchy reflecting the given granularities- Parameter:
type-timeZone-bottomCoding-topCoding-granularities-- 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<Date>- Gibt zurück:
-
build
Creates a new hierarchy, based on the predefined specification.- Angegeben von:
buildin KlasseHierarchyBuilder<Date>- Parameter:
data-- Gibt zurück:
-
getBottomCodingBound
- Gibt zurück:
- the bottomCoding
-
getFormat
- Gibt zurück:
- the format
-
getGranularities
Returns the granularities- Gibt zurück:
- the granularities
-
getTimeZone
- Gibt zurück:
- the outputTimeZone
-
getTopCodingBound
- Gibt zurück:
- the topCoding
-
prepare
Prepares the builder. Returns a list of the number of equivalence classes per level- Angegeben von:
preparein KlasseHierarchyBuilder<Date>- Parameter:
data-- Gibt zurück:
-
setBottomCodingBound
- Parameter:
bottomCoding- the bottomCoding to set
-
setFormat
- Parameter:
format- the format to set
-
setGranularities
Sets the granularities- Parameter:
granularities-
-
setTimeZone
- Parameter:
timeZone- the time zone to set
-
setTopCodingBound
- Parameter:
topCoding- the topCoding to set
-