Record Class QuestDbTableConfiguration
java.lang.Object
java.lang.Record
com.inductiveautomation.historian.gateway.types.internal.questdb.tables.QuestDbTableConfiguration
public record QuestDbTableConfiguration(String tableName, QuestDbTable tableType, QuestDbTimeUnit partitionInterval, boolean dedupEnabled)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionQuestDbTableConfiguration(String tableName, QuestDbTable tableType, QuestDbTimeUnit partitionInterval, boolean dedupEnabled) Creates an instance of aQuestDbTableConfigurationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic QuestDbTableConfigurationcreate(String sanitizedTableName, QuestDbTable tableType, QuestDbTimeUnit partitionInterval, boolean dedupEnabled) booleanReturns the value of thededupEnabledrecord component.final booleanIndicates whether some other object is "equal to" this one.Generates the dedup alter query for the table.final inthashCode()Returns a hash code value for this object.Returns the value of thepartitionIntervalrecord component.Returns the value of thetableNamerecord component.Returns the value of thetableTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
QuestDbTableConfiguration
public QuestDbTableConfiguration(String tableName, QuestDbTable tableType, QuestDbTimeUnit partitionInterval, boolean dedupEnabled) Creates an instance of aQuestDbTableConfigurationrecord class.- Parameters:
tableName- the value for thetableNamerecord componenttableType- the value for thetableTyperecord componentpartitionInterval- the value for thepartitionIntervalrecord componentdedupEnabled- the value for thededupEnabledrecord component
-
-
Method Details
-
create
public static QuestDbTableConfiguration create(String sanitizedTableName, QuestDbTable tableType, QuestDbTimeUnit partitionInterval, boolean dedupEnabled) -
generateCreateTableQuery
-
generateDedupAlterQuery
Generates the dedup alter query for the table.- Returns:
- An Optional containing the dedup alter query if applicable, otherwise an empty Optional.
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
tableName
Returns the value of thetableNamerecord component.- Returns:
- the value of the
tableNamerecord component
-
tableType
Returns the value of thetableTyperecord component.- Returns:
- the value of the
tableTyperecord component
-
partitionInterval
Returns the value of thepartitionIntervalrecord component.- Returns:
- the value of the
partitionIntervalrecord component
-
dedupEnabled
public boolean dedupEnabled()Returns the value of thededupEnabledrecord component.- Returns:
- the value of the
dedupEnabledrecord component
-