public class CruxOMRSRepositoryConnectorProvider
extends org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryConnectorProviderBase
The CruxOMRSRepositoryConnectorProvider must initialize ConnectorProviderBase with the Java class
name of the OMRS Connector implementation (by calling super.setConnectorClassName(className)).
Then the connector provider will work.
The configurationProperties can contain the following keys:
cruxConfig: a Crux configuration document that follows the JSON structure documented on
Crux's site: https://opencrux.com/reference/21.01-1.14.0/configuration.htmlsyncIndex: a boolean indicating whether writes should be done synchronously (true, default) to
ensure the index is up-to-date before returning, or asynchronously (false) to ensure that the transaction is
recorded but that the index can be eventually consistent (faster writes)luceneRegexes: a boolean indicating whether any unquoted regexes (those not surrounded by
\Q and \E) should be treated as Lucene regexes (true) or not (false). Technically
the search interfaces are meant to take Java regexes; however, if usage of the connector is only expected to
pass fairly simple regexes that are also supported by Lucene, enabling this should significantly improve the
performance of queries against text data that involves regexes that are unquoted. (Regexes that are quoted
will be handled appropriately irrespective of this setting.) Note that this will have no impact if Lucene
itself is not configured.
{
"class": "Connection",
"connectorType": {
"class": "ConnectorType",
"connectorProviderClassName": "org.odpi.egeria.connectors.juxt.crux.repositoryconnector.CruxOMRSRepositoryConnectorProvider"
},
"configurationProperties": {
"cruxConfig": {
"crux/index-store": {
"kv-store": {
"crux/module": "crux.rocksdb/->kv-store",
"db-dir": "data/servers/crux/rdb-index"
}
},
"crux/document-store": {
"kv-store": {
"crux/module": "crux.rocksdb/->kv-store",
"db-dir": "data/servers/crux/rdb-docs"
}
},
"crux/tx-log": {
"crux/module": "crux.kafka/->tx-log",
"kafka-config": {
"bootstrap-servers": "localhost:9092"
},
"tx-topic-opts": {
"topic-name": "crux-tx-log"
},
"poll-wait-duration": "PT1S"
}
},
"syncIndex": false,
"luceneRegexes": true
}
}
| Modifier and Type | Field and Description |
|---|---|
static String |
CRUX_CONFIG |
static String |
LUCENE_REGEXES |
static String |
SYNCHRONOUS_INDEX |
| Constructor and Description |
|---|
CruxOMRSRepositoryConnectorProvider()
Constructor used to initialize the ConnectorProviderBase with the Java class name of the specific
OMRS Connector implementation.
|
equals, getConnector, getConnector, getConnectorClassName, getConnectorType, getConnectorTypeProperties, getNewConnectorGUID, hashCode, setAuditLog, setConnectorClassName, setConnectorComponentDescription, setConnectorTypeProperties, toStringpublic static final String CRUX_CONFIG
public static final String SYNCHRONOUS_INDEX
public static final String LUCENE_REGEXES
Copyright © 2021 ODPi. All rights reserved.