All Downloads are FREE. Search and download functionalities are using the official Maven repository.

templates.KMFQLSelectorCache.vm Maven / Gradle / Ivy

There is a newer version: 3.5.12
Show newest version
#* @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