public abstract class DocFilter extends DataFilter
Constructor and Description |
---|
DocFilter() |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(DocData doc)
Return whether the represented document is accepted by this filter.
|
java.util.Set<DocData> |
filterDocuments(java.util.Collection<DocData> documents)
Filter a collection of documents.
|
java.lang.String |
getTag()
Get the tag for this document filter.
|
protected abstract boolean |
matchDoc(DocData doc)
Return whether the represented document is accepted by this filter.
|
void |
setTag(java.lang.String tagString)
Set the tag for this document filter.
|
accept, filterRecords
public boolean accept(DocData doc)
matchDoc
to determine if the
document matches.doc
- the document record to match.public java.util.Set<DocData> filterDocuments(java.util.Collection<DocData> documents)
documents
- a collection of documentspublic java.lang.String getTag()
protected abstract boolean matchDoc(DocData doc)
doc
- the document record to match.public void setTag(java.lang.String tagString)
tagString
- the tag for this filter