Examples of Couch


Examples of com.github.rnewson.couchdb.lucene.couchdb.Couch

        this.ini = ini;
    }

    private void cleanup(final HttpServletRequest req,
                         final HttpServletResponse resp) throws IOException, JSONException {
        final Couch couch = getCouch(req);
        final Set<String> dbKeep = new HashSet<String>();
        final JSONArray databases = couch.getAllDatabases();
        for (int i = 0; i < databases.length(); i++) {
            final Database db = couch.getDatabase(databases.getString(i));
            final UUID uuid = db.getUuid();
            if (uuid == null) {
                continue;
            }
            dbKeep.add(uuid.toString());
View Full Code Here

Examples of com.github.rnewson.couchdb.lucene.couchdb.Couch

        final String sectionName = new PathParts(req).getKey();
        final Configuration section = ini.getSection(sectionName);
        if (!section.containsKey("url")) {
            throw new FileNotFoundException(sectionName + " is missing or has no url parameter.");
        }
        return new Couch(client, section.getString("url"));
    }
View Full Code Here

Examples of com.github.rnewson.couchdb.lucene.couchdb.Couch

        return result;
    }

    private DatabaseIndexer getIndexer(final HttpServletRequest req)
            throws IOException, JSONException {
        final Couch couch = getCouch(req);
        final Database database = couch.getDatabase(new PathParts(req)
                .getDatabaseName());
        return getIndexer(database);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.