Interface IOptionContainer

All Superinterfaces:
IStatement
All Known Subinterfaces:
ISimpleOptionContainer, PgForeignOptionContainer
All Known Implementing Classes:
AbstractForeignTable, AbstractIndex, AbstractPgTable, AbstractPgView, AbstractRegularTable, AbstractTable, ChIndex, ChTable, ChTableLog, GpExternalTable, MaterializedPgView, MsConstraintPk, MsIndex, MsTable, PartitionForeignPgTable, PartitionGpTable, PartitionPgTable, PgColumn, PgForeignDataWrapper, PgFtsDictionary, PgIndex, PgServer, PgUserMapping, PgView, SimpleForeignPgTable, SimplePgTable, TypedPgTable

public interface IOptionContainer extends IStatement
Interface for database objects that support storage and configuration options. Provides functionality for managing key-value option pairs.
  • Field Details

    • GP_OPTION_LIST

      static final List<String> GP_OPTION_LIST
      List of Greenplum-specific storage options.
  • Method Details

    • addOption

      void addOption(String key, String value)
      Adds an option to this container.
      Parameters:
      key - the option key
      value - the option value
    • getOptions

      Map<String,String> getOptions()
      Gets all options for this container.
      Returns:
      a map of option keys to values
    • compareOptions

      void compareOptions(IOptionContainer newContainer, SQLScript script)
      Compares options between this container and a new container, generating SQL to update differences.
      Parameters:
      newContainer - the new container to compare against
      script - the script to append changes to