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

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

There is a newer version: 3.1.8
Show newest version
package cass.rollup.processors.util;

import org.stjs.javascript.Array;

public class EcGraphUtil {

    public static String buildIdSearchQueryForIdList(Array idList) {
        String searchQuery = "";
        if (idList.$length() > 1) searchQuery = "(";
        for (int i = 0; i < idList.$length(); i++) {
            if (i > 0) searchQuery += " OR ";
            searchQuery += "(\\*@id:\"" + idList.$get(i) + "\")";
        }
        if (idList.$length() > 1) searchQuery += ")";
        return searchQuery;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy