Class Cache
java.lang.Object
org.opencds.cqf.cql.engine.execution.Cache
There are at least two types of data that need to be cached, some that is context dependent, like expression results
(and thus can be invalidated during the course of evaluation) and some that is not, like Function resolutions (and thus
can be cache for the entire duration of the evaluation).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcacheExpression(org.hl7.elm.r1.VersionedIdentifier libraryId, String name, ExpressionResult er) voidcacheFunctionDef(org.hl7.elm.r1.FunctionRef functionRef, org.hl7.elm.r1.FunctionDef functionDef) protected Map<String,ExpressionResult> getCachedExpression(org.hl7.elm.r1.VersionedIdentifier libraryId, String name) org.hl7.elm.r1.FunctionDefgetCachedFunctionDef(org.hl7.elm.r1.FunctionRef functionRef) protected Map<String,ExpressionResult> getExpressionCache(org.hl7.elm.r1.VersionedIdentifier libraryId) Map<org.hl7.elm.r1.VersionedIdentifier,Map<String, ExpressionResult>> Map<org.hl7.elm.r1.FunctionRef,org.hl7.elm.r1.FunctionDef> booleanisExpressionCached(org.hl7.elm.r1.VersionedIdentifier libraryId, String name) booleanvoidsetExpressionCaching(boolean yayOrNay)
-
Constructor Details
-
Cache
public Cache()
-
-
Method Details
-
constructLibraryExpressionHashMap
-
getExpressions
-
setExpressionCaching
public void setExpressionCaching(boolean yayOrNay) -
getExpressionCache
protected Map<String,ExpressionResult> getExpressionCache(org.hl7.elm.r1.VersionedIdentifier libraryId) -
isExpressionCached
-
isExpressionCachingEnabled
public boolean isExpressionCachingEnabled() -
cacheExpression
public void cacheExpression(org.hl7.elm.r1.VersionedIdentifier libraryId, String name, ExpressionResult er) -
getCachedExpression
public ExpressionResult getCachedExpression(org.hl7.elm.r1.VersionedIdentifier libraryId, String name) -
getFunctionCache
-
cacheFunctionDef
public void cacheFunctionDef(org.hl7.elm.r1.FunctionRef functionRef, org.hl7.elm.r1.FunctionDef functionDef) -
getCachedFunctionDef
public org.hl7.elm.r1.FunctionDef getCachedFunctionDef(org.hl7.elm.r1.FunctionRef functionRef)
-