Java Code Examples for org.apache.calcite.util.ImmutableIntList#of()
The following examples show how to use
org.apache.calcite.util.ImmutableIntList#of() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AggregateExpandDistinctAggregatesRule.java From Bats with Apache License 2.0 | 5 votes |
private static List<Integer> remap(ImmutableBitSet groupSet, List<Integer> argList) { ImmutableIntList list = ImmutableIntList.of(); for (int arg : argList) { list = list.append(remap(groupSet, arg)); } return list; }
Example 2
Source File: ProjectToWindowRule.java From Bats with Apache License 2.0 | 5 votes |
private List<Integer> getRank(DirectedGraph<Integer, DefaultEdge> graph) { final int[] rankArr = new int[graph.vertexSet().size()]; int rank = 0; for (int i : TopologicalOrderIterator.of(graph)) { rankArr[i] = rank++; } return ImmutableIntList.of(rankArr); }
Example 3
Source File: FlinkAggregateExpandDistinctAggregatesRule.java From flink with Apache License 2.0 | 5 votes |
private static List<Integer> remap(ImmutableBitSet groupSet, List<Integer> argList) { ImmutableIntList list = ImmutableIntList.of(); for (int arg : argList) { list = list.append(remap(groupSet, arg)); } return list; }
Example 4
Source File: FlinkAggregateExpandDistinctAggregatesRule.java From flink with Apache License 2.0 | 5 votes |
private static List<Integer> remap(ImmutableBitSet groupSet, List<Integer> argList) { ImmutableIntList list = ImmutableIntList.of(); for (int arg : argList) { list = list.append(remap(groupSet, arg)); } return list; }
Example 5
Source File: AggregateExpandDistinctAggregatesRule.java From calcite with Apache License 2.0 | 5 votes |
private static List<Integer> remap(ImmutableBitSet groupSet, List<Integer> argList) { ImmutableIntList list = ImmutableIntList.of(); for (int arg : argList) { list = list.append(remap(groupSet, arg)); } return list; }
Example 6
Source File: ProjectToWindowRule.java From calcite with Apache License 2.0 | 5 votes |
private List<Integer> getRank(DirectedGraph<Integer, DefaultEdge> graph) { final int[] rankArr = new int[graph.vertexSet().size()]; int rank = 0; for (int i : TopologicalOrderIterator.of(graph)) { rankArr[i] = rank++; } return ImmutableIntList.of(rankArr); }
Example 7
Source File: RelCollation.java From calcite with Apache License 2.0 | 5 votes |
/** * Returns the ordinals of the key columns. */ default @Nonnull ImmutableIntList getKeys() { final List<RelFieldCollation> collations = getFieldCollations(); final int size = collations.size(); final int[] keys = new int[size]; for (int i = 0; i < size; i++) { keys[i] = collations.get(i).getFieldIndex(); } return ImmutableIntList.of(keys); }