commit | 3a85c92af76ca9819d2ba7659040731e3f97a314 | [log] [tgz] |
---|---|---|
author | Peeyush Gupta <peeyush.gupta@couchbase.com> | Fri Jul 11 11:51:56 2025 -0700 |
committer | Peeyush Gupta <peeyush.gupta@couchbase.com> | Sat Jul 12 00:20:06 2025 +0000 |
tree | 4c87cf3a0496e4d33da207220306d8bf8a877ce5 | |
parent | 80a41e247ce465994bc9d3b053cd8ab1db0f6308 [diff] |
[NO ISSUE][OTH] Adding getters to evaluator factories - user model changes: no - storage format changes: no - interface changes: no Ext-ref: MB-67507 Change-Id: I9173a33f75dcdae6790ce7bd9670d722f1d7cf50 Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/20070 Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu> Reviewed-by: Peeyush Gupta <peeyush.gupta@couchbase.com> Reviewed-by: Ali Alsuliman <ali.al.solaiman@gmail.com> Tested-by: Peeyush Gupta <peeyush.gupta@couchbase.com>
diff --git a/asterixdb/asterix-runtime/src/main/java/org/apache/asterix/runtime/evaluators/functions/CastTypeEvaluatorFactory.java b/asterixdb/asterix-runtime/src/main/java/org/apache/asterix/runtime/evaluators/functions/CastTypeEvaluatorFactory.java index 073107c..2954268 100644 --- a/asterixdb/asterix-runtime/src/main/java/org/apache/asterix/runtime/evaluators/functions/CastTypeEvaluatorFactory.java +++ b/asterixdb/asterix-runtime/src/main/java/org/apache/asterix/runtime/evaluators/functions/CastTypeEvaluatorFactory.java
@@ -47,4 +47,20 @@ IScalarEvaluator argEval = recordEvalFactory.createScalarEvaluator(ctx); return new CastTypeEvaluator(reqType, inputType, argEval, sourceLoc); } + + public IAType getReqType() { + return reqType; + } + + public IAType getInputType() { + return inputType; + } + + public SourceLocation getSourceLoc() { + return sourceLoc; + } + + public IScalarEvaluatorFactory getRecordEvalFactory() { + return recordEvalFactory; + } }
diff --git a/asterixdb/asterix-runtime/src/main/java/org/apache/asterix/runtime/evaluators/functions/records/FieldAccessByNameEvalFactory.java b/asterixdb/asterix-runtime/src/main/java/org/apache/asterix/runtime/evaluators/functions/records/FieldAccessByNameEvalFactory.java index 7e093f1..ce2f2d6 100644 --- a/asterixdb/asterix-runtime/src/main/java/org/apache/asterix/runtime/evaluators/functions/records/FieldAccessByNameEvalFactory.java +++ b/asterixdb/asterix-runtime/src/main/java/org/apache/asterix/runtime/evaluators/functions/records/FieldAccessByNameEvalFactory.java
@@ -126,4 +126,20 @@ } }; } + + public IScalarEvaluatorFactory getRecordEvalFactory() { + return recordEvalFactory; + } + + public IScalarEvaluatorFactory getFldNameEvalFactory() { + return fldNameEvalFactory; + } + + public SourceLocation getSourceLoc() { + return sourceLoc; + } + + public FunctionIdentifier getFunID() { + return funID; + } }
diff --git a/asterixdb/asterix-runtime/src/main/java/org/apache/asterix/runtime/evaluators/functions/records/FieldAccessNestedEvalFactory.java b/asterixdb/asterix-runtime/src/main/java/org/apache/asterix/runtime/evaluators/functions/records/FieldAccessNestedEvalFactory.java index c9bc054..49e5eeb 100644 --- a/asterixdb/asterix-runtime/src/main/java/org/apache/asterix/runtime/evaluators/functions/records/FieldAccessNestedEvalFactory.java +++ b/asterixdb/asterix-runtime/src/main/java/org/apache/asterix/runtime/evaluators/functions/records/FieldAccessNestedEvalFactory.java
@@ -272,4 +272,24 @@ } }; } + + public IScalarEvaluatorFactory getRecordEvalFactory() { + return recordEvalFactory; + } + + public ARecordType getRecordType() { + return recordType; + } + + public List<String> getFieldPath() { + return fieldPath; + } + + public SourceLocation getSourceLoc() { + return sourceLoc; + } + + public FunctionIdentifier getFunID() { + return funID; + } }