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

Method in

core/src/main/java/org/apache/calcite/tools/RelBuilder.java:799–801  ·  view source on GitHub ↗

Creates an IN predicate with a list of values. For example, b.scan("Emp") .filter(b.in(b.field("deptno"), b.literal(10), b.literal(20))) is equivalent to SQL SELECT FROM Emp WHERE deptno IN (10, 20)

(RexNode arg, RexNode... ranges)

Source from the content-addressed store, hash-verified

797 * WHERE deptno IN (10, 20)
798 * }</pre> */
799 public RexNode in(RexNode arg, RexNode... ranges) {
800 return in(arg, ImmutableList.copyOf(ranges));
801 }
802
803 /** Creates an IN predicate with a list of values.
804 *

Callers 1

testQuery27BuilderMethod · 0.95

Calls 6

getRexBuilderMethod · 0.95
inMethod · 0.95
makeInMethod · 0.80
copyOfMethod · 0.65
applyMethod · 0.65
ofMethod · 0.65

Tested by 1

testQuery27BuilderMethod · 0.76