Package xbird.xquery

Examples of xbird.xquery.XQRTException


    @Override
    public Focus iterator() {
        try {
            _sorter.sort();
        } catch (XQueryException e) {
            throw new XQRTException(e);
        }
        KeyStrippingIterator itor = new KeyStrippingIterator(_items, _orderSpecs);
        return new Focus(this, itor, _dynEnv); // FIXME
    }
View Full Code Here


    @Override
    public boolean isEmpty() {
        try {
            _sorter.sort();
        } catch (XQueryException e) {
            throw new XQRTException(e);
        }
        return _items.isEmpty();
    }
View Full Code Here

                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 {
                        doctbl = DocumentTableLoader.load(col, docName, _dynEnv);
                    } catch (IOException e) {
                        throw new XQRTException("failed to load document '" + docName
                                + "' is the collection '" + col.getAbsolutePath() + '\'', e);
                    }
                    final PagingProfile profile = doctbl.getPagingProfile();
                    Strategy origStrategy = null;
                    if(profile != null) {
View Full Code Here

                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: "
View Full Code Here

        if(_model == null) {
            final IDocumentTable doctbl;
            try {
                doctbl = DocumentTableLoader.load(_col, _fileName, _dynEnv);
            } catch (IOException e) {
                throw new XQRTException("failed loading document: " + _fileName, e);
            }
            Profiler profiler = _dynEnv.getProfiler();
            if(profiler != null) {
                PagingProfile profile = doctbl.getPagingProfile();
                if(profile != null) {
View Full Code Here

TOP

Related Classes of xbird.xquery.XQRTException

Copyright © 2018 www.massapicom. 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.