Class PgBaseType

All Implemented Interfaces:
ISearchPath, IStatement, IType, ICompressOptionContainer, IHashable

public class PgBaseType extends PgAbstractType implements ICompressOptionContainer
PostgreSQL base type implementation. Represents user-defined base types with input/output functions, storage properties, and optional Greenplum compression options.
  • Constructor Details

    • PgBaseType

      public PgBaseType(String name)
      Creates a new PostgreSQL base type.
      Parameters:
      name - type name
  • Method Details

    • setInputFunction

      public void setInputFunction(String inputFunction)
    • setOutputFunction

      public void setOutputFunction(String outputFunction)
    • setReceiveFunction

      public void setReceiveFunction(String receiveFunction)
    • setSendFunction

      public void setSendFunction(String sendFunction)
    • setTypmodInputFunction

      public void setTypmodInputFunction(String typmodInputFunction)
    • setTypmodOutputFunction

      public void setTypmodOutputFunction(String typmodOutputFunction)
    • setAnalyzeFunction

      public void setAnalyzeFunction(String analyzeFunction)
    • setSubscriptFunction

      public void setSubscriptFunction(String subscriptFunction)
    • setInternalLength

      public void setInternalLength(String internalLength)
    • setPassedByValue

      public void setPassedByValue(boolean passedByValue)
    • setAlignment

      public void setAlignment(String alignment)
    • setStorage

      public void setStorage(String storage)
    • setLikeType

      public void setLikeType(String likeType)
    • setCategory

      public void setCategory(String category)
    • setPreferred

      public void setPreferred(String preferred)
    • setDefaultValue

      public void setDefaultValue(String defaultValue)
    • setElement

      public void setElement(String element)
    • setDelimiter

      public void setDelimiter(String delimiter)
    • setCollatable

      public void setCollatable(String collatable)
    • setCompressType

      public void setCompressType(String compressType)
      Description copied from interface: ICompressOptionContainer
      Sets the compression type for this object.
      Specified by:
      setCompressType in interface ICompressOptionContainer
      Parameters:
      compressType - the compression type to set
    • setCompressLevel

      public void setCompressLevel(int compressLvl)
      Description copied from interface: ICompressOptionContainer
      Sets the compression level for this object.
      Specified by:
      setCompressLevel in interface ICompressOptionContainer
      Parameters:
      compressLvl - the compression level to set
    • setBlockSize

      public void setBlockSize(int blockSize)
      Description copied from interface: ICompressOptionContainer
      Sets the block size for this object.
      Specified by:
      setBlockSize in interface ICompressOptionContainer
      Parameters:
      blockSize - the block size to set
    • 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
    • compare

      public boolean compare(IStatement obj)
      Description copied from class: AbstractStatement
      This method does not account for nested child PgStatements. Shallow version of AbstractStatement.equals(Object)
      Specified by:
      compare in interface IStatement
      Overrides:
      compare in class AbstractStatement