Examples of scanIndex()


Examples of org.exist.indexing.IndexWorker.scanIndex()

            final Map<String, Object> hints = new HashMap<String, Object>();
            if (indexWorker instanceof OrderedValuesIndex)
              {hints.put(OrderedValuesIndex.START_VALUE, args[1]);}
            else
              {logger.warn(indexWorker.getClass().getName() + " isn't an instance of org.exist.indexing.OrderedIndexWorker. Start value '" + args[1] + "' ignored." );}
            final Occurrences[] occur = indexWorker.scanIndex(context, docs, nodes, hints);
            if (occur.length == 0)
              {result= Sequence.EMPTY_SEQUENCE;}
            else
              {result = new IntegerValue(occur[0].getOccurrences());}
          } else {
View Full Code Here

Examples of org.exist.indexing.IndexWorker.scanIndex()

            final Map<String, Object> hints = new HashMap<String, Object>();
            if (indexWorker instanceof OrderedValuesIndex)
              {hints.put(OrderedValuesIndex.START_VALUE, args[1]);}
            else
              {logger.warn(indexWorker.getClass().getName() + " isn't an instance of org.exist.indexing.OrderedIndexWorker. Start value '" + args[1] + "' ignored." );}
            final Occurrences[] occur = indexWorker.scanIndex(context, docs, nodes, hints);
            if (occur.length == 0)
              {result= Sequence.EMPTY_SEQUENCE;}
            else
              {result = new IntegerValue(occur[0].getDocuments());}
          } else {
View Full Code Here

Examples of org.exist.indexing.IndexWorker.scanIndex()

                    final QNameValue qv = (QNameValue) i.nextItem();
                    qnameList.add(qv.getQName());
                }
                hints.put(QNamedKeysIndex.QNAMES_KEY, qnameList);
            }
          final Occurrences[] occur = indexWorker.scanIndex(context, docs, nodes, hints);
          //TODO : add an extra argument to pass the END_VALUE ?
          final int len = (max != -1 && occur.length > max ? max : occur.length);
          final Sequence params[] = new Sequence[2];
          ValueSequence data = new ValueSequence();
          for (int j = 0; j < len; j++) {
View Full Code Here

Examples of org.exist.indexing.IndexWorker.scanIndex()

            final Map options = new HashMap();
            options.put(OrderedValuesIndex.START_VALUE, "");

            Occurrences[] occurrences =
                    indexWorker.scanIndex(context, docs, null, options);
            List<String> list = new ArrayList<String>();
            for (int i = 0; i < occurrences.length; i++) {
                list.add(occurrences[i].getTerm().toString());
            }
            words = new String[list.size()];
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.