Search in sources :

Example 1 with MasterNodeRequest

use of org.elasticsearch.action.support.master.MasterNodeRequest in project crate by crate.

the class CreateTableRequest method writeTo.

@Override
public void writeTo(StreamOutput out) throws IOException {
    super.writeTo(out);
    boolean isIndexRequest = createIndexRequest != null;
    out.writeBoolean(isIndexRequest);
    MasterNodeRequest request = isIndexRequest ? createIndexRequest : putIndexTemplateRequest;
    request.writeTo(out);
}
Also used : MasterNodeRequest(org.elasticsearch.action.support.master.MasterNodeRequest)

Aggregations

MasterNodeRequest (org.elasticsearch.action.support.master.MasterNodeRequest)1