Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[NO ISSUE] use isExternal() in lieu of instanceof
- user model changes: no - storage format changes: no - interface changes: yes Details: Add a default method for determining whether an IFunctionInfo represents an external function or not, which is overriden by ExternalFunctionInfo. This is much cleaner than abusing instanceof to determine this. Change-Id: I50539b9a8a3419a389590ea89230c7e5642c277b Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/15543 Contrib: Jenkins <jenkins@fulliautomatix.ics.uci.edu> Contrib: Ian Maxon <imaxon@uci.edu> Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu> Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu> Reviewed-by: Ian Maxon <imaxon@uci.edu> Reviewed-by: Hussain Towaileb <hussainht@gmail.com>
- Loading branch information
Showing
5 changed files
with
13 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -101,4 +101,9 @@ public Map<String, String> getResources() { | ||
public boolean getNullCall() { | ||
return nullCall; | ||
} | ||
|
||
@Override | ||
public boolean isExternal() { | ||
return true; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -38,6 +38,11 @@ default boolean isFunctional() { | ||
return true; | ||
} | ||
|
||
default boolean isExternal() { | ||
// A function is not external by default. | ||
return false; | ||
} | ||
|
||
/** | ||
* @param args, | ||
* the arguments. | ||