remove validation methods in client (#41754)
remove validation methods in client (#41754)
This commit is contained in:
parent
33b4032fab
commit
0d9797847a
|
@ -74,7 +74,4 @@ public class QueryConfig implements ToXContentObject {
|
|||
return Objects.equals(this.query, that.query);
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return this.query != null;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -74,7 +74,4 @@ public class AggregationConfig implements ToXContentObject {
|
|||
return Objects.equals(this.aggregations, that.aggregations);
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return this.aggregations != null;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue