Package com.sleepycat.je

Examples of com.sleepycat.je.BtreeStats


            /*
             * Called first time w/ FAST_STATS so just give them an
             * empty one.
             */
            stats = new BtreeStats();
        }

        if (!config.getFast()) {
            if (tree == null) {
                return new BtreeStats();
            }

            PrintStream out = config.getShowProgressStream();
            if (out == null) {
                out = System.err;
View Full Code Here


        return ok;
    }

    /* @return the right kind of stats object for this database. */
    public DatabaseStats getEmptyStats() {
        return new BtreeStats();
    }
View Full Code Here

            /*
             * Called first time w/ FAST_STATS so just give them an
             * empty one.
             */
            stats = new BtreeStats();
        }

        if (!config.getFast()) {
            if (tree == null) {
                return new BtreeStats();
            }

            PrintStream out = config.getShowProgressStream();
            if (out == null) {
                out = System.err;
View Full Code Here

        return ok;
    }

    /* @return the right kind of stats object for this database. */
    public DatabaseStats getEmptyStats() {
        return new BtreeStats();
    }
View Full Code Here

  int getDuplicateTreeMaxDepth() {
      return duplicateTreeMaxDepth;
  }

  private void copyToStats(DatabaseStats stats) {
            BtreeStats bStats = (BtreeStats) stats;
      bStats.setInternalNodeCount(getINNodeIdsSeen().size());
      bStats.setBottomInternalNodeCount
    (getBINNodeIdsSeen().size());
      bStats.setDuplicateInternalNodeCount
    (getDINNodeIdsSeen().size());
      bStats.setDuplicateBottomInternalNodeCount
    (getDBINNodeIdsSeen().size());
      bStats.setLeafNodeCount(getLNCount());
      bStats.setDeletedLeafNodeCount(getDeletedLNCount());
      bStats.setDupCountLeafNodeCount
    (getDupCountLNCount().size());
      bStats.setMainTreeMaxDepth(getMainTreeMaxDepth());
      bStats.setDuplicateTreeMaxDepth(getDuplicateTreeMaxDepth());
      bStats.setINsByLevel(getINsByLevel());
      bStats.setBINsByLevel(getBINsByLevel());
      bStats.setDINsByLevel(getDINsByLevel());
      bStats.setDBINsByLevel(getDBINsByLevel());
  }
View Full Code Here

         * Note that verify will attempt to continue past errors, so
         * assertTrue on the status return.
         */
        assertTrue(env.verify(new VerifyConfig(), System.err));
  DatabaseStats stats = db.verify(new VerifyConfig());
  BtreeStats btStats = (BtreeStats) stats;

  assertTrue(btStats.getInternalNodeCount() <
       btStats.getBottomInternalNodeCount());
  assertTrue(btStats.getBottomInternalNodeCount() <
       btStats.getLeafNodeCount() +
       btStats.getDeletedLeafNodeCount());
  assertTrue(btStats.getLeafNodeCount() +
       btStats.getDeletedLeafNodeCount() ==
       N_KEYS);
        txn.operationEnd();

        /* Now intentionally create LogFileNotFoundExceptions */
        /*
 
View Full Code Here

            /*
             * Called first time w/ FAST_STATS so just give them an
             * empty one.
             */
            stats = new BtreeStats();
        }

        if (!config.getFast()) {
            if (tree == null) {
                return new BtreeStats();
            }

            PrintStream out = config.getShowProgressStream();
            if (out == null) {
                out = System.err;
View Full Code Here

        return ok;
    }

    /* @return the right kind of stats object for this database. */
    public DatabaseStats getEmptyStats() {
        return new BtreeStats();
    }
View Full Code Here

  int getDuplicateTreeMaxDepth() {
      return duplicateTreeMaxDepth;
  }

  private void copyToStats(DatabaseStats stats) {
            BtreeStats bStats = (BtreeStats) stats;
      bStats.setInternalNodeCount(getINNodeIdsSeen().size());
      bStats.setBottomInternalNodeCount
    (getBINNodeIdsSeen().size());
      bStats.setDuplicateInternalNodeCount
    (getDINNodeIdsSeen().size());
      bStats.setDuplicateBottomInternalNodeCount
    (getDBINNodeIdsSeen().size());
      bStats.setLeafNodeCount(getLNCount());
      bStats.setDeletedLeafNodeCount(getDeletedLNCount());
      bStats.setDupCountLeafNodeCount
    (getDupCountLNCount().size());
      bStats.setMainTreeMaxDepth(getMainTreeMaxDepth());
      bStats.setDuplicateTreeMaxDepth(getDuplicateTreeMaxDepth());
      bStats.setINsByLevel(getINsByLevel());
      bStats.setBINsByLevel(getBINsByLevel());
      bStats.setDINsByLevel(getDINsByLevel());
      bStats.setDBINsByLevel(getDBINsByLevel());
  }
View Full Code Here

            /*
             * Called first time w/ FAST_STATS so just give them an
             * empty one.
             */
            stats = new BtreeStats();
        }

        if (!config.getFast()) {
            if (tree == null) {
                return new BtreeStats();
            }

            PrintStream out = config.getShowProgressStream();
            if (out == null) {
                out = System.err;
View Full Code Here

TOP

Related Classes of com.sleepycat.je.BtreeStats

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.