Class CollectionValues
java.lang.Object
io.fluxzero.common.search.CollectionValues
Collection intervals using the existing sortable encoding and per-document legacy fallback.
-
Method Summary
Modifier and TypeMethodDescriptionstatic intCompares normalized keys in Unicode codepoint order, matching PostgreSQL's binary C collation.static Stringextremum(Document document, String path, ValueSelection selection) Returns the requested extremum, or null for missing, empty or null-only values.indexedValues(Document document) Materializes at most two extrema per annotated path, in one pass over the document entries.indexedValues(Document document, Collection<String> pathsToIndex) Collects requested canonical extrema; empty means missing, singleton means minimum equals maximum.static Stringkey(Document.Entry entry) Encodes a raw document scalar with the same rules as annotated values.static StringUses existing sortable numeric precision and normalization.static booleanTests interval overlap; old annotated documents without a minimum retain their maximum-only interval.Streams comparison keys at one path.
-
Method Details
-
compare
-
key
Uses existing sortable numeric precision and normalization. Uppercase UTC ISO timestamp text, as emitted by Instant JSON serialization, uses the existing fixed-millisecond timestamp encoding. The document text is unchanged. Literal strings with this exact syntax are indistinguishable from serialized Instants here. -
key
Encodes a raw document scalar with the same rules as annotated values. -
values
-
extremum
Returns the requested extremum, or null for missing, empty or null-only values. -
overlaps
-
indexedValues
-
indexedValues
-