java.lang.Object
java.lang.Record
com.inductiveautomation.historian.gateway.types.internal.questdb.tables.types.PartitionInfo
All Implemented Interfaces:
Comparable<PartitionInfo>

public record PartitionInfo(Integer partitionIndex, String table, String name, Instant minTimestamp, Instant maxTimestamp, long numRows, long diskSizeMb, boolean active, boolean attached) extends Record implements Comparable<PartitionInfo>
  • Constructor Details

    • PartitionInfo

      public PartitionInfo(Integer partitionIndex, String table, String name, Instant minTimestamp, Instant maxTimestamp, long numRows, long diskSizeMb, boolean active, boolean attached)
      Creates an instance of a PartitionInfo record class.
      Parameters:
      partitionIndex - the value for the partitionIndex record component
      table - the value for the table record component
      name - the value for the name record component
      minTimestamp - the value for the minTimestamp record component
      maxTimestamp - the value for the maxTimestamp record component
      numRows - the value for the numRows record component
      diskSizeMb - the value for the diskSizeMb record component
      active - the value for the active record component
      attached - the value for the attached record component
  • Method Details

    • compareTo

      public int compareTo(@NotNull @NotNull PartitionInfo other)
      Specified by:
      compareTo in interface Comparable<PartitionInfo>
    • isDetached

      public boolean isDetached()
    • builder

      public static PartitionInfo.Builder builder()
    • 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.
    • partitionIndex

      public Integer partitionIndex()
      Returns the value of the partitionIndex record component.
      Returns:
      the value of the partitionIndex record component
    • table

      public String table()
      Returns the value of the table record component.
      Returns:
      the value of the table record component
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • minTimestamp

      public Instant minTimestamp()
      Returns the value of the minTimestamp record component.
      Returns:
      the value of the minTimestamp record component
    • maxTimestamp

      public Instant maxTimestamp()
      Returns the value of the maxTimestamp record component.
      Returns:
      the value of the maxTimestamp record component
    • numRows

      public long numRows()
      Returns the value of the numRows record component.
      Returns:
      the value of the numRows record component
    • diskSizeMb

      public long diskSizeMb()
      Returns the value of the diskSizeMb record component.
      Returns:
      the value of the diskSizeMb record component
    • active

      public boolean active()
      Returns the value of the active record component.
      Returns:
      the value of the active record component
    • attached

      public boolean attached()
      Returns the value of the attached record component.
      Returns:
      the value of the attached record component