Package org.thrudb.thrudoc.tokyocabinet

Examples of org.thrudb.thrudoc.tokyocabinet.TokyoCabinetDB


      String dbFileName = docRoot+File.separatorChar+bucketName+".tcb";
      File   dbFile     = new File(dbFileName);
     
      //open this index if it already exists
      if(dbFile.isFile() && dbFile.canWrite()){
        bucketMap.put(bucketName, new TokyoCabinetDB(docRoot,bucketName));
        return true;
      }else{
        return false;
      }
    }
View Full Code Here


      TException {
   
    if(bucketMap.containsKey(bucket))
      return;
       
    bucketMap.put(bucket, new TokyoCabinetDB(docRoot,bucket));
   
  }
View Full Code Here

   
    if(!isValidBucket(bucket))
      this.create_bucket(bucket);
   
   
    TokyoCabinetDB db = bucketMap.get(bucket);
   
    if(db == null)
      return; //this can't happen
   
    db.erase();
   
    bucketMap.remove(bucket);
  }
View Full Code Here

TOP

Related Classes of org.thrudb.thrudoc.tokyocabinet.TokyoCabinetDB

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.