MCPcopy Index your code
hub / github.com/apache/calcite / isA

Method isA

core/src/main/java/org/apache/calcite/sql/SqlNode.java:115–117  ·  view source on GitHub ↗

Returns whether this node is a member of an aggregate category. For example, node.isA(SqlKind.QUERY) returns true if the node is a SELECT, INSERT, UPDATE etc. This method is shorthand: node.isA(category) is always equivalent to {@code node.getKind().belongsTo(category

(Set<SqlKind> category)

Source from the content-addressed store, hash-verified

113 * @return Whether this node belongs to the given category.
114 */
115 public final boolean isA(Set<SqlKind> category) {
116 return getKind().belongsTo(category);
117 }
118
119 @Deprecated // to be removed before 2.0
120 public static SqlNode[] cloneArray(SqlNode[] nodes) {

Callers 15

lookupHintsMethod · 0.95
testTimestampGroupByMethod · 0.45
addFilterMethod · 0.45
translateBinary2Method · 0.45
toDruidExpressionMethod · 0.45
isValidLeafCastMethod · 0.45
getPigJoinStatementMethod · 0.45
assertNodeMethod · 0.45
testImmutableCopyMethod · 0.45

Calls 2

getKindMethod · 0.95
belongsToMethod · 0.80

Tested by 6

testTimestampGroupByMethod · 0.36
assertNodeMethod · 0.36
testImmutableCopyMethod · 0.36
testTimestampGroupByMethod · 0.36