Record Class MongoTable
java.lang.Object
java.lang.Record
io.trino.plugin.mongodb.MongoTable
public record MongoTable(MongoTableHandle tableHandle, List<MongoColumnHandle> columns, List<MongoIndex> indexes, Optional<String> comment)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionMongoTable(MongoTableHandle tableHandle, List<MongoColumnHandle> columns, List<MongoIndex> indexes, Optional<String> comment) Creates an instance of aMongoTablerecord class. -
Method Summary
Modifier and TypeMethodDescriptioncolumns()Returns the value of thecolumnsrecord component.comment()Returns the value of thecommentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.indexes()Returns the value of theindexesrecord component.Returns the value of thetableHandlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MongoTable
public MongoTable(MongoTableHandle tableHandle, List<MongoColumnHandle> columns, List<MongoIndex> indexes, Optional<String> comment) Creates an instance of aMongoTablerecord class.- Parameters:
tableHandle- the value for thetableHandlerecord componentcolumns- the value for thecolumnsrecord componentindexes- the value for theindexesrecord componentcomment- the value for thecommentrecord component
-
-
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). -
tableHandle
Returns the value of thetableHandlerecord component.- Returns:
- the value of the
tableHandlerecord component
-
columns
Returns the value of thecolumnsrecord component.- Returns:
- the value of the
columnsrecord component
-
indexes
Returns the value of theindexesrecord component.- Returns:
- the value of the
indexesrecord component
-
comment
-