Examples of IndexMatch


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

      final IndexPattern pattern = query.getPattern();

      try {
         query(tx, query, new BTreeCallback() {
            public void indexInfo(Value value, Value extra) {
               results.add(new IndexMatch(new Key(value), pattern));
            }
         });
      }
      catch ( DBException d ) {
         throw d;
View Full Code Here

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

      int pos = ByteArray.readInt(b, l+1);
      int elemID = ByteArray.readInt(b, l+5);
      int attrID = ByteArray.readInt(b, l+9);

      return new IndexMatch(key, pos, elemID, attrID);
   }
View Full Code Here

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

      try {
         query(tx, query, new BTreeCallback() {
            public void indexInfo(Value value, Value extra) {
               try {
                  IndexMatch match = getIndexMatch(extra);
                  if ( !wildcard )
                     results.add(match);
                  else {
                     IndexPattern pt = new IndexPattern(symbols, match.getElement(), match.getAttribute());
                     if ( pt.getMatchLevel(query.getPattern()) > 0 )
                        results.add(match);
                  }
               }
               catch ( Exception e ) {
View Full Code Here

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

      int pos = ByteArray.readInt(b, l+1);
      int elemID = ByteArray.readInt(b, l+5);
      int attrID = ByteArray.readInt(b, l+9);

      return new IndexMatch(key, pos, elemID, attrID);
   }
View Full Code Here

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

      try {
         query(tx, query, new BTreeCallback() {
            public void indexInfo(Value value, Value extra) {
               try {
                  IndexMatch match = getIndexMatch(extra);
                  if ( !wildcard )
                     results.add(match);
                  else {
                     IndexPattern pt = new IndexPattern(symbols, match.getElement(), match.getAttribute());
                     if ( pt.getMatchLevel(query.getPattern()) > 0 )
                        results.add(match);
                  }
               }
               catch ( Exception e ) {
View Full Code Here

Examples of xbird.storage.indexer.IndexMatch

                final Pair<DbCollection, String> pair = itor.next();
                final DbCollection col = pair.getFirst();
                final String docName = pair.getSecond();
                final File idxFile = getIndexFile(col, docName);
                BTreeIndexer indexer = new BTreeIndexer(idxFile);
                final IndexMatch matched;
                try {
                    matched = indexer.find(idxCond);
                } catch (DbException e) {
                    throw new XQRTException("failed to query index: " + idxFile.getAbsolutePath(), e);
                }
                // TODO REVIEWME sort really required?
                final long[] ptrs = filter(matched.getMatchedUnsorted(), docName, idxFile);
                final int matchCounts = ptrs.length;
                if(LOG.isInfoEnabled()) {
                    LOG.info("Index scan done. matched: " + matched.countMatched() + ", filtered: "
                            + matchCounts);
                }
                if(matchCounts > 0) {
                    final IDocumentTable doctbl;
                    try {
View Full Code Here

Examples of xbird.storage.indexer.IndexMatch

            for(Pair<DbCollection, String> pair : lst) {
                final DbCollection col = pair.getFirst();
                final String docName = pair.getSecond();
                final File idxFile = getIndexFile(col, docName);
                BTreeIndexer indexer = new BTreeIndexer(idxFile);
                final IndexMatch matched;
                try {
                    matched = indexer.find(idxCond);
                } catch (DbException e) {
                    throw new XQRTException("failed to query index: " + idxFile.getAbsolutePath(), e);
                }
                final long[] ptrs = filter(matched.getMatchedUnsorted(), docName, idxFile);
                final int matchCounts = ptrs.length;
                if(LOG.isInfoEnabled()) {
                    LOG.info("Index scan done. matched: " + matched.countMatched() + ", filtered: "
                            + matchCounts);
                }
                return matchCounts;
            }
            return 0;
View Full Code Here

Examples of xbird.storage.indexer.IndexMatch

                final Pair<DbCollection, String> pair = itor.next();
                final DbCollection col = pair.getFirst();
                final String docName = pair.getSecond();
                final File idxFile = getIndexFile(col, docName);
                BTreeIndexer indexer = new BTreeIndexer(idxFile);
                final IndexMatch matched;
                try {
                    matched = indexer.find(idxCond);
                } catch (DbException e) {
                    throw new XQRTException("failed to query index: " + idxFile.getAbsolutePath(), e);
                }
                // TODO REVIEWME sort really required?
                final long[] ptrs = filter(matched.getMatchedUnsorted(), docName, idxFile);
                final int matchCounts = ptrs.length;
                if(LOG.isInfoEnabled()) {
                    LOG.info("Index scan done. matched: " + matched.countMatched() + ", filtered: "
                            + matchCounts);
                }
                if(matchCounts > 0) {
                    final IDocumentTable doctbl;
                    try {
View Full Code Here

Examples of xbird.storage.indexer.IndexMatch

            for(Pair<DbCollection, String> pair : lst) {
                final DbCollection col = pair.getFirst();
                final String docName = pair.getSecond();
                final File idxFile = getIndexFile(col, docName);
                BTreeIndexer indexer = new BTreeIndexer(idxFile);
                final IndexMatch matched;
                try {
                    matched = indexer.find(idxCond);
                } catch (DbException e) {
                    throw new XQRTException("failed to query index: " + idxFile.getAbsolutePath(), e);
                }
                final long[] ptrs = filter(matched.getMatchedUnsorted(), docName, idxFile);
                final int matchCounts = ptrs.length;
                if(LOG.isInfoEnabled()) {
                    LOG.info("Index scan done. matched: " + matched.countMatched() + ", filtered: "
                            + matchCounts);
                }
                return matchCounts;
            }
            return 0;
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.