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

Method range

core/src/main/java/org/apache/calcite/util/NameSet.java:72–78  ·  view source on GitHub ↗

Returns an iterable over all the entries in the set that match the given name. If case-sensitive, that iterable will have 0 or 1 elements; if case-insensitive, it may have 0 or more.

(String name, boolean caseSensitive)

Source from the content-addressed store, hash-verified

70 * name. If case-sensitive, that iterable will have 0 or 1 elements; if
71 * case-insensitive, it may have 0 or more. */
72 public Collection<String> range(String name, boolean caseSensitive) {
73 // This produces checkerframework false-positive
74 // type of expression: Set<@KeyFor("this.names.range(name, caseSensitive)") String>
75 // method return type: Collection<String>
76 //noinspection RedundantCast
77 return (Collection<String>) names.range(name, caseSensitive).keySet();
78 }
79
80 /** Returns whether this set contains the given name, with a given
81 * case-sensitivity. */

Callers 5

testNameSetMethod · 0.95
checkNameSetMethod · 0.95
getImplicitTypeMethod · 0.95

Calls 2

rangeMethod · 0.65
keySetMethod · 0.45

Tested by 2

testNameSetMethod · 0.76
checkNameSetMethod · 0.76