mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-09 14:35:04 +00:00
Java Api: remove unused private static class PartialField from SearchSourceBuilder
Partial fields have been removed from master a while ago, this is a leftover.
This commit is contained in:
parent
a202c2a434
commit
eb44e950d4
@ -885,34 +885,4 @@ public class SearchSourceBuilder implements ToXContent {
|
||||
return params;
|
||||
}
|
||||
}
|
||||
|
||||
private static class PartialField {
|
||||
private final String name;
|
||||
private final String[] includes;
|
||||
private final String[] excludes;
|
||||
|
||||
private PartialField(String name, String[] includes, String[] excludes) {
|
||||
this.name = name;
|
||||
this.includes = includes;
|
||||
this.excludes = excludes;
|
||||
}
|
||||
|
||||
private PartialField(String name, String include, String exclude) {
|
||||
this.name = name;
|
||||
this.includes = include == null ? null : new String[]{include};
|
||||
this.excludes = exclude == null ? null : new String[]{exclude};
|
||||
}
|
||||
|
||||
public String name() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public String[] includes() {
|
||||
return includes;
|
||||
}
|
||||
|
||||
public String[] excludes() {
|
||||
return excludes;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user