>From Peeyush Gupta <[email protected]>:
Peeyush Gupta has uploaded this change for review. (
https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/20070 )
Change subject: [NO ISSUE][OTH] Adding getters to evaluator factories
......................................................................
[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
---
M
asterixdb/asterix-runtime/src/main/java/org/apache/asterix/runtime/evaluators/functions/records/FieldAccessNestedEvalFactory.java
M
asterixdb/asterix-runtime/src/main/java/org/apache/asterix/runtime/evaluators/functions/records/FieldAccessByNameEvalFactory.java
M
asterixdb/asterix-runtime/src/main/java/org/apache/asterix/runtime/evaluators/functions/CastTypeEvaluatorFactory.java
3 files changed, 66 insertions(+), 0 deletions(-)
git pull ssh://asterix-gerrit.ics.uci.edu:29418/asterixdb
refs/changes/70/20070/1
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;
+ }
}
--
To view, visit https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/20070
To unsubscribe, or for help writing mail filters, visit
https://asterix-gerrit.ics.uci.edu/settings
Gerrit-Project: asterixdb
Gerrit-Branch: ionic
Gerrit-Change-Id: I9173a33f75dcdae6790ce7bd9670d722f1d7cf50
Gerrit-Change-Number: 20070
Gerrit-PatchSet: 1
Gerrit-Owner: Peeyush Gupta <[email protected]>
Gerrit-MessageType: newchange