Examples of IndexQuery


Examples of com.basho.riak.client.raw.query.indexes.IndexQuery

     */
    public List<String> execute() throws RiakException {
        if (value == null && (to == null || from == null)) {
            throw new IllegalStateException("Must set either value or range");
        }
        final IndexQuery indexQuery = makeIndexQuery();

        List<String> keys = retrier.attempt(new Callable<List<String>>() {
            public List<String> call() throws Exception {
                return client.fetchIndex(indexQuery);
            }
View Full Code Here

Examples of com.dbxml.db.core.indexer.IndexQuery

               Set stopWords = fidx.getStopWords();
               if ( stopWords != null && stopWords.contains(value) )
                  return null;
            }

            IndexQuery idxQry = new IndexQuery(pattern, node.operator, new Value(node.value));
            IndexMatch[] matches = idx.queryMatches(tx, idxQry);
            return QueryEngine.getUniqueKeys(matches);
         }
         else
            throw new ProcessingException("No FullText Index to support pattern '"+node.name+"'");
View Full Code Here

Examples of com.thinkaurelius.titan.diskstorage.indexing.IndexQuery

                    if (entry.getValue().contains(bestIndex)) {
                        matchingCond.add(entry.getKey());
                        conditer.remove();
                    }
                }
                final IndexQuery subquery = serializer.getQuery(bestIndex, resultType, matchingCond, supportsOrder ? orders : OrderList.NO_ORDER);
                jointQuery.add(bestIndex, subquery);
                isSorted = isSorted && supportsOrder;
            }

            /* TODO: smarter optimization:
View Full Code Here

Examples of org.apache.xindice.core.indexer.IndexQuery

               IndexPattern pattern = new IndexPattern(symbols, ps, nsMap);

               XObject obj = (XObject)s;
               Value val1 = new Value(obj.str());

               IndexQuery iq = new IndexQuerySW(pattern, val1);
               return queryIndexes(nk, iq, ps, obj.getType());
            }
         }
         return null;
      }
View Full Code Here

Examples of org.apache.xindice.core.indexer.IndexQuery

         if ( nk.attribute && nk.name.indexOf('@') == -1 )
            ps = owner+"@"+nk.name;
         else
            ps = nk.name;

         IndexQuery iq;
         IndexPattern pattern = new IndexPattern(symbols, ps, nsMap);
         String value = obj.str();

         switch ( op ) {
            case IndexQuery.NEQ: iq = new IndexQueryNEQ(pattern, value); break;
View Full Code Here

Examples of org.apache.xindice.core.indexer.IndexQuery

          IndexPattern pattern = new IndexPattern(symbols, ps, nsMap);

          XObject obj = (XObject) s;
          Value val1 = new Value(obj.str());

          IndexQuery iq = new IndexQuerySW(pattern, val1);
          return queryIndexes(nk, iq, ps, obj.getType());
        }
      }
      return null;
    }
View Full Code Here

Examples of org.apache.xindice.core.indexer.IndexQuery

      else
      {
        ps = nk.name;
      }

      IndexQuery iq;
      IndexPattern pattern = new IndexPattern(symbols, ps, nsMap);
      String value = obj.str();

      switch (op)
      {
View Full Code Here

Examples of org.apache.xindice.core.indexer.IndexQuery

                    IndexPattern pattern = new IndexPattern(symbols, ps, nsMap);

                    XObject obj = (XObject) s;
                    Value val1 = new Value(obj.str());

                    IndexQuery iq = new IndexQuerySW(pattern, val1);
                    return queryIndexes(nk, iq, ps, obj.getType());
                }
            }
            return null;
        }
View Full Code Here

Examples of org.apache.xindice.core.indexer.IndexQuery

                ps = owner + "@" + nk.name;
            } else {
                ps = nk.name;
            }

            IndexQuery iq;
            IndexPattern pattern = new IndexPattern(symbols, ps, nsMap);
            String value = obj.str();

            switch (op) {
                case IndexQuery.NEQ:
View Full Code Here

Examples of org.exist.storage.btree.IndexQuery

        // for each document id range, scan the index to find matches
        for (final Range range : ranges) {
            final byte[] fromKey = computeKey(type, qname, range.start);
            final byte[] toKey = computeKey(type, qname, range.end + 1);
            final IndexQuery query = new IndexQuery(IndexQuery.RANGE, new Value(fromKey), new Value(toKey));
            try {
                lock.acquire(Lock.READ_LOCK);
                index.btree.query(query, callback);
            } catch (final LockException e) {
                NativeStructuralIndex.LOG.warn("Lock problem while searching structural index: " + e.getMessage(), e);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.