|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eigenbase.rex.RexMultisetUtil
public class RexMultisetUtil
Utility class for various methods related to multisets.
Nested Class Summary | |
---|---|
private static class |
RexMultisetUtil.RexCallMultisetOperatorCounter
A RexShuttle that traverse all RexNode and counts total number of RexCalls traversed and number of multiset calls traversed. |
Field Summary | |
---|---|
private static Set |
multisetOperators
A set defining all implementable multiset calls |
static SqlStdOperatorTable |
opTab
|
Constructor Summary | |
---|---|
RexMultisetUtil()
|
Method Summary | |
---|---|
static boolean |
containsMixing(RexNode node)
Returns true if a node contains a mixing between multiset and non-multiset calls. |
static boolean |
containsMixing(RexProgram program)
Returns true if any expression in a program contains a mixing between multiset and non-multiset calls. |
static boolean |
containsMultiset(RexNode node,
boolean deep)
Returns true if node contains a multiset operator, otherwise false. |
static boolean |
containsMultiset(RexProgram program)
Returns whether a program contains a multiset. |
private static Set |
createMultisetOperatorSet()
|
static RexCall |
findFirstMultiset(RexNode node,
boolean deep)
Returns a reference to the first found multiset call or null if none was found |
static boolean |
isMultisetCast(RexCall call)
Returns true if call is call to CAST and the to/from cast
types are of multiset types |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final Set multisetOperators
public static final SqlStdOperatorTable opTab
Constructor Detail |
---|
public RexMultisetUtil()
Method Detail |
---|
private static final Set createMultisetOperatorSet()
public static boolean containsMixing(RexProgram program)
public static boolean containsMixing(RexNode node)
public static boolean containsMultiset(RexNode node, boolean deep)
node
- Expressiondeep
- If true, returns whether expression contains a multiset. If
false, returns whether expression is a multiset.public static boolean containsMultiset(RexProgram program)
public static boolean isMultisetCast(RexCall call)
CAST
and the to/from cast
types are of multiset types
public static RexCall findFirstMultiset(RexNode node, boolean deep)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |