class RelMdPredicates.JoinConditionBasedPredicateInference.ExprsItr extends Object implements Iterator<Mapping>
For example, for an expression 'a + b + c' and the following equivalences:
a : {a, b}
b : {a, b}
c : {c, e}
The following Mappings will be returned:
{a → a, b → a, c → c}
{a → a, b → a, c → e}
{a → a, b → b, c → c}
{a → a, b → b, c → e}
{a → b, b → a, c → c}
{a → b, b → a, c → e}
{a → b, b → b, c → c}
{a → b, b → b, c → e}
which imply the following inferences:
a + a + c a + a + e a + b + c a + b + e b + a + c b + a + e b + b + c b + b + e
| Modifier and Type | Field and Description |
|---|---|
(package private) int[] |
columns |
(package private) BitSet[] |
columnSets |
(package private) boolean |
firstCall |
(package private) int[] |
iterationIdx |
(package private) Mapping |
nextMapping |
| Constructor and Description |
|---|
ExprsItr(ImmutableBitSet fields) |
| Modifier and Type | Method and Description |
|---|---|
private void |
computeNextMapping(int level) |
boolean |
hasNext() |
private void |
initializeMapping() |
Mapping |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingfinal int[] columns
final BitSet[] columnSets
final int[] iterationIdx
Mapping nextMapping
boolean firstCall
ExprsItr(ImmutableBitSet fields)
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.