public interface DocSet extends Accountable, Cloneable
DocSet
represents an unordered set of Lucene Document Ids.
WARNING: Any DocSet returned from SolrIndexSearcher should not be modified as it may have been retrieved from a cache and could be shared.
Modifier and Type | Method and Description |
---|---|
void |
add(int doc)
Deprecated.
|
void |
addAllTo(DocSet target)
Deprecated.
|
void |
addUnique(int doc)
Deprecated.
|
DocSet |
andNot(DocSet other)
Returns the documents in this set that are not in the other set.
|
int |
andNotSize(DocSet other)
Returns the number of documents in this set that are not in the other set.
|
DocSet |
clone() |
boolean |
exists(int docid)
Returns true if a document is in the DocSet.
|
Filter |
getTopFilter()
Returns a Filter for use in Lucene search methods, assuming this DocSet
was generated from the top-level MultiReader that the Lucene search
methods will be invoked with.
|
DocSet |
intersection(DocSet other)
Returns the intersection of this set with another set.
|
int |
intersectionSize(DocSet other)
Returns the number of documents of the intersection of this set with another set.
|
boolean |
intersects(DocSet other)
Returns true if these sets have any elements in common
|
DocIterator |
iterator()
Returns an iterator that may be used to iterate over all of the documents in the set.
|
int |
size()
Returns the number of documents in the set.
|
DocSet |
union(DocSet other)
Returns the union of this set with another set.
|
int |
unionSize(DocSet other)
Returns the number of documents of the union of this set with another set.
|
getChildResources, ramBytesUsed
static final DocSet EMPTY
@Deprecated void add(int doc)
SolrException
- if the implementation does not allow modificationsaddUnique(int)
@Deprecated void addUnique(int doc)
This method may be faster then add(doc)
in some
implementations provided the caller is certain of the precondition.
SolrException
- if the implementation does not allow modificationsadd(int)
int size()
boolean exists(int docid)
DocIterator iterator()
The order of the documents returned by this iterator is non-deterministic, and any scoring information is meaningless
DocSet intersection(DocSet other)
int intersectionSize(DocSet other)
boolean intersects(DocSet other)
DocSet union(DocSet other)
int unionSize(DocSet other)
DocSet andNot(DocSet other)
int andNotSize(DocSet other)
Filter getTopFilter()
@Deprecated void addAllTo(DocSet target)
DocSet clone()
Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.