Search Java Code Snippets


  Help us in improving the repository. Add new snippets through 'Submit Code Snippet ' link.





#Java - Code Snippets for '#Org.apache.calcite.rex.RexInputRef' - 1 code snippet(s) found

 Sample 1. Code Sample / Example / Snippet of org.apache.calcite.rex.RexInputRef

    private String compareFieldWithLiteral(RexNode left, RexNode right, List<String> fieldNames) {

if (left.isA(SqlKind.CAST)) {

left = ((RexCall) left).getOperands().get(0);

}



if (left.isA(SqlKind.INPUT_REF) && right.isA(SqlKind.LITERAL)) {

final RexInputRef left1 = (RexInputRef) left;

String name = fieldNames.get(left1.getIndex());

return name;

} else {

return null;

}

}


   Like      Feedback      org.apache.calcite.rex.RexInputRef



Subscribe to Java News and Posts. Get latest updates and posts on Java from Buggybread.com
Enter your email address:
Delivered by FeedBurner