add getTerms for uid filter

This commit is contained in:
Shay Banon 2012-06-18 15:04:49 +02:00
parent 0c7690d105
commit 0f47518752
1 changed files with 4 additions and 0 deletions

View File

@ -57,6 +57,10 @@ public class UidFilter extends Filter {
}
}
public Term[] getTerms() {
return this.uids;
}
// TODO Optimizations
// - If we have a single id, we can create a SingleIdDocIdSet to save on mem
// - We can use sorted int array DocIdSet to reserve memory compared to OpenBitSet in some cases