Class GpPartitionTable

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

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

    • GpPartitionTable

      public GpPartitionTable(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(GpPartitionTemplateContainer template)
      Adds a partition template to this table.
      Parameters:
      template - partition template to add
    • getPartitionBy

      public String getPartitionBy()
      Description copied from class: PgAbstractRegularTable
      Gets the partition specification for this table.
      Overrides:
      getPartitionBy in class PgAbstractRegularTable
      Returns:
      partition by clause or null if not partitioned
    • 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 PgAbstractRegularTable
      Parameters:
      hasher - the hasher instance to use for hash computation