Package app.ductape.sdk.database.types
Record Class SchemaTypes.IndexStatistics
java.lang.Object
java.lang.Record
app.ductape.sdk.database.types.SchemaTypes.IndexStatistics
- Enclosing class:
- SchemaTypes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbloated()Returns the value of thebloatedrecord component.Returns the value of thebloatPercentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theindexNamerecord component.lastUsed()Returns the value of thelastUsedrecord component.longscans()Returns the value of thescansrecord component.longReturns the value of thesizeBytesrecord component.Returns the value of thesizeFormattedrecord component.Returns the value of thetableNamerecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetuplesFetchedrecord component.longReturns the value of thetuplesReadrecord component.
-
Constructor Details
-
IndexStatistics
public IndexStatistics(String indexName, String tableName, long scans, long tuplesRead, long tuplesFetched, long sizeBytes, String sizeFormatted, Instant lastUsed, Boolean bloated, Double bloatPercent) Creates an instance of aIndexStatisticsrecord class.- Parameters:
indexName- the value for theindexNamerecord componenttableName- the value for thetableNamerecord componentscans- the value for thescansrecord componenttuplesRead- the value for thetuplesReadrecord componenttuplesFetched- the value for thetuplesFetchedrecord componentsizeBytes- the value for thesizeBytesrecord componentsizeFormatted- the value for thesizeFormattedrecord componentlastUsed- the value for thelastUsedrecord componentbloated- the value for thebloatedrecord componentbloatPercent- the value for thebloatPercentrecord component
-
-
Method Details
-
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 '=='. -
indexName
Returns the value of theindexNamerecord component.- Returns:
- the value of the
indexNamerecord component
-
tableName
Returns the value of thetableNamerecord component.- Returns:
- the value of the
tableNamerecord component
-
scans
public long scans()Returns the value of thescansrecord component.- Returns:
- the value of the
scansrecord component
-
tuplesRead
public long tuplesRead()Returns the value of thetuplesReadrecord component.- Returns:
- the value of the
tuplesReadrecord component
-
tuplesFetched
public long tuplesFetched()Returns the value of thetuplesFetchedrecord component.- Returns:
- the value of the
tuplesFetchedrecord component
-
sizeBytes
public long sizeBytes()Returns the value of thesizeBytesrecord component.- Returns:
- the value of the
sizeBytesrecord component
-
sizeFormatted
Returns the value of thesizeFormattedrecord component.- Returns:
- the value of the
sizeFormattedrecord component
-
lastUsed
Returns the value of thelastUsedrecord component.- Returns:
- the value of the
lastUsedrecord component
-
bloated
Returns the value of thebloatedrecord component.- Returns:
- the value of the
bloatedrecord component
-
bloatPercent
Returns the value of thebloatPercentrecord component.- Returns:
- the value of the
bloatPercentrecord component
-