Class ChTableLog

All Implemented Interfaces:
IHashable, IOptionContainer, IRelation, ISearchPath, IStatement, IStatementContainer

public final class ChTableLog extends ChTable
Represents a ClickHouse Log family table that supports constraints. Extends ChTable with the ability to add CHECK and ASSUME constraints.
  • Constructor Details

    • ChTableLog

      public ChTableLog(String name)
      Creates a new ClickHouse Log table with the specified name.
      Parameters:
      name - the name of the table
  • Method Details

    • addConstraint

      public void addConstraint(AbstractConstraint constraint)
      Description copied from class: PgStatementContainer
      Adds a constraint to this container.
      Overrides:
      addConstraint in class AbstractTable
      Parameters:
      constraint - the constraint to add
    • appendAlterSQL

      public ObjectState appendAlterSQL(PgStatement newCondition, SQLScript script)
      Description copied from class: PgStatement
      Fill script with object changes and return change type
      Overrides:
      appendAlterSQL in class ChTable
      Parameters:
      newCondition - new object state
      script - script to collect changes
      Returns:
      object change type
    • 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 ChTable
    • 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 ChTable
      Parameters:
      hasher - the hasher instance to use for hash computation