com.atlassian.confluence.search.lucene.filter
Class SpaceFilter

java.lang.Object
  extended by org.apache.lucene.search.Filter
      extended by com.atlassian.confluence.search.lucene.filter.SpaceFilter
All Implemented Interfaces:
Serializable

public class SpaceFilter
extends org.apache.lucene.search.Filter

Filters content that is in, or not in given space(s).

See Also:
Serialized Form

Constructor Summary
SpaceFilter(Collection<String> spaceKeys)
          Include only content in any of the given spaces.
SpaceFilter(Collection<String> spaceKeys, boolean negate)
          Filter content according to given spaces.
SpaceFilter(String spaceKey)
          Include only content that is in the given space
SpaceFilter(String spaceKey, boolean negate)
           
 
Method Summary
 BitSet bits(org.apache.lucene.index.IndexReader reader)
           
 
Methods inherited from class org.apache.lucene.search.Filter
getDocIdSet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpaceFilter

public SpaceFilter(Collection<String> spaceKeys,
                   boolean negate)
Filter content according to given spaces.

Parameters:
negate - if true, will remove content in the given spaces. if false, filter will remove content not in the given spaces.

SpaceFilter

public SpaceFilter(Collection<String> spaceKeys)
Include only content in any of the given spaces.


SpaceFilter

public SpaceFilter(String spaceKey)
Include only content that is in the given space


SpaceFilter

public SpaceFilter(String spaceKey,
                   boolean negate)
See Also:
SpaceFilter(Collection, boolean)
Method Detail

bits

public BitSet bits(org.apache.lucene.index.IndexReader reader)
            throws IOException
Overrides:
bits in class org.apache.lucene.search.Filter
Throws:
IOException


Copyright © 2003-2013 Atlassian. All Rights Reserved.