Record Class TableStorage
java.lang.Object
java.lang.Record
com.cockroachlabs.crdb.spi.TableStorage
- Record Components:
schema- the table's schema (e.g.public)table- the table namerows- estimated row count, if availablebytes- approximate on-disk size in bytes, if available
public record TableStorage(String schema, String table, OptionalLong rows, OptionalLong bytes)
extends Record
Storage usage for a single table (Cockroach Plenum insight). Sizes are
optional because they are best-effort and may be unavailable on some cluster
versions.
-
Constructor Summary
ConstructorsConstructorDescriptionTableStorage(String schema, String table, OptionalLong rows, OptionalLong bytes) Creates an instance of aTableStoragerecord class. -
Method Summary
Modifier and TypeMethodDescriptionbytes()Returns the value of thebytesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.rows()Returns the value of therowsrecord component.schema()Returns the value of theschemarecord component.table()Returns the value of thetablerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
toString
-
hashCode
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
schema
-
table
-
rows
-
bytes
-