Merge pull request #17367 from areek/cleanup/remove_dead_code
Remove dead code
This commit is contained in:
commit
a763599df7
|
@ -927,82 +927,6 @@ public abstract class Engine implements Closeable {
|
|||
}
|
||||
}
|
||||
|
||||
public static class DeleteByQuery {
|
||||
private final Query query;
|
||||
private final BytesReference source;
|
||||
private final String[] filteringAliases;
|
||||
private final Query aliasFilter;
|
||||
private final String[] types;
|
||||
private final BitSetProducer parentFilter;
|
||||
private final Operation.Origin origin;
|
||||
|
||||
private final long startTime;
|
||||
private long endTime;
|
||||
|
||||
public DeleteByQuery(Query query, BytesReference source, @Nullable String[] filteringAliases, @Nullable Query aliasFilter, BitSetProducer parentFilter, Operation.Origin origin, long startTime, String... types) {
|
||||
this.query = query;
|
||||
this.source = source;
|
||||
this.types = types;
|
||||
this.filteringAliases = filteringAliases;
|
||||
this.aliasFilter = aliasFilter;
|
||||
this.parentFilter = parentFilter;
|
||||
this.startTime = startTime;
|
||||
this.origin = origin;
|
||||
}
|
||||
|
||||
public Query query() {
|
||||
return this.query;
|
||||
}
|
||||
|
||||
public BytesReference source() {
|
||||
return this.source;
|
||||
}
|
||||
|
||||
public String[] types() {
|
||||
return this.types;
|
||||
}
|
||||
|
||||
public String[] filteringAliases() {
|
||||
return filteringAliases;
|
||||
}
|
||||
|
||||
public Query aliasFilter() {
|
||||
return aliasFilter;
|
||||
}
|
||||
|
||||
public boolean nested() {
|
||||
return parentFilter != null;
|
||||
}
|
||||
|
||||
public BitSetProducer parentFilter() {
|
||||
return parentFilter;
|
||||
}
|
||||
|
||||
public Operation.Origin origin() {
|
||||
return this.origin;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns operation start time in nanoseconds.
|
||||
*/
|
||||
public long startTime() {
|
||||
return this.startTime;
|
||||
}
|
||||
|
||||
public DeleteByQuery endTime(long endTime) {
|
||||
this.endTime = endTime;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns operation end time in nanoseconds.
|
||||
*/
|
||||
public long endTime() {
|
||||
return this.endTime;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public static class Get {
|
||||
private final boolean realtime;
|
||||
private final Term uid;
|
||||
|
|
Loading…
Reference in New Issue