Package crate.elasticsearch.action.reindex

Source Code of crate.elasticsearch.action.reindex.ReindexAction

package crate.elasticsearch.action.reindex;

import org.elasticsearch.action.Action;
import org.elasticsearch.client.Client;

import crate.elasticsearch.action.searchinto.SearchIntoRequest;
import crate.elasticsearch.action.searchinto.SearchIntoResponse;
import crate.elasticsearch.client.action.searchinto.SearchIntoRequestBuilder;

public class ReindexAction extends Action<SearchIntoRequest, SearchIntoResponse, SearchIntoRequestBuilder>{

    public static final ReindexAction INSTANCE = new ReindexAction();
    public static final String NAME = "el-crate-reindex";

    protected ReindexAction() {
        super(NAME);
    }

    @Override
    public SearchIntoRequestBuilder newRequestBuilder(Client client) {
        return new SearchIntoRequestBuilder(client);
    }

    @Override
    public SearchIntoResponse newResponse() {
        return new SearchIntoResponse();
    }

}
TOP

Related Classes of crate.elasticsearch.action.reindex.ReindexAction

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.