public DB<K, V> create() {
        if (serializer == null) {
            this.serializer = new JsonStoreSerializer();
        }
        if (storeConfig.getDbPath() == null) {
            storeConfig.setDbPath(new File(Constants.USER_HOME));
        }

        storeConfig.setDataPath(new File(storeConfig.getDbPath(), "data"));
        storeConfig.setLogPath(new File(storeConfig.getDbPath(), "logs"));
        storeConfig.setIndexPath(new File(storeConfig.getDbPath(), "index"));

        return new DBImpl<K, V>(serializer, storeConfig);
    }
@author Robert HG (254963746@qq.com) on 12/15/15.
lts-core/src/main/java/com/github/ltsopensource/kv/DBBuilder.java