Package crate.elasticsearch.action.export

Examples of crate.elasticsearch.action.export.ExportRequest


        esSetup2.client().admin().cluster().prepareHealth().setWaitForGreenStatus().
            setWaitForNodes("2").setWaitForRelocatingShards(0).execute().actionGet();

        // Do export request
        String source = "{\"output_cmd\": \"cat\", \"fields\": [\"name\"]}";
        ExportRequest exportRequest = new ExportRequest();
        exportRequest.source(source);
        ExportResponse response = esSetup2.client().execute(
                ExportAction.INSTANCE, exportRequest).actionGet();

        // The two shard results are from different nodes and have no failures
        assertEquals(0, response.getFailedShards());
View Full Code Here


     * async callback and writes result in response member variable.
     *
     * @param source
     */
    private ExportResponse executeExportRequest(String source) {
        ExportRequest exportRequest = new ExportRequest();
        exportRequest.source(source);
        return esSetup.client().execute(ExportAction.INSTANCE, exportRequest).actionGet();
    }
View Full Code Here

TOP

Related Classes of crate.elasticsearch.action.export.ExportRequest

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.