Skip to content

Commit

Permalink
Improved JavaDoc
Browse files Browse the repository at this point in the history
Signed-off-by: Mihai Budiu <mbudiu@feldera.com>
  • Loading branch information
mihaibudiu committed Oct 23, 2024
1 parent a897dbb commit dc8c4ff
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,15 @@ public static RexExecutable getExecutable(RexBuilder rexBuilder, List<RexNode> e

/**
* Do constant reduction using generated code.
* Returns the reduced expressions in `reducedValues`, which
* is supposed to be empty on call.
*
* @param rexBuilder Builder used to construct expressions
* @param constExps A list of constant expressions
* @param reducedValues An empty list. The function will return
* for each expression on constExps one equivalent
* reduced expression in this list, in the same order.
*/
@Override public void reduce(RexBuilder rexBuilder, List<RexNode> constExps,
List<RexNode> reducedValues) {
// If this is not empty, the reducedValues.clear() call below is wrong.
assert reducedValues.isEmpty();
try {
String code = compile(rexBuilder, constExps, (list, index, storageType) -> {
Expand Down

0 comments on commit dc8c4ff

Please sign in to comment.