MCPcopy Create free account
hub / github.com/apache/calcite / isPoints

Method isPoints

core/src/main/java/org/apache/calcite/util/Sarg.java:234–236  ·  view source on GitHub ↗

Returns whether this Sarg is a collection of 1 or more points (and perhaps an IS NULL if nullAs == RexUnknownAs.TRUE). Such sargs could be translated as ref = value or ref IN (value1, ...).

()

Source from the content-addressed store, hash-verified

232 * <p>Such sargs could be translated as {@code ref = value}
233 * or {@code ref IN (value1, ...)}. */
234 public boolean isPoints() {
235 return pointCount == rangeSet.asRanges().size();
236 }
237
238 /** Returns whether this Sarg, when negated, is a collection of 1 or more
239 * points (and perhaps an {@code IS NULL} if

Callers 8

simplifySearchMethod · 0.95
makeInMethod · 0.95
sargValueMethod · 0.95
simpleSargMethod · 0.80
sargRefMethod · 0.80
toSqlMethod · 0.80
isSearchWithPointsMethod · 0.80
isSearchWithRangeMethod · 0.80

Calls 1

sizeMethod · 0.65

Tested by

no test coverage detected