Record Class TableInfo
java.lang.Object
java.lang.Record
io.trino.plugin.memory.TableInfo
public record TableInfo(long id, String schemaName, String tableName, List<ColumnInfo> columns, boolean truncated, Map<HostAddress,MemoryDataFragment> dataFragments, Optional<String> comment)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionTableInfo(long id, String schemaName, String tableName, List<ColumnInfo> columns, boolean truncated, Map<HostAddress, MemoryDataFragment> dataFragments, Optional<String> comment) Creates an instance of aTableInforecord class. -
Method Summary
Modifier and TypeMethodDescriptioncolumns()Returns the value of thecolumnsrecord component.comment()Returns the value of thecommentrecord component.Returns the value of thedataFragmentsrecord component.final booleanIndicates whether some other object is "equal to" this one.getColumn(ColumnHandle handle) final inthashCode()Returns a hash code value for this object.longid()Returns the value of theidrecord component.Returns the value of theschemaNamerecord component.Returns the value of thetableNamerecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of thetruncatedrecord component.
-
Constructor Details
-
TableInfo
public TableInfo(long id, String schemaName, String tableName, List<ColumnInfo> columns, boolean truncated, Map<HostAddress, MemoryDataFragment> dataFragments, Optional<String> comment) Creates an instance of aTableInforecord class.- Parameters:
id- the value for theidrecord componentschemaName- the value for theschemaNamerecord componenttableName- the value for thetableNamerecord componentcolumns- the value for thecolumnsrecord componenttruncated- the value for thetruncatedrecord componentdataFragments- the value for thedataFragmentsrecord componentcomment- the value for thecommentrecord component
-
-
Method Details
-
getSchemaTableName
-
getMetadata
-
getColumn
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
id
public long id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
schemaName
Returns the value of theschemaNamerecord component.- Returns:
- the value of the
schemaNamerecord component
-
tableName
Returns the value of thetableNamerecord component.- Returns:
- the value of the
tableNamerecord component
-
columns
Returns the value of thecolumnsrecord component.- Returns:
- the value of the
columnsrecord component
-
truncated
public boolean truncated()Returns the value of thetruncatedrecord component.- Returns:
- the value of the
truncatedrecord component
-
dataFragments
Returns the value of thedataFragmentsrecord component.- Returns:
- the value of the
dataFragmentsrecord component
-
comment
-