Package no.priv.garshol.duke.databases

Examples of no.priv.garshol.duke.databases.AbstractBlockingDatabase


    if (!(database instanceof AbstractBlockingDatabase)) {
      System.out.println("ERR: Only blocking databases are supported.");
      System.exit(2);
    }

    AbstractBlockingDatabase db = (AbstractBlockingDatabase) database;
    for (KeyFunction func : db.getKeyFunctions()) {
      System.out.println("\n===== " + func);

      // count sizes
      Map<Integer, Counter> sizes = new HashMap();
      Map blocks = db.getBlocks(func);
      for (Object block : blocks.values()) {
        int size;
        if (block instanceof String[])
          size = ((String[]) block).length;
        else if (block instanceof MapDBBlockingDatabase.Block)
View Full Code Here

TOP

Related Classes of no.priv.garshol.duke.databases.AbstractBlockingDatabase

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.