Class S3TableConfigClient

java.lang.Object
io.trino.plugin.kinesis.s3config.S3TableConfigClient
All Implemented Interfaces:
Runnable

public class S3TableConfigClient extends Object implements Runnable
Utility class to retrieve table definitions from a common place on Amazon S3.

This is so that we can add new tables in a central "metastore" location without having to update every single node with the files.

This makes calls to Amazon AWS using the S3 client.

  • Constructor Details

  • Method Details

    • startS3Updates

      @PostConstruct protected void startS3Updates()
    • isUsingS3

      public boolean isUsingS3()
      Indicates this class is being used and actively reading table definitions from S3.
    • getTablesFromS3

      public Map<SchemaTableName,KinesisStreamDescription> getTablesFromS3()
      Main entry point to get table definitions from S3 using bucket and object directory given in the configuration.

      For safety, an immutable copy built from the internal map is returned.

    • run

      public void run()
      Specified by:
      run in interface Runnable