Package com.norconex.committer.neo4j
Class Neo4jCommitterConfig
java.lang.Object
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) Adds a parameter name to the set of optional query parameters.booleanGets the authentication credentials.Gets the target database name.Gets the Cypher query used for delete operations.Gets the separator used to join multi-valued fields into a single string.Gets the Neo4j property name where the document content is stored.Gets the Neo4j property name where the document ID is stored.Gets the names of optional query parameters (those that may be absent without causing a client exception).Gets the Cypher query used for upsert operations.getUri()Gets the Neo4j connection URI.inthashCode()voidsetCredentials(Credentials credentials) Sets the authentication credentials.voidsetDatabase(String database) Sets the target database name.voidsetDeleteCypher(String deleteCypher) Sets the Cypher query used for delete operations.voidsetMultiValuesJoiner(String multiValuesJoiner) Sets the separator used to join multi-valued fields.voidsetNodeContentProperty(String nodeContentProperty) Sets the Neo4j property name where the document content is stored.voidsetNodeIdProperty(String nodeIdProperty) Sets the Neo4j property name where the document ID is stored.voidsetOptionalParameters(Set<String> optionalParameters) Sets the names of optional query parameters.voidsetUpsertCypher(String upsertCypher) Sets the Cypher query used for upsert operations.voidSets the Neo4j connection URI (e.g.,bolt://localhost:7687).toString()
-
Field Details
-
DEFAULT_NEO4J_ID_PROPERTY
Default property name used to store the document ID.- See Also:
-
DEFAULT_NEO4J_CONTENT_PROPERTY
Default property name used to store the document content.- See Also:
-
-
Constructor Details
-
Neo4jCommitterConfig
public Neo4jCommitterConfig()
-
-
Method Details
-
getDatabase
Gets the target database name.- Returns:
- database name, or
nullfor the default
-
setDatabase
Sets the target database name.- Parameters:
database- database name, ornullfor the default
-
getCredentials
Gets the authentication credentials.- Returns:
- credentials
-
setCredentials
Sets the authentication credentials.- Parameters:
credentials- the credentials
-
getUri
Gets the Neo4j connection URI.- Returns:
- connection URI
-
setUri
Sets the Neo4j connection URI (e.g.,bolt://localhost:7687).- Parameters:
uri- connection URI
-
getMultiValuesJoiner
Gets the separator used to join multi-valued fields into a single string.- Returns:
- multi-values joiner string
-
setMultiValuesJoiner
Sets the separator used to join multi-valued fields. Default is "|".- Parameters:
multiValuesJoiner- separator string
-
getNodeIdProperty
Gets the Neo4j property name where the document ID is stored.- Returns:
- node ID property name
-
setNodeIdProperty
Sets the Neo4j property name where the document ID is stored. Default is "id".- Parameters:
nodeIdProperty- node ID property name
-
getNodeContentProperty
Gets the Neo4j property name where the document content is stored.- Returns:
- node content property name
-
setNodeContentProperty
Sets the Neo4j property name where the document content is stored. Default is "content".- Parameters:
nodeContentProperty- node content property name
-
getUpsertCypher
Gets the Cypher query used for upsert operations.- Returns:
- upsert Cypher query
-
setUpsertCypher
Sets the Cypher query used for upsert operations.- Parameters:
upsertCypher- upsert Cypher query
-
getDeleteCypher
Gets the Cypher query used for delete operations.- Returns:
- delete Cypher query
-
setDeleteCypher
Sets the Cypher query used for delete operations.- Parameters:
deleteCypher- delete Cypher query
-
getOptionalParameters
Gets the names of optional query parameters (those that may be absent without causing a client exception).- Returns:
- unmodifiable set of optional parameter names
-
setOptionalParameters
Sets the names of optional query parameters.- Parameters:
optionalParameters- optional parameter names
-
addOptionalParameter
Adds a parameter name to the set of optional query parameters.- Parameters:
optionalParameter- optional parameter name to add
-
equals
-
hashCode
public int hashCode() -
toString
-