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

Method operand

core/src/main/java/org/apache/calcite/sql/SqlCall.java:103–108  ·  view source on GitHub ↗

Returns i-th operand (0-based). Note: the result might be null, so the proper signature would be , however, it would trigger to many changes to the current codebase. @param i operand index (0-based) @param type of the result @return i-th operand (0-based

(int i)

Source from the content-addressed store, hash-verified

101 * @return i-th operand (0-based), the result might be null
102 */
103 @SuppressWarnings("unchecked")
104 public <S extends /*Nullable*/ SqlNode> S operand(int i) {
105 // Note: in general, null elements exist in the list, however, the code
106 // assumes operand(..) is non-nullable, so we add a cast here
107 return (S) castNonNull(getOperandList().get(i));
108 }
109
110 public int operandCount() {
111 return getOperandList().size();

Callers 15

check_Method · 0.95
createMethod · 0.95
translateAggMethod · 0.95
pushDownNotForInMethod · 0.95
convertOverMethod · 0.95
convertFromMethod · 0.95
convertCursorMethod · 0.95
convertMultisetsMethod · 0.95
convertExpressionMethod · 0.95
validateCallMethod · 0.95
isCountStarMethod · 0.95

Calls 3

getOperandListMethod · 0.95
getMethod · 0.65
castNonNullMethod · 0.45

Tested by 3

check_Method · 0.76
matchesSafelyMethod · 0.76
assertIntervalMethod · 0.76