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

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

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


Constructor Summary
AttachmentTypeFilter(java.util.Set<Attachment.Type> attachmentTypes)
           
AttachmentTypeFilter(java.util.Set<Attachment.Type> attachmentTypes, boolean negate)
          Filter attachment according to given types.
 
Method Summary
 org.apache.lucene.search.DocIdSet getDocIdSet(org.apache.lucene.index.AtomicReaderContext context, org.apache.lucene.util.Bits acceptDocs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttachmentTypeFilter

public AttachmentTypeFilter(java.util.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(java.util.Set<Attachment.Type> attachmentTypes)
See Also:
AttachmentTypeFilter(Set, boolean)
Method Detail

getDocIdSet

public org.apache.lucene.search.DocIdSet getDocIdSet(org.apache.lucene.index.AtomicReaderContext context,
                                                     org.apache.lucene.util.Bits acceptDocs)
                                              throws java.io.IOException
Specified by:
getDocIdSet in class org.apache.lucene.search.Filter
Throws:
java.io.IOException


Copyright © 2003-2014 Atlassian. All Rights Reserved.