Record Class MongoTableHandle
java.lang.Object
java.lang.Record
io.trino.plugin.mongodb.MongoTableHandle
- All Implemented Interfaces:
ConnectorTableHandle
public record MongoTableHandle(SchemaTableName schemaTableName, RemoteTableName remoteTableName, Optional<String> filter, TupleDomain<ColumnHandle> constraint, Set<MongoColumnHandle> projectedColumns, OptionalInt limit)
extends Record
implements ConnectorTableHandle
-
Constructor Summary
ConstructorsConstructorDescriptionMongoTableHandle(SchemaTableName schemaTableName, RemoteTableName remoteTableName, Optional<String> filter) MongoTableHandle(SchemaTableName schemaTableName, RemoteTableName remoteTableName, Optional<String> filter, TupleDomain<ColumnHandle> constraint, Set<MongoColumnHandle> projectedColumns, OptionalInt limit) Creates an instance of aMongoTableHandlerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconstraintrecord component.final booleanIndicates whether some other object is "equal to" this one.filter()Returns the value of thefilterrecord component.final inthashCode()Returns a hash code value for this object.limit()Returns the value of thelimitrecord component.Returns the value of theprojectedColumnsrecord component.Returns the value of theremoteTableNamerecord component.Returns the value of theschemaTableNamerecord component.toString()Returns a string representation of this record class.withConstraint(TupleDomain<ColumnHandle> constraint) withProjectedColumns(Set<MongoColumnHandle> projectedColumns)
-
Constructor Details
-
MongoTableHandle
public MongoTableHandle(SchemaTableName schemaTableName, RemoteTableName remoteTableName, Optional<String> filter) -
MongoTableHandle
public MongoTableHandle(SchemaTableName schemaTableName, RemoteTableName remoteTableName, Optional<String> filter, TupleDomain<ColumnHandle> constraint, Set<MongoColumnHandle> projectedColumns, OptionalInt limit) Creates an instance of aMongoTableHandlerecord class.- Parameters:
schemaTableName- the value for theschemaTableNamerecord componentremoteTableName- the value for theremoteTableNamerecord componentfilter- the value for thefilterrecord componentconstraint- the value for theconstraintrecord componentprojectedColumns- the value for theprojectedColumnsrecord componentlimit- the value for thelimitrecord component
-
-
Method Details
-
toString
-
withProjectedColumns
-
withConstraint
-
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). -
schemaTableName
Returns the value of theschemaTableNamerecord component.- Returns:
- the value of the
schemaTableNamerecord component
-
remoteTableName
Returns the value of theremoteTableNamerecord component.- Returns:
- the value of the
remoteTableNamerecord component
-
filter
-
constraint
Returns the value of theconstraintrecord component.- Returns:
- the value of the
constraintrecord component
-
projectedColumns
Returns the value of theprojectedColumnsrecord component.- Returns:
- the value of the
projectedColumnsrecord component
-
limit
Returns the value of thelimitrecord component.- Returns:
- the value of the
limitrecord component
-