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

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

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

Filters content that is of, or not of given attachment type(s).

See Also:
Serialized Form

Constructor Summary
AttachmentTypeFilter(Set<Attachment.Type> attachmentTypes)
           
AttachmentTypeFilter(Set<Attachment.Type> attachmentTypes, boolean negate)
          Filter attachment according to given types.
 
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

AttachmentTypeFilter

public AttachmentTypeFilter(Set<Attachment.Type> attachmentTypes,
                            boolean negate)
Filter attachment according to given types.

Parameters:
negate - if true, will remove attachments of the given types. if false, filter will remove attachments not of the given types.

AttachmentTypeFilter

public AttachmentTypeFilter(Set<Attachment.Type> attachmentTypes)
See Also:
AttachmentTypeFilter(Set, 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-2012 Atlassian. All Rights Reserved.