templates.KMFQLSelectorCache.vm Maven / Gradle / Ivy
#* @vtlvariable name="formatedCacheName" type="java.lang.String" *#
#* @vtlvariable name="packElem" type="java.lang.String" *#
package ${packElem}.impl;
object ${formatedCacheName} {
private var _cache : Map = java.util.HashMap()
public fun getCache() : Map { return _cache }
public fun clear(){
_cache = java.util.HashMap()
}
public fun filter(queryID : String,input : Collection) : Collection {
if(queryID == "" || queryID == "*"){
return input
} else {
val internalFilter = fr.inria.jfilter.FilterParser.filter.parse(queryID)
return internalFilter!!.filter(input,getCache())!!
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy