Package com.mozilla.grouperfish.services.api

Examples of com.mozilla.grouperfish.services.api.Index


        this.indexes = index;
    }

    @Override
    public Task handle(final Task task) throws Fail {
        Index index = indexes.index(task.namespace().bucket(Type.DOCUMENT));
        Assert.nonNull(task);
        try {
            final TsvJsonWriter tsvWriter = new TsvJsonWriter(writer(fs, task, inputFilename(task)));
            for (final Document doc : index.find(task.query())) tsvWriter.write(doc);
            tsvWriter.close();

            final Writer parametersWriter = writer(fs, task, parametersFilename(task));
            parametersWriter.write(task.transform().parametersJson());
            parametersWriter.close();
View Full Code Here


    }

    /** Run the configured transform over the query results. */
    public void schedule(final Scope ns, final Query query, final TransformConfig transform) {
        Assert.nonNull(query, transform);
        final Index index = indexes.index(ns.bucket(Type.DOCUMENT));
        for (final Query concreteQuery : index.resolve(query)) {
            schedule(new Task(ns, concreteQuery, transform));
        }
    }
View Full Code Here

TOP

Related Classes of com.mozilla.grouperfish.services.api.Index

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.