Examples of DBException


Examples of xbird.storage.DbException

                    scanRange(leftmost, rightmost, query, callback);
                    break;
                }
            }
        } catch (IOException e) {
            throw new DbException(e);
        }
    }
View Full Code Here

Examples of xbird.storage.DbException

            if(node == null) {
                node = new BTreeNode(root, getPage(page), parent);
                try {
                    node.read();
                } catch (IOException e) {
                    throw new DbException("failed to read page#" + page, e);
                }
                if(LOG.isDebugEnabled()) {
                    LOG.debug("read node page#" + page + ", keys: " + node.keys.length);
                }
                _cache.put(page, node);
View Full Code Here

Examples of xbird.storage.DbException

            if(node == null) {
                node = new BTreeNode(root, getPage(page));
                try {
                    node.read();
                } catch (IOException e) {
                    throw new DbException("failed to read page#" + page, e);
                }
                if(LOG.isDebugEnabled()) {
                    LOG.debug("read node page#" + page + ", keys: " + node.keys.length);
                }
                _cache.put(page, node);
View Full Code Here

Examples of xbird.storage.DbException

                    if(node != null) {
                        node.write();
                    }
                }
            } catch (IOException ioe) {
                throw new DbException(ioe);
            }
        }
        if(clear) {
            _cache.clear();
        }
View Full Code Here

Examples of xbird.storage.DbException

        }

        /** find lest-most value which matches to the key */
        long findValue(Value serarchKey) throws DbException {
            if(serarchKey == null) {
                throw new DbException("Can't search on null Value");
            }
            int idx = searchLeftmostKey(keys, serarchKey, keys.length);
            switch(ph.getStatus()) {
                case BRANCH:
                    idx = idx < 0 ? -(idx + 1) : idx + 1;
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.