Class AbstractCommitter<T extends BaseCommitterConfig>

java.lang.Object
com.norconex.committer.core.AbstractCommitter<T>
Type Parameters:
T - The type of the committer configuration class
All Implemented Interfaces:
Committer, Configurable<T>, AutoCloseable
Direct Known Subclasses:
AbstractBatchCommitter, AbstractFsCommitter, LogCommitter, MemoryCommitter

public abstract class AbstractCommitter<T extends BaseCommitterConfig> extends Object implements Committer, Configurable<T>

A base implementation taking care of basic plumbing, such as firing main Committer events (including exceptions), storing the Committer context (available via getCommitterContext()), and adding support for filtering unwanted requests.

Restricting committer to specific documents

Optionally apply a committer only to certain type of documents. Documents are restricted based on their metadata field names and values. This option can be used to perform document routing when you have multiple committers defined.

Field mappings

By default, this abstract class applies field mappings for metadata fields, but leaves the document reference and content (input stream) for concrete implementations to handle. In other words, they only apply to a committer request metadata. Field mappings are performed on committer requests before upserts and deletes are actually performed.