Record Class PartitionInfo
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>
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
active()
Returns the value of theactive
record component.boolean
attached()
Returns the value of theattached
record component.static PartitionInfo.Builder
builder()
int
compareTo
(@NotNull PartitionInfo other) long
Returns the value of thediskSizeMb
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
Returns the value of themaxTimestamp
record component.Returns the value of theminTimestamp
record component.name()
Returns the value of thename
record component.long
numRows()
Returns the value of thenumRows
record component.Returns the value of thepartitionIndex
record component.table()
Returns the value of thetable
record component.final String
toString()
Returns a string representation of this record class.
-
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 aPartitionInfo
record class.- Parameters:
partitionIndex
- the value for thepartitionIndex
record componenttable
- the value for thetable
record componentname
- the value for thename
record componentminTimestamp
- the value for theminTimestamp
record componentmaxTimestamp
- the value for themaxTimestamp
record componentnumRows
- the value for thenumRows
record componentdiskSizeMb
- the value for thediskSizeMb
record componentactive
- the value for theactive
record componentattached
- the value for theattached
record component
-
-
Method Details
-
compareTo
- Specified by:
compareTo
in interfaceComparable<PartitionInfo>
-
isDetached
public boolean isDetached() -
builder
-
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 '=='. -
partitionIndex
Returns the value of thepartitionIndex
record component.- Returns:
- the value of the
partitionIndex
record component
-
table
Returns the value of thetable
record component.- Returns:
- the value of the
table
record component
-
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
minTimestamp
Returns the value of theminTimestamp
record component.- Returns:
- the value of the
minTimestamp
record component
-
maxTimestamp
Returns the value of themaxTimestamp
record component.- Returns:
- the value of the
maxTimestamp
record component
-
numRows
public long numRows()Returns the value of thenumRows
record component.- Returns:
- the value of the
numRows
record component
-
diskSizeMb
public long diskSizeMb()Returns the value of thediskSizeMb
record component.- Returns:
- the value of the
diskSizeMb
record component
-
active
public boolean active()Returns the value of theactive
record component.- Returns:
- the value of the
active
record component
-
attached
public boolean attached()Returns the value of theattached
record component.- Returns:
- the value of the
attached
record component
-