Package org.pgcodekeeper.core.schema.pg
Class PartitionForeignPgTable
java.lang.Object
org.pgcodekeeper.core.schema.PgStatement
org.pgcodekeeper.core.schema.PgStatementContainer
org.pgcodekeeper.core.schema.AbstractTable
org.pgcodekeeper.core.schema.pg.AbstractPgTable
org.pgcodekeeper.core.schema.pg.AbstractForeignTable
org.pgcodekeeper.core.schema.pg.PartitionForeignPgTable
- All Implemented Interfaces:
IHashable,IForeignTable,IOptionContainer,IPartitionTable,IRelation,ISearchPath,IStatement,IStatementContainer,PgForeignOptionContainer
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
-
Field Summary
Fields inherited from class org.pgcodekeeper.core.schema.PgStatement
GOFields inherited from interface org.pgcodekeeper.core.schema.IOptionContainer
GP_OPTION_LISTFields inherited from interface org.pgcodekeeper.core.schema.pg.PgForeignOptionContainer
ALTER_FOREIGN_OPTION, DELIM -
Constructor Summary
ConstructorsConstructorDescriptionPartitionForeignPgTable(String name, String serverName, String partitionBounds) Creates a new partition foreign table. -
Method Summary
Modifier and TypeMethodDescriptionbooleancompare(PgStatement obj) This method does not account for nested child PgStatements.voidcomputeHash(Hasher hasher) Computes the hash of the implementing object using the provided hasher.Gets the name of the parent table that this partition belongs to.Gets the partition bounds specification for this partition.Methods inherited from class org.pgcodekeeper.core.schema.pg.AbstractForeignTable
appendMoveDataSql, appendOptions, getAlterHeader, getAlterTable, getTypeNameMethods inherited from class org.pgcodekeeper.core.schema.pg.AbstractPgTable
addInherits, appendAlterSQL, appendComments, getColsForMovingData, getCreationSQL, getInherits, getRelationColumns, hasInherits, putTriggerState, setHasOids, shallowCopy, sortColumnsMethods inherited from class org.pgcodekeeper.core.schema.AbstractTable
addColumn, addConstraint, addOption, columnAdder, compareChildren, compareIgnoringColumnOrder, computeChildrenHash, containsColumn, getColumn, getColumns, getConstraint, getConstraints, getOption, getOptions, getStatementType, isRecreatedMethods inherited from class org.pgcodekeeper.core.schema.PgStatementContainer
addChild, addIndex, addPolicy, addRule, addTrigger, getChild, getContainingSchema, getIndex, getIndexes, getPolicies, getPolicy, getRule, getRules, getTrigger, getTriggers, isClusteredMethods inherited from class org.pgcodekeeper.core.schema.PgStatement
addAllDeps, addDep, addPrivilege, appendAlterComments, appendOwnerSQL, canDrop, canDropBeforeCreate, checkComments, clearPrivileges, deepCopy, equals, getAuthor, getBareName, getChildren, getComment, getDbType, getDeps, getDescendants, getDropSQL, getDropSQL, getLibName, getLocation, getName, getObjectState, getObjectState, getOwner, getParent, getPrivileges, getQualifiedName, getSQL, getTwin, hasChildren, hashCode, isLib, isOwned, isSubElement, setAuthor, setComment, setLibName, setLocation, setOwner, setParent, toStringMethods inherited from interface org.pgcodekeeper.core.schema.IOptionContainer
addOption, getOptionsMethods inherited from interface org.pgcodekeeper.core.schema.ISearchPath
getDatabase, getSchemaNameMethods inherited from interface org.pgcodekeeper.core.schema.IStatement
getBareName, getComment, getName, getParent, getQualifiedName, getStatementTypeMethods inherited from interface org.pgcodekeeper.core.schema.pg.PgForeignOptionContainer
compareOptions
-
Constructor Details
-
PartitionForeignPgTable
Creates a new partition foreign table.- Parameters:
name- table nameserverName- foreign server namepartitionBounds- partition bounds definition
-
-
Method Details
-
getPartitionBounds
Description copied from interface:IPartitionTableGets the partition bounds specification for this partition.- Specified by:
getPartitionBoundsin interfaceIPartitionTable- Returns:
- the partition bounds as SQL string
-
getParentTable
Description copied from interface:IPartitionTableGets the name of the parent table that this partition belongs to.- Specified by:
getParentTablein interfaceIPartitionTable- Returns:
- the parent table name
-
compare
Description copied from class:PgStatementThis method does not account for nested child PgStatements. Shallow version ofPgStatement.equals(Object)- Overrides:
comparein classAbstractForeignTable
-
computeHash
Description copied from interface:IHashableComputes the hash of the implementing object using the provided hasher. The implementation should call appropriateputmethods on the hasher for all fields that should contribute to the hash value.- Specified by:
computeHashin interfaceIHashable- Overrides:
computeHashin classAbstractForeignTable- Parameters:
hasher- the hasher instance to use for hash computation
-