Record Class QueryProcessor.ColumnMetadata<K extends DataPointQueryKey>

java.lang.Object
java.lang.Record
com.inductiveautomation.historian.gateway.types.internal.questdb.util.QueryProcessor.ColumnMetadata<K>
Enclosing class:
QueryProcessor

public static record QueryProcessor.ColumnMetadata<K extends DataPointQueryKey>(K extends DataPointQueryKey key, QuestDataColumnType columnType, int valueIndex, int timestampIndex, int qualityIndex, Optional<AggregationType> aggregationType) extends Record
  • Constructor Details

    • ColumnMetadata

      public ColumnMetadata(K definition, QuestDataColumnType columnType, int valueIndex, int timestampIndex, int qualityIndex, @Nullable @Nullable AggregationType aggregationType)
    • ColumnMetadata

      public ColumnMetadata(K key, QuestDataColumnType columnType, int valueIndex, int timestampIndex, int qualityIndex, Optional<AggregationType> aggregationType)
      Creates an instance of a ColumnMetadata record class.
      Parameters:
      key - the value for the key record component
      columnType - the value for the columnType record component
      valueIndex - the value for the valueIndex record component
      timestampIndex - the value for the timestampIndex record component
      qualityIndex - the value for the qualityIndex record component
      aggregationType - the value for the aggregationType record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • key

      public K key()
      Returns the value of the key record component.
      Returns:
      the value of the key record component
    • columnType

      public QuestDataColumnType columnType()
      Returns the value of the columnType record component.
      Returns:
      the value of the columnType record component
    • valueIndex

      public int valueIndex()
      Returns the value of the valueIndex record component.
      Returns:
      the value of the valueIndex record component
    • timestampIndex

      public int timestampIndex()
      Returns the value of the timestampIndex record component.
      Returns:
      the value of the timestampIndex record component
    • qualityIndex

      public int qualityIndex()
      Returns the value of the qualityIndex record component.
      Returns:
      the value of the qualityIndex record component
    • aggregationType

      public Optional<AggregationType> aggregationType()
      Returns the value of the aggregationType record component.
      Returns:
      the value of the aggregationType record component