Package org.pgcodekeeper.core.schema.ch
Class ChTableLog
java.lang.Object
org.pgcodekeeper.core.schema.PgStatement
org.pgcodekeeper.core.schema.PgStatementContainer
org.pgcodekeeper.core.schema.AbstractTable
org.pgcodekeeper.core.schema.ch.ChTable
org.pgcodekeeper.core.schema.ch.ChTableLog
- All Implemented Interfaces:
IHashable,IOptionContainer,IRelation,ISearchPath,IStatement,IStatementContainer
Represents a ClickHouse Log family table that supports constraints.
Extends ChTable with the ability to add CHECK and ASSUME constraints.
-
Field Summary
Fields inherited from class org.pgcodekeeper.core.schema.PgStatement
GOFields inherited from interface org.pgcodekeeper.core.schema.IOptionContainer
GP_OPTION_LIST -
Constructor Summary
ConstructorsConstructorDescriptionChTableLog(String name) Creates a new ClickHouse Log table with the specified name. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddConstraint(AbstractConstraint constraint) Adds a constraint to this container.appendAlterSQL(PgStatement newCondition, SQLScript script) Fill script with object changes and return change typebooleancompare(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.Methods inherited from class org.pgcodekeeper.core.schema.ch.ChTable
addProjection, appendComments, compareOptions, getAlterTable, getCreationSQL, getDbType, setEngine, setPkExprMethods inherited from class org.pgcodekeeper.core.schema.AbstractTable
addColumn, addOption, appendMoveDataSql, columnAdder, compareChildren, compareIgnoringColumnOrder, computeChildrenHash, containsColumn, getColumn, getColumns, getConstraint, getConstraints, getOption, getOptions, getRelationColumns, getStatementType, isRecreated, shallowCopyMethods 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, getDeps, getDescendants, getDropSQL, getDropSQL, getLibName, getLocation, getName, getObjectState, getObjectState, getOwner, getParent, getPrivileges, getQualifiedName, getSQL, getTwin, getTypeName, hasChildren, hashCode, isLib, isOwned, isSubElement, setAuthor, setComment, setLibName, setLocation, setOwner, setParent, toStringMethods inherited from interface org.pgcodekeeper.core.schema.ISearchPath
getDatabase, getSchemaNameMethods inherited from interface org.pgcodekeeper.core.schema.IStatement
getBareName, getComment, getName, getParent, getQualifiedName
-
Constructor Details
-
ChTableLog
Creates a new ClickHouse Log table with the specified name.- Parameters:
name- the name of the table
-
-
Method Details
-
addConstraint
Description copied from class:PgStatementContainerAdds a constraint to this container.- Overrides:
addConstraintin classAbstractTable- Parameters:
constraint- the constraint to add
-
appendAlterSQL
Description copied from class:PgStatementFill script with object changes and return change type- Overrides:
appendAlterSQLin classChTable- Parameters:
newCondition- new object statescript- script to collect changes- Returns:
- object change type
-
compare
Description copied from class:PgStatementThis method does not account for nested child PgStatements. Shallow version ofPgStatement.equals(Object) -
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 classChTable- Parameters:
hasher- the hasher instance to use for hash computation
-