FilterNormalizer

class FilterNormalizer(clock: Clock = Clock.systemUTC(), defaultZoneId: ZoneId = ZoneOffset.UTC)

Lowers relative time and derived operators. A relative-time filter that names no zoneId reads its days in defaultZoneId, UTC: never the JVM's zone, so nodes in different zones answer a filter alike.

Constructors

Link copied to clipboard
constructor(clock: Clock = Clock.systemUTC(), defaultZoneId: ZoneId = ZoneOffset.UTC)

Functions

Link copied to clipboard

Normalizes expression without a schema, at the clock's current moment: relative time lowers to a range in its own configuration, derived operators lower and logical nodes simplify. An admitted query is normalized by admission's resolution pass instead, which lowers relative time as each field stores it.