Class 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.
  • Constructor Details

    • ParquetTabularDataSetCollectionConnector

      public ParquetTabularDataSetCollectionConnector()
  • Method Details

    • getTableNames

      public List<String> 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:
      getTableNames in interface ReadableTabularDataCollection
      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:
      setTableName in interface TabularDataCollection
      Parameters:
      tableName - name of the table
      tableDescription - optional description - if null, a description is derived from the file
      Throws:
      ConnectorCheckedException - problem using the name as a file name