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 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 a MongoTableHandle record class.
      Parameters:
      schemaTableName - the value for the schemaTableName record component
      remoteTableName - the value for the remoteTableName record component
      filter - the value for the filter record component
      constraint - the value for the constraint record component
      projectedColumns - the value for the projectedColumns record component
      limit - the value for the limit record component
  • Method Details

    • toString

      public String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • withProjectedColumns

      public MongoTableHandle withProjectedColumns(Set<MongoColumnHandle> projectedColumns)
    • withConstraint

      public MongoTableHandle withConstraint(TupleDomain<ColumnHandle> constraint)
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • schemaTableName

      public SchemaTableName schemaTableName()
      Returns the value of the schemaTableName record component.
      Returns:
      the value of the schemaTableName record component
    • remoteTableName

      public RemoteTableName remoteTableName()
      Returns the value of the remoteTableName record component.
      Returns:
      the value of the remoteTableName record component
    • filter

      public Optional<String> filter()
      Returns the value of the filter record component.
      Returns:
      the value of the filter record component
    • constraint

      public TupleDomain<ColumnHandle> constraint()
      Returns the value of the constraint record component.
      Returns:
      the value of the constraint record component
    • projectedColumns

      public Set<MongoColumnHandle> projectedColumns()
      Returns the value of the projectedColumns record component.
      Returns:
      the value of the projectedColumns record component
    • limit

      public OptionalInt limit()
      Returns the value of the limit record component.
      Returns:
      the value of the limit record component