|
|
@@ -120,7 +120,7 @@ public class IQueryMapTree<V> extends IQueryMapAbstract<V> {
|
|
|
|
|
|
@Override
|
|
|
public IQuery<V> find() {
|
|
|
- return new TreeQuery();
|
|
|
+ return new IndexedQuery();
|
|
|
}
|
|
|
|
|
|
@SuppressWarnings("unchecked")
|
|
|
@@ -193,15 +193,15 @@ public class IQueryMapTree<V> extends IQueryMapAbstract<V> {
|
|
|
}
|
|
|
|
|
|
|
|
|
- private final class TreeQuery extends IQueryAbstract<V> {
|
|
|
+ private final class IndexedQuery extends IQueryAbstract<V> {
|
|
|
|
|
|
private final List<Supplier<Collection<V>>> selectors;
|
|
|
|
|
|
- public TreeQuery() {
|
|
|
+ public IndexedQuery() {
|
|
|
this.selectors = Collections.emptyList();
|
|
|
}
|
|
|
|
|
|
- public TreeQuery(TreeQuery query, Supplier<Collection<V>> selector) {
|
|
|
+ public IndexedQuery(IndexedQuery query, Supplier<Collection<V>> selector) {
|
|
|
this.selectors = new ArrayList<>(query.selectors.size()+1);
|
|
|
this.selectors.addAll(query.selectors);
|
|
|
this.selectors.add(selector);
|
|
|
@@ -279,17 +279,17 @@ public class IQueryMapTree<V> extends IQueryMapAbstract<V> {
|
|
|
|
|
|
private <T> IQuery<V> addFilter(MultiSet<V> ci, boolean nullable, Supplier<Collection<V>> f) {
|
|
|
if(nullable) {
|
|
|
- return new TreeQuery(this, () -> merge(f.get(), ci.getAll(null)));
|
|
|
+ return new IndexedQuery(this, () -> merge(f.get(), ci.getAll(null)));
|
|
|
} else {
|
|
|
- return new TreeQuery(this, f);
|
|
|
+ return new IndexedQuery(this, f);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
private <T> IQuery<V> addFilter(MultiMap<Object, V> mi, boolean nullable, Supplier<Collection<V>> f) {
|
|
|
if(nullable) {
|
|
|
- return new TreeQuery(this, () -> merge(f.get(), mi.getAll(null)));
|
|
|
+ return new IndexedQuery(this, () -> merge(f.get(), mi.getAll(null)));
|
|
|
} else {
|
|
|
- return new TreeQuery(this, f);
|
|
|
+ return new IndexedQuery(this, f);
|
|
|
}
|
|
|
}
|
|
|
|