public class LoggingDocumentSink extends java.lang.Object implements DocumentSink
DocumentSink
that logs filtered documents.Constructor and Description |
---|
LoggingDocumentSink() |
Modifier and Type | Method and Description |
---|---|
void |
add(java.lang.String documentId,
FilterReason reason)
Adds a filtered document and the reason it was filtered.
|
public void add(java.lang.String documentId, FilterReason reason)
DocumentSink
add
in interface DocumentSink
documentId
- identifies the filtered documentreason
- the reason the document was filtered