Package com.norconex.committer.neo4j
Class Neo4jCommitter
java.lang.Object
com.norconex.committer.core.AbstractCommitter<Neo4jCommitterConfig>
com.norconex.committer.core.batch.AbstractBatchCommitter<Neo4jCommitterConfig>
com.norconex.committer.neo4j.Neo4jCommitter
- All Implemented Interfaces:
BatchConsumer,Committer,Configurable<Neo4jCommitterConfig>,AutoCloseable
Commit documents/fields to a Neo4j graph database.
Authentication
Basic authentication is supported for password-protected Solr installations.
- Author:
- Sylvain Roussy, Pascal Essiembre
-
Field Summary
Fields inherited from interface com.norconex.commons.lang.config.Configurable
PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanprotected voidSubclasses can perform additional closing logic by overriding this method.protected voidCommits the supplied batch.booleaninthashCode()protected voidSubclasses can perform additional initialization by overriding this method.toString()Methods inherited from class com.norconex.committer.core.batch.AbstractBatchCommitter
consume, doClean, doClose, doDelete, doInit, doUpsert, getInitializedQueueMethods inherited from class com.norconex.committer.core.AbstractCommitter
accept, applyFieldMappings, clean, close, delete, fireDebug, fireDebug, fireError, fireError, fireInfo, fireInfo, getCommitterContext, init, upsert
-
Constructor Details
-
Neo4jCommitter
public Neo4jCommitter()
-
-
Method Details
-
initBatchCommitter
Description copied from class:AbstractBatchCommitterSubclasses can perform additional initialization by overriding this method. Default implementation does nothing. The committer context and committer queue will be already initialized when invokingAbstractCommitter.getCommitterContext()andAbstractBatchCommitter.getInitializedQueue(), respectively.- Overrides:
initBatchCommitterin classAbstractBatchCommitter<Neo4jCommitterConfig>- Throws:
CommitterException- error initializing
-
commitBatch
Description copied from class:AbstractBatchCommitterCommits the supplied batch.- Specified by:
commitBatchin classAbstractBatchCommitter<Neo4jCommitterConfig>- Parameters:
it- the batch to commit- Throws:
CommitterException- could not commit the batch
-
closeBatchCommitter
Description copied from class:AbstractBatchCommitterSubclasses can perform additional closing logic by overriding this method. Default implementation does nothing.- Overrides:
closeBatchCommitterin classAbstractBatchCommitter<Neo4jCommitterConfig>- Throws:
CommitterException- error closing committer
-
equals
- Overrides:
equalsin classAbstractBatchCommitter<Neo4jCommitterConfig>
-
canEqual
- Overrides:
canEqualin classAbstractBatchCommitter<Neo4jCommitterConfig>
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractBatchCommitter<Neo4jCommitterConfig>
-
toString
- Overrides:
toStringin classAbstractBatchCommitter<Neo4jCommitterConfig>
-
getConfiguration
-