Class GpPartitionTable
java.lang.Object
org.pgcodekeeper.core.database.base.schema.AbstractStatement
org.pgcodekeeper.core.database.pg.schema.PgAbstractStatement
org.pgcodekeeper.core.database.pg.schema.PgAbstractStatementContainer
org.pgcodekeeper.core.database.pg.schema.PgAbstractTable
org.pgcodekeeper.core.database.pg.schema.PgAbstractRegularTable
org.pgcodekeeper.core.database.pg.schema.GpPartitionTable
- All Implemented Interfaces:
IOptionContainer,IRelation,ISearchPath,ISimpleOptionContainer,IStatement,IStatementContainer,ITable,IHashable
Greenplum partition table implementation.
Represents a partitioned table specific to Greenplum database
with support for templates and Greenplum-specific partitioning features.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTemplate(GpPartitionTemplateContainer template) Adds a partition template to this table.voidcomputeHash(Hasher hasher) Computes the hash of the implementing object using the provided hasher.Gets the partition specification for this table.voidsetPartitionGpBound(String partitionGpBounds, String normalizedPartitionGpBounds) Sets the partition bounds for this Greenplum table.Methods inherited from class org.pgcodekeeper.core.database.pg.schema.PgAbstractRegularTable
isLogged, setDistribution, setForceSecurity, setLogged, setMethod, setPartitionBy, setRowSecurity, setTablespaceMethods inherited from class org.pgcodekeeper.core.database.pg.schema.PgAbstractTable
addChild, addColumn, addInherits, addOption, appendAlterSQL, appendComments, appendMoveDataSql, compare, compareChildren, compareIgnoringColumnOrder, computeChildrenHash, fillChildrenList, getChild, getChildrenByType, getColumn, getColumns, getConstraint, getConstraints, getCreationSQL, getInherits, getOptions, getRelationColumns, hasInherits, isClustered, isRecreated, putTriggerState, setHasOids, sortColumnsMethods inherited from class org.pgcodekeeper.core.database.pg.schema.PgAbstractStatementContainer
getIndex, getIndexes, getPolicies, getPolicy, getRule, getTrigger, getTriggersMethods inherited from class org.pgcodekeeper.core.database.pg.schema.PgAbstractStatement
addPrivilege, appendDefaultPrivileges, appendOwnerSQL, formatSql, getQuoter, getRenameCommand, isOwnedMethods inherited from class org.pgcodekeeper.core.database.base.schema.AbstractStatement
addDependency, appendAlterComments, appendPrivileges, canDrop, canDropBeforeCreate, checkComments, clearPrivileges, deepCopy, equals, fillDescendantsList, getAuthor, getBareName, getChildren, getComment, getDependencies, getDescendants, getDropSQL, getDropSQL, getLibName, getLocation, getName, getObjectState, getObjectState, getOwner, getParent, getPrivileges, getQualifiedName, getSeparator, getSQL, getTwin, hasChildren, hashCode, isLib, setAuthor, setComment, setLibName, setLocation, setOwner, setParent, shallowCopy, toStringMethods inherited from interface org.pgcodekeeper.core.database.api.schema.IOptionContainer
addOption, getOptionsMethods inherited from interface org.pgcodekeeper.core.database.api.schema.ISearchPath
getContainingSchema, getDatabase, getSchemaName, toObjectReferenceMethods inherited from interface org.pgcodekeeper.core.database.api.schema.ISimpleOptionContainer
appendOptions, compareOptionsMethods inherited from interface org.pgcodekeeper.core.database.api.schema.IStatement
addDependency, appendAlterSQL, appendOwnerSQL, canDrop, canDropBeforeCreate, clearPrivileges, compare, deepCopy, formatSql, getAuthor, getBareName, getChildren, getComment, getCreationSQL, getDependencies, getDescendants, getDropSQL, getLibName, getLocation, getName, getOwner, getParent, getPrivileges, getQualifiedName, getQuotedName, getQuoter, getRenameCommand, getSeparator, getSQL, getTwin, getTypeName, hasChildren, isLib, isOwned, quote, setComment, setLibName, setLocation, setOwner, shallowCopyMethods inherited from interface org.pgcodekeeper.core.database.api.schema.ITable
getStatementType
-
Constructor Details
-
GpPartitionTable
Creates a new Greenplum partition table.- Parameters:
name- table name
-
-
Method Details
-
setPartitionGpBound
Sets the partition bounds for this Greenplum table.- Parameters:
partitionGpBounds- raw partition boundsnormalizedPartitionGpBounds- normalized partition bounds for comparison
-
addTemplate
Adds a partition template to this table.- Parameters:
template- partition template to add
-
getPartitionBy
Description copied from class:PgAbstractRegularTableGets the partition specification for this table.- Overrides:
getPartitionByin classPgAbstractRegularTable- Returns:
- partition by clause or null if not partitioned
-
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 classPgAbstractRegularTable- Parameters:
hasher- the hasher instance to use for hash computation
-