Class PgAbstractRegularTable

All Implemented Interfaces:
IOptionContainer, IRelation, ISearchPath, ISimpleOptionContainer, IStatement, IStatementContainer, ITable, IHashable
Direct Known Subclasses:
GpPartitionTable, PgPartitionTable, PgSimpleTable, PgTypedTable

public abstract class PgAbstractRegularTable extends PgAbstractTable implements ISimpleOptionContainer
Base PostgreSQL regular table implementation. Provides common functionality for standard PostgreSQL tables including logging, tablespace, row-level security, partitioning, and Greenplum distribution options.
Since:
4.1.1
Author:
galiev_mr
  • Method Details

    • setMethod

      public void setMethod(String using)
    • isLogged

      public boolean isLogged()
      Checks if this table is logged (writes to WAL).
      Returns:
      true if logged, false if unlogged
    • setLogged

      public void setLogged(boolean isLogged)
    • setTablespace

      public void setTablespace(String tablespace)
    • setRowSecurity

      public void setRowSecurity(boolean isRowSecurity)
    • setForceSecurity

      public void setForceSecurity(boolean isForceSecurity)
    • getPartitionBy

      public String getPartitionBy()
      Gets the partition specification for this table.
      Returns:
      partition by clause or null if not partitioned
    • setPartitionBy

      public void setPartitionBy(String partitionBy)
    • setDistribution

      public void setDistribution(String distribution)
    • computeHash

      public void computeHash(Hasher hasher)
      Description copied from interface: IHashable
      Computes the hash of the implementing object using the provided hasher. The implementation should call appropriate put methods on the hasher for all fields that should contribute to the hash value.
      Specified by:
      computeHash in interface IHashable
      Overrides:
      computeHash in class PgAbstractTable
      Parameters:
      hasher - the hasher instance to use for hash computation