Package com.sleepycat.je.dbi

Examples of com.sleepycat.je.dbi.RangeConstraint


            (twoPartKey1.getData(), keyBytes2,
             dbImpl.getBtreeComparator()) == 0;
    }

    private void setPrefixConstraint(final Cursor c, final byte[] keyBytes2) {
        c.setRangeConstraint(new RangeConstraint() {
            public boolean inBounds(byte[] checkKey) {
                return DupKeyData.compareMainKey
                    (checkKey, keyBytes2, dbImpl.getBtreeComparator()) == 0;
            }
        });
View Full Code Here


        });
    }

    private void setPrefixConstraint(final Cursor c,
                                     final DatabaseEntry key2) {
        c.setRangeConstraint(new RangeConstraint() {
            public boolean inBounds(byte[] checkKey) {
                return DupKeyData.compareMainKey
                    (checkKey, key2.getData(), key2.getOffset(),
                     key2.getSize(), dbImpl.getBtreeComparator()) == 0;
            }
View Full Code Here

TOP

Related Classes of com.sleepycat.je.dbi.RangeConstraint

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.