|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lucene.search.Filter
org.torweg.pulse.util.search.SitemapNodeRoleFilterFactory.SitemapNodeRoleFilter
public static class SitemapNodeRoleFilterFactory.SitemapNodeRoleFilter
The filter checking whether the filter's roles are part of the document roles.
| Constructor Summary | |
|---|---|
SitemapNodeRoleFilterFactory.SitemapNodeRoleFilter(java.util.Set<Role> roles)
creates a new filter for the given set of roles. |
|
| Method Summary | |
|---|---|
org.apache.lucene.search.DocIdSet |
getDocIdSet(org.apache.lucene.index.IndexReader reader)
does the actual filtering. |
| Methods inherited from class org.apache.lucene.search.Filter |
|---|
bits |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SitemapNodeRoleFilterFactory.SitemapNodeRoleFilter(java.util.Set<Role> roles)
roles - the roles| Method Detail |
|---|
public final org.apache.lucene.search.DocIdSet getDocIdSet(org.apache.lucene.index.IndexReader reader)
throws java.io.IOException
One bit set (A) collects all documents with roles set. Another bit set (B) collects all documents with a role whose id is contained in the filter's ids.
The result is computed as follows:
not(A) or B
So not(A) represents all documents without a role. Thus the
results are either documents without a role or with a role which is
in the filter's set of roles.
getDocIdSet in class org.apache.lucene.search.Filterreader - the index reader
java.io.IOException - on errors accessing the indexFilter.getDocIdSet(org.apache.lucene.index.IndexReader)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||