Class OpenMetadataRelationshipDataSetConnectorBase
java.lang.Object
org.odpi.openmetadata.frameworks.connectors.Connector
org.odpi.openmetadata.frameworks.connectors.ConnectorBase
org.odpi.openmetadata.adapters.connectors.jacquard.tabulardatasets.OpenMetadataDataSetConnectorBase
org.odpi.openmetadata.adapters.connectors.jacquard.tabulardatasets.OpenMetadataRelationshipDataSetConnectorBase
- All Implemented Interfaces:
AuditLoggingComponent,SecureConnectorExtension,ReadableTabularDataSource,VirtualConnectorExtension
- Direct Known Subclasses:
CertificationsTabularDataSetConnector,ExceptionsTabularDataSetConnector,LicensesTabularDataSetConnector
public abstract class OpenMetadataRelationshipDataSetConnectorBase
extends OpenMetadataDataSetConnectorBase
OpenMetadataRootDataSetConnectorBase is the base class for the tabular data set built on OpenMetadataRootElements.
The constructor allows the provider
to pass the product definition to the open metadata repository.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorBase
ConnectorBase.ProtectedConnection -
Field Summary
FieldsFields inherited from class org.odpi.openmetadata.adapters.connectors.jacquard.tabulardatasets.OpenMetadataDataSetConnectorBase
auditLog, connectorContext, connectorName, productDefinition, propertyHelperFields inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorBase
connectionBean, connectorInstanceId, embeddedConnectors, messageFormatter, secretsStoreConnectorMap -
Constructor Summary
ConstructorsConstructorDescriptionOpenMetadataRelationshipDataSetConnectorBase(String connectorName) Constructor used to set up the name of this connector (supplied by the subclasses).OpenMetadataRelationshipDataSetConnectorBase(String connectorName, ProductDefinition productDefinition) Constructor used to set up the name of this connector (supplied by the subclasses). -
Method Summary
Modifier and TypeMethodDescriptionlongReturn the record count in the data source.readRecord(long rowNumber) Return the requested data record.voidrefreshCache(String metadataTypeName) Refresh any cached values.Refresh any existing records.voidstart()Indicates that the connector is completely configured and can begin processing.Methods inherited from class org.odpi.openmetadata.adapters.connectors.jacquard.tabulardatasets.OpenMetadataDataSetConnectorBase
disconnect, getColumnDescriptions, getColumnDescriptions, getColumnNumber, getConnectorComponentDescription, getElementHeaderRecordValue, getElementRecordValue, getElementRecordValue, getRecordValues, getRecordValues, getRelatedElementGUIDRecordValue, getRelatedElementRecordValue, getTableDescription, getTableName, getTabularColumnDescription, refreshCache, setAuditLog, setColumnDescriptions, setLocalEnvironmentMethods inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorBase
combineConfigurationProperties, disconnectConnectors, equals, fromCamelToCanonicalCase, fromCanonicalToCamelCase, fromCanonicalToKebabCase, fromCanonicalToSnakeCase, fromKebabToCanonicalCase, fromSnakeToCanonicalCase, getArrayConfigurationProperty, getArrayConfigurationProperty, getArrayConfigurationProperty, getBooleanConfigurationProperty, getConnection, getConnectorInstanceId, getDateConfigurationProperty, getIntConfigurationProperty, getLongConfigurationProperty, getSecretsCollectionName, getSecretsLocation, getSecretsProvider, getStringConfigurationProperty, getStringConfigurationProperty, getSuppliedPlaceholderProperties, hashCode, initialize, initializeEmbeddedConnectors, initializeSecretsStoreConnector, isActive, logExceptionRecord, logRecord, logRecord, throwMissingConfigurationProperty, throwMissingEndpointAddress, throwMissingResource, throwNoAsset, throwWrongTypeOfAsset, throwWrongTypeOfResource, throwWrongTypeOfRootSchema, toStringMethods inherited from class org.odpi.openmetadata.frameworks.connectors.Connector
clearStatisticProperty, clearStatisticTimestamp, getConnectorStatistics, getStatisticCounter, getStatisticProperty, getStatisticTimestamp, incrementStatisticCounter, initializeStatisticCounter, refreshStatistics, setStatisticProperty, setStatisticTimestamp
-
Field Details
-
records
-
-
Constructor Details
-
OpenMetadataRelationshipDataSetConnectorBase
Constructor used to set up the name of this connector (supplied by the subclasses).- Parameters:
connectorName- name of the connector
-
OpenMetadataRelationshipDataSetConnectorBase
public OpenMetadataRelationshipDataSetConnectorBase(String connectorName, ProductDefinition productDefinition) Constructor used to set up the name of this connector (supplied by the subclasses).- Parameters:
connectorName- name of the connector
-
-
Method Details
-
start
Indicates that the connector is completely configured and can begin processing.- Overrides:
startin classOpenMetadataDataSetConnectorBase- Throws:
ConnectorCheckedException- the connector detected a problem.UserNotAuthorizedException- the connector was disconnected before/during start
-
refreshExistingRecords
Refresh any existing records.- Returns:
- list of GUIDs already processed and stored in the records
- Throws:
ConnectorCheckedException- problem processing existing records
-
refreshCache
Refresh any cached values.- Parameters:
metadataTypeName- name of the metadata type to refresh- Throws:
ConnectorCheckedException- unable to refresh
-
getRecordCount
public long getRecordCount()Return the record count in the data source.- Returns:
- count
-
readRecord
Return the requested data record. The first record is record 0.- Parameters:
rowNumber- long- Returns:
- list of values (as strings) where each string is the value from a column. The order is the same as the columns
- Throws:
ConnectorCheckedException- a problem occurred accessing the data.
-