remove validation methods in client (#41754)

remove validation methods in client (#41754)
This commit is contained in:
Hendrik Muhs 2019-05-02 20:06:32 +02:00
parent 33b4032fab
commit 0d9797847a
4 changed files with 0 additions and 14 deletions

View File

@ -74,7 +74,4 @@ public class QueryConfig implements ToXContentObject {
return Objects.equals(this.query, that.query);
}
public boolean isValid() {
return this.query != null;
}
}

View File

@ -74,7 +74,4 @@ public class AggregationConfig implements ToXContentObject {
return Objects.equals(this.aggregations, that.aggregations);
}
public boolean isValid() {
return this.aggregations != null;
}
}

View File

@ -138,10 +138,6 @@ public class GroupConfig implements ToXContentObject {
return groups;
}
public boolean isValid() {
return this.groups != null;
}
@Override
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {
builder.startObject();

View File

@ -97,10 +97,6 @@ public class PivotConfig implements ToXContentObject {
return Objects.hash(groups, aggregationConfig);
}
public boolean isValid() {
return groups.isValid() && aggregationConfig.isValid();
}
public static Builder builder() {
return new Builder();
}