Package com.sleepycat.bdb

Examples of com.sleepycat.bdb.DataView


        env = new DbEnv(0);
        env.open(dir.getAbsolutePath(), envFlags, 0);
        Db db = new Db(env, 0);
        db.open(null, "test.db", null, Db.DB_BTREE, Db.DB_CREATE, 0);
        store = new DataStore(db, dataFormat, dataFormat, null);
        view = new DataView(store, null, dataBinding, dataBinding, null, true);
    }
View Full Code Here


     * @throws RuntimeExceptionWrapper if a {@link DbException} is thrown.
     */
    public StoredSortedMap(DataStore store, DataBinding keyBinding,
                           DataBinding valueBinding, boolean writeAllowed) {

        super(new DataView(store, null, keyBinding, valueBinding,
                           null, writeAllowed));
    }
View Full Code Here

     */
    public StoredSortedMap(DataStore store, DataBinding keyBinding,
                           EntityBinding valueEntityBinding,
                           boolean writeAllowed) {

        super(new DataView(store, null, keyBinding, null,
                           valueEntityBinding, writeAllowed));
    }
View Full Code Here

     * @throws RuntimeExceptionWrapper if a {@link DbException} is thrown.
     */
    public StoredSortedMap(DataIndex index, DataBinding keyBinding,
                           DataBinding valueBinding, boolean writeAllowed) {

        super(new DataView(null, index, keyBinding, valueBinding,
                           null, writeAllowed));
    }
View Full Code Here

     */
    public StoredSortedMap(DataIndex index, DataBinding keyBinding,
                           EntityBinding valueEntityBinding,
                           boolean writeAllowed) {

        super(new DataView(null, index, keyBinding, null,
                           valueEntityBinding, writeAllowed));
    }
View Full Code Here

     * @throws RuntimeExceptionWrapper if a {@link DbException} is thrown.
     */
    public StoredMap(DataStore store, DataBinding keyBinding,
                     DataBinding valueBinding, boolean writeAllowed) {

        super(new DataView(store, null, keyBinding, valueBinding,
                           null, writeAllowed));
    }
View Full Code Here

     * @throws RuntimeExceptionWrapper if a {@link DbException} is thrown.
     */
    public StoredMap(DataStore store, DataBinding keyBinding,
                     EntityBinding valueEntityBinding, boolean writeAllowed) {

        super(new DataView(store, null, keyBinding, null,
                           valueEntityBinding, writeAllowed));
    }
View Full Code Here

     * @throws RuntimeExceptionWrapper if a {@link DbException} is thrown.
     */
    public StoredMap(DataIndex index, DataBinding keyBinding,
                     DataBinding valueBinding, boolean writeAllowed) {

        super(new DataView(null, index, keyBinding, valueBinding,
                           null, writeAllowed));
    }
View Full Code Here

     * @throws RuntimeExceptionWrapper if a {@link DbException} is thrown.
     */
    public StoredMap(DataIndex index, DataBinding keyBinding,
                     EntityBinding valueEntityBinding, boolean writeAllowed) {

        super(new DataView(null, index, keyBinding, null,
                           valueEntityBinding, writeAllowed));
    }
View Full Code Here

    public Set keySet() {

        if (keySet == null) {
            synchronized (this) {
                if (keySet == null) {
                    DataView newView = view.keySetView();
                    if (isOrdered()) {
                        keySet = new StoredSortedKeySet(newView);
                    } else {
                        keySet = new StoredKeySet(newView);
                    }
View Full Code Here

TOP

Related Classes of com.sleepycat.bdb.DataView

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.