Package com.norconex.committer.neo4j
Class Neo4jCommitterConfig
java.lang.Object
com.norconex.committer.core.BaseCommitterConfig
com.norconex.committer.core.batch.BaseBatchCommitterConfig
com.norconex.committer.neo4j.Neo4jCommitterConfig
- All Implemented Interfaces:
Serializable
Neo4j Committer configuration.
- Author:
- Sylvain Roussy, Pascal Essiembre
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddOptionalParameter(String optionalParameter) protected booleanbooleanConnection credentials.A database name when using one other than the default one.Cypher query for adding relationships to Neo4j.One or more characters to join multi-value fields.Optional property name where to store the document content in Neo4j graph entries.Optional property name where to store the document reference in Neo4j graph entries.Cypher query for adding relationships to Neo4j.getUri()Required connection URI.inthashCode()voidsetCredentials(Credentials credentials) setDatabase(String database) A database name when using one other than the default one.setDeleteCypher(String deleteCypher) Cypher query for adding relationships to Neo4j.setMultiValuesJoiner(String multiValuesJoiner) One or more characters to join multi-value fields.setNodeContentProperty(String nodeContentProperty) Optional property name where to store the document content in Neo4j graph entries.setNodeIdProperty(String nodeIdProperty) Optional property name where to store the document reference in Neo4j graph entries.voidsetOptionalParameters(Set<String> optionalParameters) setUpsertCypher(String upsertCypher) Cypher query for adding relationships to Neo4j.Required connection URI.toString()Methods inherited from class com.norconex.committer.core.batch.BaseBatchCommitterConfig
getQueue, setQueueMethods inherited from class com.norconex.committer.core.BaseCommitterConfig
addRestriction, addRestrictions, clearFieldMappings, clearRestrictions, getFieldMappings, getRestrictions, removeFieldMapping, removeRestriction, removeRestriction, setFieldMapping, setFieldMappings
-
Field Details
-
DEFAULT_NEO4J_ID_PROPERTY
- See Also:
-
DEFAULT_NEO4J_CONTENT_PROPERTY
- See Also:
-
-
Constructor Details
-
Neo4jCommitterConfig
public Neo4jCommitterConfig()
-
-
Method Details
-
setCredentials
-
getOptionalParameters
-
setOptionalParameters
-
addOptionalParameter
-
getUri
Required connection URI. E.g., "bolt://localhost:7687". -
getDatabase
A database name when using one other than the default one. -
getCredentials
Connection credentials. -
getMultiValuesJoiner
One or more characters to join multi-value fields. Default is "|". -
getNodeIdProperty
Optional property name where to store the document reference in Neo4j graph entries. Use it as a cypher parameter to uniquely identify your graph entries in your configured "upsertCypher" and "deleteCypher" queries. Default is "id". -
getNodeContentProperty
Optional property name where to store the document content in Neo4j graph entries. Use it as a cypher parameter in your configured "upsertCypher" query. Default is "content". -
getUpsertCypher
Cypher query for adding relationships to Neo4j. Typically, you want to use MERGE and the "nodeIdProperty" value to update existing entries matching the ID. In order to delete all nodes related to an entry, make sure to add the ID property on all appropriate nodes. The query parameters correspond the document fields. -
getDeleteCypher
Cypher query for adding relationships to Neo4j. Typically, you want to use "nodeIdProperty" value to delete nodes having a matching property value. The query parameters correspond the document fields. -
setUri
Required connection URI. E.g., "bolt://localhost:7687".- Returns:
this.
-
setDatabase
A database name when using one other than the default one.- Returns:
this.
-
setMultiValuesJoiner
One or more characters to join multi-value fields. Default is "|".- Returns:
this.
-
setNodeIdProperty
Optional property name where to store the document reference in Neo4j graph entries. Use it as a cypher parameter to uniquely identify your graph entries in your configured "upsertCypher" and "deleteCypher" queries. Default is "id".- Returns:
this.
-
setNodeContentProperty
Optional property name where to store the document content in Neo4j graph entries. Use it as a cypher parameter in your configured "upsertCypher" query. Default is "content".- Returns:
this.
-
setUpsertCypher
Cypher query for adding relationships to Neo4j. Typically, you want to use MERGE and the "nodeIdProperty" value to update existing entries matching the ID. In order to delete all nodes related to an entry, make sure to add the ID property on all appropriate nodes. The query parameters correspond the document fields.- Returns:
this.
-
setDeleteCypher
Cypher query for adding relationships to Neo4j. Typically, you want to use "nodeIdProperty" value to delete nodes having a matching property value. The query parameters correspond the document fields.- Returns:
this.
-
equals
- Overrides:
equalsin classBaseBatchCommitterConfig
-
canEqual
- Overrides:
canEqualin classBaseBatchCommitterConfig
-
hashCode
public int hashCode()- Overrides:
hashCodein classBaseBatchCommitterConfig
-
toString
- Overrides:
toStringin classBaseBatchCommitterConfig
-