public class ZValueRange extends Object
new ZValueRange(ImmutableList.of(Optional.of(5)), ImmutableList.of(Optional.of(5)));
(2) "column >= 0 AND column <= 9" -> new ZValueRange(ImmutableList.of(Optional.of(0)), ImmutableList.of(Optional.of(9)));
(3) "column >= 1" -> new ZValueRange(ImmutableList.of(Optional.of(1)), ImmutableList.of(Optional.empty()));
(4) no range for column -> new ZValueRange(ImmutableList.of(Optional.empty()), ImmutableList.of(Optional.empty()));
(5) "column <= 5 OR column >= 10" -> new ZValueRange(ImmutableList.of(Optional.empty(), Optional.of(10)), ImmutableList.of(Optional.of(5), Optional.empty())); | Constructor and Description |
|---|
ZValueRange(List<Optional<Integer>> minimumValues,
List<Optional<Integer>> maximumValues)
Class constructor initializing
minimumValues and maximumValues from optional minimum/maximum value ranges. |
| Modifier and Type | Method and Description |
|---|---|
List<Integer> |
getMaximumValues(int maximumBits)
Sets null maximum values to the default maximum value based on
maximumBits before returning the list. |
List<Integer> |
getMinimumValues(int maximumBits)
Sets null minimum values to the default minimum value based on
maximumBits before returning the list. |
public ZValueRange(List<Optional<Integer>> minimumValues, List<Optional<Integer>> maximumValues)
minimumValues and maximumValues from optional minimum/maximum value ranges.
A value can be set to Optional.empty(), or null, if the query is unbounded in any dimension.public List<Integer> getMinimumValues(int maximumBits)
maximumBits before returning the list.
The default minimum value will be -(1 << maximumBits).maximumBits - the maximum amount of bits the values can have, not including the sign bitpublic List<Integer> getMaximumValues(int maximumBits)
maximumBits before returning the list.
The default maximum value will be (1 << maximumBits) - 1.maximumBits - the maximum amount of bits the values can have, not including the sign bitCopyright © 2012–2022. All rights reserved.