public class NilCommitter extends Object implements ICommitter
XML configuration usage:
<committer class="com.norconex.committer.core.impl.NilCommitter" />
Constructor and Description |
---|
NilCommitter()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
add(String reference,
InputStream content,
com.norconex.commons.lang.map.Properties metadata)
Adds a new or modified document to the target destination.
|
void |
commit()
Commits documents.
|
boolean |
equals(Object other) |
int |
hashCode() |
void |
remove(String reference,
com.norconex.commons.lang.map.Properties metadata)
Removes a document from the target destination.
|
String |
toString() |
public void add(String reference, InputStream content, com.norconex.commons.lang.map.Properties metadata)
ICommitter
add
in interface ICommitter
reference
- document reference (e.g. URL)content
- document contentmetadata
- document metadatapublic void remove(String reference, com.norconex.commons.lang.map.Properties metadata)
ICommitter
remove
in interface ICommitter
reference
- document reference (e.g. URL)metadata
- document metadatapublic void commit()
ICommitter
commit
in interface ICommitter
Copyright © 2009–2020 Norconex Inc.. All rights reserved.