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);
}
Aggregations