Package com.sleepycat.je.tree

Examples of com.sleepycat.je.tree.Key


                    (dclLockResult, dupKey, locker, false /*increment*/);
                dupRoot.releaseLatch();
                dupRootIsLatched = false;
                dupRoot = null;

                locker.addDeleteInfo(dupBin, new Key(lnKey));
            } else {
                locker.addDeleteInfo(bin, new Key(lnKey));
            }

            trace(Level.FINER, TRACE_DELETE, targetBin,
                  ln, targetIndex, oldLsn, newLsn);
        } finally {
View Full Code Here


         * queue.
         */
        if (targetBin.isEntryPendingDeleted(targetIndex)) {
            EnvironmentImpl envImpl = databaseImpl.getDbEnvironment();
            envImpl.addToCompressorQueue
                (targetBin, new Key(targetBin.getKey(targetIndex)), false);
        }

        /*
         * We don't need to fetch the LN if all these conditions are true:
         * 1. No locking is needed.
View Full Code Here

            /* mainKey is only used for dups. */
            byte[] mainKey = binRef.getKey();
            boolean isDup = (binRef.getData() != null);

            while (iter.hasNext()) {
                Key key = iter.next();

                /*
                 * Lookup the BIN for each deleted key, and compress that BIN
                 * separately.
                 */
                BIN splitBin = isDup ?
                    searchForBIN(db, mainKey, key.getKey()) :
                    searchForBIN(db, key.getKey(), null);
                if (splitBin != null) {
                    BINReference splitBinRef = splitBin.createReference();
                    splitBinRef.addDeletedKey(key);
                    compressBin(db, splitBin, splitBinRef, localTracker);
                }
View Full Code Here

                             * therefore no valid delete key. Don't compress.
                             */
                            if (deletedKey != null) {
                                db.getDbEnvironment().addToCompressorQueue
                                    (location.bin,
                                     new Key(deletedKey),
                                     false); // don't wakeup compressor
                            }
                        }
                    }
                } else {
View Full Code Here

                            byte[] deletedKey =
                                location.bin.containsDuplicates() ?
                                dupKey : mainKey;
                            db.getDbEnvironment().addToCompressorQueue
                                (location.bin,
                                 new Key(deletedKey),
                                 false); // don't wakeup compressor

                        } else {

                            /*
 
View Full Code Here

                         * therefore no valid delete key. Don't compress.
                         */
                        if (deletedKey != null) {
                            db.getDbEnvironment().addToCompressorQueue
                                (location.bin,
                                 new Key(deletedKey),
                                 false); // don't wakeup compressor
                        }
                    }

                } else {
View Full Code Here

                            byte[] deletedKey =
                                location.bin.containsDuplicates() ?
                                dupKey : mainKey;
          db.getDbEnvironment().addToCompressorQueue
        (location.bin,
                                 new Key(deletedKey),
                                 false); // don't wakeup compressor
                           
      } else {

          /*
 
View Full Code Here

TOP

Related Classes of com.sleepycat.je.tree.Key

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.