Search in sources :

Example 1 with ListQuery

use of org.apache.geode.redis.internal.executor.ListQuery in project geode by apache.

the class RegionProvider method doInitializeList.

private void doInitializeList(ByteArrayWrapper key, Region r) {
    r.put("head", Integer.valueOf(0));
    r.put("tail", Integer.valueOf(0));
    String fullpath = r.getFullPath();
    HashMap<Enum<?>, Query> queryList = new HashMap<Enum<?>, Query>();
    for (ListQuery lq : ListQuery.values()) {
        String queryString = lq.getQueryString(fullpath);
        Query query = this.queryService.newQuery(queryString);
        queryList.put(lq, query);
    }
    this.preparedQueries.put(key, queryList);
}
Also used : Query(org.apache.geode.cache.query.Query) SortedSetQuery(org.apache.geode.redis.internal.executor.SortedSetQuery) ListQuery(org.apache.geode.redis.internal.executor.ListQuery) HashMap(java.util.HashMap) ConcurrentHashMap(java.util.concurrent.ConcurrentHashMap) ListQuery(org.apache.geode.redis.internal.executor.ListQuery)

Aggregations

HashMap (java.util.HashMap)1 ConcurrentHashMap (java.util.concurrent.ConcurrentHashMap)1 Query (org.apache.geode.cache.query.Query)1 ListQuery (org.apache.geode.redis.internal.executor.ListQuery)1 SortedSetQuery (org.apache.geode.redis.internal.executor.SortedSetQuery)1