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

Method map

core/src/main/java/org/apache/calcite/util/RangeSets.java:162–167  ·  view source on GitHub ↗

Calls the appropriate handler method for each range in a range set, creating a new range set from the results.

(RangeSet<C> rangeSet, Handler<C, Range<C2>> handler)

Source from the content-addressed store, hash-verified

160 /** Calls the appropriate handler method for each range in a range set,
161 * creating a new range set from the results. */
162 public static <C extends Comparable<C>, C2 extends Comparable<C2>>
163 RangeSet<C2> map(RangeSet<C> rangeSet, Handler<C, Range<C2>> handler) {
164 final ImmutableRangeSet.Builder<C2> builder = ImmutableRangeSet.builder();
165 rangeSet.asRanges().forEach(range -> builder.add(map(range, handler)));
166 return builder.build();
167 }
168
169 /** Calls the appropriate handler method for the type of range. */
170 public static <C extends Comparable<C>, R> R map(Range<C> range,

Callers 3

testRangeMapMethod · 0.95
copyMethod · 0.95
toJsonMethod · 0.95

Calls 15

builderMethod · 0.65
forEachMethod · 0.65
addMethod · 0.65
buildMethod · 0.65
openMethod · 0.65
openClosedMethod · 0.65
closedOpenMethod · 0.65
equalsMethod · 0.65
singletonMethod · 0.65
closedMethod · 0.65
greaterThanMethod · 0.65
atLeastMethod · 0.65

Tested by 1

testRangeMapMethod · 0.76