Class FieldCacheDocIdSet


  • public abstract class FieldCacheDocIdSet
    extends DocIdSet
    Base class for DocIdSet to be used with FieldCache. The implementation of its iterator is very stupid and slow if the implementation of the matchDoc(int) method is not optimized, as iterators simply increment the document id until matchDoc(int) returns true. Because of this matchDoc(int) must be as fast as possible and in no case do any I/O.
    NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
    • Constructor Detail

      • FieldCacheDocIdSet

        public FieldCacheDocIdSet​(IndexReader reader)