com.atlassian.confluence.search.lucene.filter
Class AttachmentTypeFilter
java.lang.Object
org.apache.lucene.search.Filter
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
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 |
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)
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-2011 Atlassian. All Rights Reserved.