Class GpPartitionTemplateContainer

java.lang.Object
org.pgcodekeeper.core.database.pg.schema.GpPartitionTemplateContainer
All Implemented Interfaces:
IHashable

public final class GpPartitionTemplateContainer extends Object implements IHashable
Container for Greenplum partition template information. Manages subpartition template definitions for Greenplum partitioned tables.
  • Constructor Details

    • GpPartitionTemplateContainer

      public GpPartitionTemplateContainer(String partitionName)
      Creates a new partition template container.
      Parameters:
      partitionName - name of the partition, can be null for table-level templates
  • Method Details

    • setSubElems

      public void setSubElems(String subElement, String normalizedSubElement)
      Adds a subpartition element to this template.
      Parameters:
      subElement - raw subpartition element
      normalizedSubElement - normalized subpartition element for comparison
    • getPartitionName

      public String getPartitionName()
      Gets the partition name for this template.
      Returns:
      partition name, or null for table-level templates
    • hasSubElements

      public boolean hasSubElements()
      Checks if this template has any subpartition elements.
      Returns:
      true if template contains subpartition elements
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class 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
      Parameters:
      hasher - the hasher instance to use for hash computation
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object