Package org.apache.xindice.core.indexer

Examples of org.apache.xindice.core.indexer.Indexer.queryMatches()


               else if ( name != null ) {
                  // Try to use a NameIndex to resolve the path component
                  IndexPattern pattern = new IndexPattern(symbols, name, nsMap);
                  Indexer idx = context.getIndexManager().getBestIndexer(Indexer.STYLE_NODENAME, pattern);
                  if ( idx != null ) {
                     IndexMatch[] matches = idx.queryMatches(new IndexQueryANY(pattern));
                     Key[] keys = QueryEngine.getUniqueKeys(matches);
                     ks.add(keys);
                  }
               }
            }
View Full Code Here


            IndexPattern pattern = iq.getPattern();

            Indexer idx = context.getIndexManager().getBestIndexer(Indexer.STYLE_NODEVALUE, pattern);
            if ( idx != null )
               return new NamedKeys(nk.name, nk.attribute, QueryEngine.getUniqueKeys(idx.queryMatches(iq)));
            else if ( autoIndex ) {
               // TODO: This has to *not* be hardcoded
               Element e = new DocumentImpl().createElement("index");
               e.setAttribute("class", "org.apache.xindice.core.indexer.ValueIndexer");
               e.setAttribute("name", "xp_"+ps);
View Full Code Here

              // Try to use a NameIndex to resolve the path component
              IndexPattern pattern = new IndexPattern(symbols, name, nsMap);
              Indexer idx = context.getIndexManager().getBestIndexer(Indexer.STYLE_NODENAME, pattern);
              if (idx != null)
              {
                IndexMatch[] matches = idx.queryMatches(new IndexQueryANY(pattern));
                Key[] keys = QueryEngine.getUniqueKeys(matches);
                ks.add(keys);
              }
            }
          }
View Full Code Here

        IndexPattern pattern = iq.getPattern();

        Indexer idx = context.getIndexManager().getBestIndexer(Indexer.STYLE_NODEVALUE, pattern);
        if (idx != null)
        {
          return new NamedKeys(nk.name, nk.attribute, QueryEngine.getUniqueKeys(idx.queryMatches(iq)));
        }
        else if (autoIndex)
        {
          // TODO: This has to *not* be hardcoded
          Element e = new DocumentImpl().createElement("index");
View Full Code Here

                        } else {
                            // Try to use a NameIndex to resolve the path component
                            IndexPattern pattern = new IndexPattern(symbols, name, nsMap);
                            Indexer idx = context.getIndexManager().getBestIndexer(Indexer.STYLE_NODENAME, pattern);
                            if (idx != null) {
                                IndexMatch[] matches = idx.queryMatches(new IndexQueryANY(pattern));
                                Key[] keys = QueryEngine.getUniqueKeys(matches);
                                ks.add(keys);
                            }
                        }
                    }
View Full Code Here

                IndexPattern pattern = iq.getPattern();

                Indexer idx = context.getIndexManager().getBestIndexer(Indexer.STYLE_NODEVALUE, pattern);
        if (idx != null) {
                    return new NamedKeys(nk.name, nk.attribute, QueryEngine.getUniqueKeys(idx.queryMatches(iq)));
                } else if (autoIndex) {
                    // TODO: This has to *not* be hardcoded
                    Element e = new DocumentImpl().createElement("index");
                    e.setAttribute("class", "org.apache.xindice.core.indexer.ValueIndexer");
                    e.setAttribute("name", "xp_" + ps);
View Full Code Here

                        } else {
                            // Try to use a NameIndex to resolve the path component
                            IndexPattern pattern = new IndexPattern(symbols, name, nsMap);
                            Indexer idx = context.getIndexManager().getBestIndexer(Indexer.STYLE_NODENAME, pattern);
                            if (idx != null) {
                                IndexMatch[] matches = idx.queryMatches(new IndexQueryANY(pattern));
                                Key[] keys = QueryEngine.getUniqueKeys(matches);
                                ks.add(keys);
                            }
                        }
                    }
View Full Code Here

                IndexPattern pattern = iq.getPattern();

                Indexer idx = context.getIndexManager().getBestIndexer(Indexer.STYLE_NODEVALUE, pattern);
        if (idx != null) {
                    return new NamedKeys(nk.name, nk.attribute, QueryEngine.getUniqueKeys(idx.queryMatches(iq)));
                } else if (autoIndex) {
                    // TODO: This has to *not* be hardcoded
                    Element e = new DocumentImpl().createElement("index");
                    e.setAttribute("class", "org.apache.xindice.core.indexer.ValueIndexer");
                    e.setAttribute("name", "xp_" + ps);
View Full Code Here

                        } else {
                            // Try to use a NameIndex to resolve the path component
                            IndexPattern pattern = new IndexPattern(symbols, name, nsMap);
                            Indexer idx = context.getIndexManager().getBestIndexer(Indexer.STYLE_NODENAME, pattern);
                            if (idx != null) {
                                IndexMatch[] matches = idx.queryMatches(new IndexQueryANY(pattern));
                                Key[] keys = QueryEngine.getUniqueKeys(matches);
                                ks.add(keys);
                            }
                        }
                    }
View Full Code Here

                IndexPattern pattern = iq.getPattern();

                Indexer idx = context.getIndexManager().getBestIndexer(Indexer.STYLE_NODEVALUE, pattern);
        if (idx != null) {
                    return new NamedKeys(nk.name, nk.attribute, QueryEngine.getUniqueKeys(idx.queryMatches(iq)));
                } else if (autoIndex) {
                    // TODO: This has to *not* be hardcoded
                    Element e = new DocumentImpl().createElement("index");
                    e.setAttribute("class", "org.apache.xindice.core.indexer.ValueIndexer");
                    e.setAttribute("name", "xp_" + ps);
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.