Class PartitionForeignPgTable

All Implemented Interfaces:
IHashable, IForeignTable, IOptionContainer, IPartitionTable, IRelation, ISearchPath, IStatement, IStatementContainer, PgForeignOptionContainer

public final class PartitionForeignPgTable extends AbstractForeignTable implements IPartitionTable
Partition foreign table object for PostgreSQL. Represents a partition of a foreign table, which allows partitioning of data across foreign servers while maintaining the partitioning structure.
Since:
4.1.1
Author:
galiev_mr
  • Constructor Details

    • PartitionForeignPgTable

      public PartitionForeignPgTable(String name, String serverName, String partitionBounds)
      Creates a new partition foreign table.
      Parameters:
      name - table name
      serverName - foreign server name
      partitionBounds - partition bounds definition
  • Method Details

    • getPartitionBounds

      public String getPartitionBounds()
      Description copied from interface: IPartitionTable
      Gets the partition bounds specification for this partition.
      Specified by:
      getPartitionBounds in interface IPartitionTable
      Returns:
      the partition bounds as SQL string
    • getParentTable

      public String getParentTable()
      Description copied from interface: IPartitionTable
      Gets the name of the parent table that this partition belongs to.
      Specified by:
      getParentTable in interface IPartitionTable
      Returns:
      the parent table name
    • 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 AbstractForeignTable
    • 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 AbstractForeignTable
      Parameters:
      hasher - the hasher instance to use for hash computation