Class ValidValueSetListConnector
java.lang.Object
org.odpi.openmetadata.frameworks.connectors.Connector
org.odpi.openmetadata.frameworks.connectors.ConnectorBase
org.odpi.openmetadata.adapters.connectors.referencedata.tabulardatasets.ReferenceDataSetConnectorBase
org.odpi.openmetadata.adapters.connectors.referencedata.tabulardatasets.ValidValueSetListConnector
- All Implemented Interfaces:
AuditLoggingComponent
,ReadableTabularDataSource
,SecureConnectorExtension
,VirtualConnectorExtension
public class ValidValueSetListConnector
extends ReferenceDataSetConnectorBase
implements AuditLoggingComponent, ReadableTabularDataSource
ValidValueSetListConnector maintains a tabular data set that lists the valid value sets in open metadata.
Valid value sets are valid value definitions with no valid value parent and one or more members.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorBase
ConnectorBase.ProtectedConnection
-
Field Summary
Fields inherited from class org.odpi.openmetadata.adapters.connectors.referencedata.tabulardatasets.ReferenceDataSetConnectorBase
auditLog, columnDescriptions, connectorContext, connectorName
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorBase
connectionBean, connectorInstanceId, embeddedConnectors, messageFormatter, secretsStoreConnectorMap
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Close the fileReturn the list of column descriptions associated with this data source.long
Return the number of records in the data source.readRecord
(long rowNumber) Return the requested data record.void
Refresh any cached values,void
start()
Indicates that the connector is completely configured and can begin processing.Methods inherited from class org.odpi.openmetadata.adapters.connectors.referencedata.tabulardatasets.ReferenceDataSetConnectorBase
getColumnNumber, getConnectorComponentDescription, getTabularColumnDescription, setAuditLog, setColumnDescriptions, setLocalEnvironment
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorBase
combineConfigurationProperties, disconnectConnectors, equals, getArrayConfigurationProperty, getArrayConfigurationProperty, getArrayConfigurationProperty, getBooleanConfigurationProperty, getConnection, getConnectorInstanceId, getDateConfigurationProperty, getIntConfigurationProperty, getLongConfigurationProperty, getStringConfigurationProperty, getStringConfigurationProperty, getSuppliedPlaceholderProperties, hashCode, initialize, initializeEmbeddedConnectors, initializeSecretsStoreConnector, isActive, logExceptionRecord, logRecord, logRecord, throwMissingConfigurationProperty, throwMissingEndpointAddress, throwMissingResource, throwNoAsset, throwWrongTypeOfAsset, throwWrongTypeOfResource, throwWrongTypeOfRootSchema, toString
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.Connector
clearStatisticProperty, clearStatisticTimestamp, getConnectorStatistics, getStatisticCounter, getStatisticProperty, getStatisticTimestamp, incrementStatisticCounter, initializeStatisticCounter, refreshStatistics, setStatisticProperty, setStatisticTimestamp
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.odpi.openmetadata.frameworks.auditlog.AuditLoggingComponent
getConnectorComponentDescription, setAuditLog
Methods inherited from interface org.odpi.openmetadata.frameworks.connectors.ReadableTabularDataSource
getColumnNumber
-
Constructor Details
-
ValidValueSetListConnector
public ValidValueSetListConnector()Default constructor
-
-
Method Details
-
start
Indicates that the connector is completely configured and can begin processing.- Overrides:
start
in classReferenceDataSetConnectorBase
- Throws:
ConnectorCheckedException
- there is a problem within the connector.UserNotAuthorizedException
- the connector was disconnected before/during start
-
refreshCache
Refresh any cached values,- Specified by:
refreshCache
in classReferenceDataSetConnectorBase
- Throws:
ConnectorCheckedException
- unable to refresh
-
getRecordCount
public long getRecordCount()Return the number of records in the data source.- Specified by:
getRecordCount
in interfaceReadableTabularDataSource
- Returns:
- count
-
getColumnDescriptions
Return the list of column descriptions associated with this data source. The information should be sufficient to define the schema in a target data store. This list is the default column descriptions. The caller can override them.- Specified by:
getColumnDescriptions
in interfaceReadableTabularDataSource
- Overrides:
getColumnDescriptions
in classReferenceDataSetConnectorBase
- Returns:
- a list of column descriptions or null if not available.
-
readRecord
Return the requested data record. The first record is record 0.- Specified by:
readRecord
in interfaceReadableTabularDataSource
- 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
- there is a problem accessing the data.
-
disconnect
public void disconnect()Close the file- Overrides:
disconnect
in classReferenceDataSetConnectorBase
-