Package kyotocabinet

Examples of kyotocabinet.DB


    private final static int BATCH_SIZE = 10000;
    private DB db;

    protected KyotoDataInterface(String name, String path, Class<T> objectClass, Combinator<T> combinator) {
        super(name, objectClass, combinator);
        db = new DB();
        File file = new File(new File(path), name + ".kcf");
        File parentDir = file.getParentFile();
        if (parentDir.isFile()) {
            throw new RuntimeException("Path " + parentDir.getAbsolutePath() + " is a file!");
        }
View Full Code Here


    }

    @Override
    public void doOpen() throws DataStoreFatalException {
        // create a kyoto cabinet backed queue
        db = new DB();

        // just leave comparison as LEXICAL, don't set it to anything else

        // try to open the database
        path = getDatabaseFile();
View Full Code Here

TOP

Related Classes of kyotocabinet.DB

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.