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

cass.rollup.processors.util.EcGraphUtil.js Maven / Gradle / Ivy

There is a newer version: 3.1.8
Show newest version
var EcGraphUtil = function() {};
EcGraphUtil = stjs.extend(EcGraphUtil, null, [], function(constructor, prototype) {
    constructor.buildIdSearchQueryForIdList = function(idList) {
        var searchQuery = "";
        if (idList.length > 1) 
            searchQuery = "(";
        for (var i = 0; i < idList.length; i++) {
            if (i > 0) 
                searchQuery += " OR ";
            searchQuery += "(\\*@id:\"" + idList[i] + "\")";
        }
        if (idList.length > 1) 
            searchQuery += ")";
        return searchQuery;
    };
}, {}, {});




© 2015 - 2024 Weber Informatics LLC | Privacy Policy