diff --git a/core/src/main/java/org/elasticsearch/index/engine/Engine.java b/core/src/main/java/org/elasticsearch/index/engine/Engine.java index c66073bd91f..5b6d27ce24f 100644 --- a/core/src/main/java/org/elasticsearch/index/engine/Engine.java +++ b/core/src/main/java/org/elasticsearch/index/engine/Engine.java @@ -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;