Class ChEngine
java.lang.Object
org.pgcodekeeper.core.database.ch.schema.ChEngine
- All Implemented Interfaces:
Serializable,IHashable
Represents a ClickHouse table engine configuration.
Contains engine name, parameters, and various engine-specific settings like
partition keys, order by clauses, TTL expressions, and engine options.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds an engine option with the specified key and value.voidcomputeHash(Hasher hasher) Computes the hash of the implementing object using the provided hasher.booleancontainsOption(String key) Checks if this engine contains the specified option.booleangetName()inthashCode()voidvoidsetOrderBy(String orderBy) voidsetPartitionBy(String partitionBy) voidsetPrimaryKey(String primaryKey) voidsetSampleBy(String sampleBy) void
-
Constructor Details
-
ChEngine
Creates a new ClickHouse engine with the specified name.- Parameters:
name- the name of the engine (e.g., MergeTree, ReplacingMergeTree)
-
-
Method Details
-
getName
-
setBody
-
setPartitionBy
-
setPrimaryKey
-
setOrderBy
-
setSampleBy
-
setTtl
-
addOption
Adds an engine option with the specified key and value.- Parameters:
option- the option namevalue- the option value
-
containsOption
Checks if this engine contains the specified option.- Parameters:
key- the option key to check- Returns:
- true if the option exists, false otherwise
-
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
-