Skip to content

Commit

Permalink
Doc
Browse files Browse the repository at this point in the history
  • Loading branch information
nik9000 committed Sep 30, 2024
1 parent a60e961 commit 1380490
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
import org.elasticsearch.compute.data.Page;
import org.elasticsearch.compute.operator.EvalOperator;

/**
* An {@link EvalOperator.ExpressionEvaluator} that evaluates to a constant boolean value.
*/
public record ConstantBooleanExpressionEvaluator(BlockFactory factory, boolean value) implements EvalOperator.ExpressionEvaluator {
public static EvalOperator.ExpressionEvaluator.Factory factory(boolean value) {
return ctx -> new ConstantBooleanExpressionEvaluator(ctx.blockFactory(), value);
Expand Down

0 comments on commit 1380490

Please sign in to comment.