From aac15ad0a9944c703d1a26f1f2f69d838f9f52e7 Mon Sep 17 00:00:00 2001 From: Steven Bayer Date: Fri, 11 Feb 2022 17:11:45 -0600 Subject: [PATCH] Updated ConditionalExpressionEvaluator scope to package private (#1029) Signed-off-by: Steven Bayer Co-authored-by: Steven Bayer --- .../dataprepper/expression/ConditionalExpressionEvaluator.java | 3 ++- .../opensearch/dataprepper/expression/ExpressionEvaluator.java | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/data-prepper-expression/src/main/java/org/opensearch/dataprepper/expression/ConditionalExpressionEvaluator.java b/data-prepper-expression/src/main/java/org/opensearch/dataprepper/expression/ConditionalExpressionEvaluator.java index 0de3045b4e..5798a701ba 100644 --- a/data-prepper-expression/src/main/java/org/opensearch/dataprepper/expression/ConditionalExpressionEvaluator.java +++ b/data-prepper-expression/src/main/java/org/opensearch/dataprepper/expression/ConditionalExpressionEvaluator.java @@ -11,7 +11,7 @@ * {@link com.amazon.dataprepper.model.sink.Sink} and data-prepper-core objects can use to evaluate statements. */ @Named -public class ConditionalExpressionEvaluator implements ExpressionEvaluator { +class ConditionalExpressionEvaluator implements ExpressionEvaluator { private final Parser parser; private final Evaluator evaluator; @@ -28,6 +28,7 @@ public ConditionalExpressionEvaluator(final Parser parser, final Eval */ @Override public Boolean evaluate(final String statement, final Event context) throws ClassCastException { + // TODO: Implement method throw new RuntimeException("Method not implemented"); } } diff --git a/data-prepper-expression/src/main/java/org/opensearch/dataprepper/expression/ExpressionEvaluator.java b/data-prepper-expression/src/main/java/org/opensearch/dataprepper/expression/ExpressionEvaluator.java index f2d632b493..0838e7f213 100644 --- a/data-prepper-expression/src/main/java/org/opensearch/dataprepper/expression/ExpressionEvaluator.java +++ b/data-prepper-expression/src/main/java/org/opensearch/dataprepper/expression/ExpressionEvaluator.java @@ -4,7 +4,7 @@ /** * @since 1.3 - * ScriptEngine interface to abstract the parse and evaluate implementations. + * ExpressionEvaluator interface to abstract the parse and evaluate implementations. */ public interface ExpressionEvaluator {