Class PartitionGpTable

All Implemented Interfaces:
IHashable, IOptionContainer, IRelation, ISearchPath, ISimpleOptionContainer, IStatement, IStatementContainer

public final class PartitionGpTable extends AbstractRegularTable
Greenplum partition table implementation. Represents a partitioned table specific to Greenplum database with support for templates and Greenplum-specific partitioning features.
  • Constructor Details

    • PartitionGpTable

      public PartitionGpTable(String name)
      Creates a new Greenplum partition table.
      Parameters:
      name - table name
  • Method Details

    • setPartitionGpBound

      public void setPartitionGpBound(String partitionGpBounds, String normalizedPartitionGpBounds)
      Sets the partition bounds for this Greenplum table.
      Parameters:
      partitionGpBounds - raw partition bounds
      normalizedPartitionGpBounds - normalized partition bounds for comparison
    • addTemplate

      public void addTemplate(PartitionTemplateContainer template)
      Adds a partition template to this table.
      Parameters:
      template - partition template to add
    • compare

      public boolean compare(PgStatement obj)
      Description copied from class: PgStatement
      This method does not account for nested child PgStatements. Shallow version of PgStatement.equals(Object)
      Overrides:
      compare in class AbstractRegularTable
    • shallowCopy

      public AbstractTable shallowCopy()
      Description copied from class: PgStatement
      Copies all object properties into a new object and leaves all its children empty.
      Overrides:
      shallowCopy in class AbstractRegularTable
      Returns:
      shallow copy of a DB object.
    • 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 AbstractRegularTable
      Parameters:
      hasher - the hasher instance to use for hash computation