Package org.pgcodekeeper.core.schema.pg
Class PartitionTemplateContainer
java.lang.Object
org.pgcodekeeper.core.schema.pg.PartitionTemplateContainer
- All Implemented Interfaces:
IHashable
Container for Greenplum partition template information.
Manages subpartition template definitions for Greenplum partitioned tables.
-
Constructor Summary
ConstructorsConstructorDescriptionPartitionTemplateContainer(String partitionName) Creates a new partition template container. -
Method Summary
Modifier and TypeMethodDescriptionvoidcomputeHash(Hasher hasher) Computes the hash of the implementing object using the provided hasher.booleanGets the partition name for this template.inthashCode()booleanChecks if this template has any subpartition elements.voidsetSubElems(String subElement, String normalizedSubElement) Adds a subpartition element to this template.
-
Constructor Details
-
PartitionTemplateContainer
Creates a new partition template container.- Parameters:
partitionName- name of the partition, can be null for table-level templates
-
-
Method Details
-
setSubElems
Adds a subpartition element to this template.- Parameters:
subElement- raw subpartition elementnormalizedSubElement- normalized subpartition element for comparison
-
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() -
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- Parameters:
hasher- the hasher instance to use for hash computation
-
equals
-