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

Method copy

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

Copies a range set.

(RangeSet<C> rangeSet, Function<C, C2> map)

Source from the content-addressed store, hash-verified

214
215 /** Copies a range set. */
216 public static <C extends Comparable<C>, C2 extends Comparable<C2>>
217 RangeSet<C2> copy(RangeSet<C> rangeSet, Function<C, C2> map) {
218 return map(rangeSet, new CopyingHandler<C, C2>() {
219 @Override C2 convert(C c) {
220 return map.apply(c);
221 }
222 });
223 }
224
225 /** Copies a range. */
226 public static <C extends Comparable<C>, C2 extends Comparable<C2>>

Callers 3

leafToRangesMethod · 0.95
translateMethod · 0.95

Calls 1

mapMethod · 0.95

Tested by 1