Class ParquetTabularDataSetCollectionConnector
java.lang.Object
org.odpi.openmetadata.frameworks.connectors.Connector
org.odpi.openmetadata.frameworks.connectors.ConnectorBase
org.odpi.openmetadata.adapters.connectors.datastore.parquetfile.ParquetTabularDataSetConnector
org.odpi.openmetadata.adapters.connectors.datastore.parquetfile.ParquetTabularDataSetCollectionConnector
- All Implemented Interfaces:
SecureConnectorExtension,ReadableTabularDataCollection,ReadableTabularDataSource,TabularDataCollection,VirtualConnectorExtension
public class ParquetTabularDataSetCollectionConnector
extends ParquetTabularDataSetConnector
implements ReadableTabularDataCollection
ParquetTabularDataSetCollectionConnector reads a collection of tabular data sets, each stored in an
Apache Parquet file. These files are all in the same directory (folder). The name of the directory is supplied
through the configuration properties. The name of each file is derived from the table name
(directoryPathName/tableName.parquet). The caller uses getTableNames() to discover the tables in the
directory and setTableName() to step from file to file.
-
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.datastore.parquetfile.ParquetTabularDataSetConnector
fileStoreConnector, tableDescription, tableNameFields inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorBase
auditLog, connectionBean, connectorInstanceId, embeddedConnectors, messageFormatter, secretsStoreConnectorMap -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the names of the tabular data sets in this collection.voidsetTableName(String tableName, String tableDescription) Set up the table name for the tabular data set to focus on.Methods inherited from class org.odpi.openmetadata.adapters.connectors.datastore.parquetfile.ParquetTabularDataSetConnector
getColumnDescriptions, getColumnNumber, getRecordCount, getTableDescription, getTableName, getTableNamesInDirectory, isDataAccessAvailable, readRecord, setFileStoreName, startMethods inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorBase
combineConfigurationProperties, disconnect, disconnectConnectors, equals, fromCamelToCanonicalCase, fromCanonicalToCamelCase, fromCanonicalToKebabCase, fromCanonicalToSnakeCase, fromKebabToCanonicalCase, fromSnakeToCanonicalCase, getArrayConfigurationProperty, getArrayConfigurationProperty, getArrayConfigurationProperty, getArrayValue, getBooleanConfigurationProperty, getConnection, getConnectorInstanceId, getDateConfigurationProperty, getIntConfigurationProperty, getLongConfigurationProperty, getSecretsCollectionName, getSecretsLocation, getSecretsProvider, getStringConfigurationProperty, getStringConfigurationProperty, getSuppliedPlaceholderProperties, hashCode, initialize, initializeEmbeddedConnectors, initializeSecretsStoreConnector, isActive, logExceptionRecord, logExceptionRecord, logRecord, logRecord, throwMissingConfigurationProperty, throwMissingElement, 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, setStatisticTimestampMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.odpi.openmetadata.frameworks.connectors.tabulardatasets.ReadableTabularDataSource
getColumnDescriptions, getColumnNumber, getRecordCount, getTableDescription, getTableName, readRecord
-
Constructor Details
-
ParquetTabularDataSetCollectionConnector
public ParquetTabularDataSetCollectionConnector()
-
-
Method Details
-
getTableNames
Return the names of the tabular data sets in this collection. There is one for each Parquet file in the directory, and its name is the name of the file without the file extension.- Specified by:
getTableNamesin interfaceReadableTabularDataCollection- Returns:
- sorted list of table names; empty if the collection has no members
-
setTableName
public void setTableName(String tableName, String tableDescription) throws ConnectorCheckedException Set up the table name for the tabular data set to focus on.- Specified by:
setTableNamein interfaceTabularDataCollection- Parameters:
tableName- name of the tabletableDescription- optional description - if null, a description is derived from the file- Throws:
ConnectorCheckedException- problem using the name as a file name
-