Class OpenMetadataRootDataSetConnectorBase
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.OpenMetadataRootDataSetConnectorBase
- All Implemented Interfaces:
AuditLoggingComponent,SecureConnectorExtension,ReadableTabularDataSource,VirtualConnectorExtension
- Direct Known Subclasses:
DynamicOpenMetadataDataSetConnectorBase,ReferenceDataSetListConnector
DynamicOpenMetadataDataSetConnector is the base class for the dynamic tabular data set to allow 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
ConstructorsConstructorDescriptionOpenMetadataRootDataSetConnectorBase(String connectorName) Constructor used to set up the name of this connector (supplied by the subclasses).OpenMetadataRootDataSetConnectorBase(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.protected voidprocessNestedValues(OpenMetadataRootElement element, List<String> knownGUIDs) Process any nested records.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, getRecordValues, 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
-
OpenMetadataRootDataSetConnectorBase
Constructor used to set up the name of this connector (supplied by the subclasses).- Parameters:
connectorName- name of the connector
-
OpenMetadataRootDataSetConnectorBase
public OpenMetadataRootDataSetConnectorBase(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
-
processNestedValues
Process any nested records.- Parameters:
element- retrieved elementknownGUIDs- list of records already processed
-
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.
-