Record Class MongoInsertTableHandle
java.lang.Object
java.lang.Record
io.trino.plugin.mongodb.MongoInsertTableHandle
- All Implemented Interfaces:
ConnectorInsertTableHandle
public record MongoInsertTableHandle(RemoteTableName remoteTableName, List<MongoColumnHandle> columns, Optional<String> temporaryTableName, Optional<String> pageSinkIdColumnName)
extends Record
implements ConnectorInsertTableHandle
-
Constructor Summary
ConstructorsConstructorDescriptionMongoInsertTableHandle(RemoteTableName remoteTableName, List<MongoColumnHandle> columns, Optional<String> temporaryTableName, Optional<String> pageSinkIdColumnName) Creates an instance of aMongoInsertTableHandlerecord class. -
Method Summary
Modifier and TypeMethodDescriptioncolumns()Returns the value of thecolumnsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thepageSinkIdColumnNamerecord component.Returns the value of theremoteTableNamerecord component.Returns the value of thetemporaryTableNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MongoInsertTableHandle
public MongoInsertTableHandle(RemoteTableName remoteTableName, List<MongoColumnHandle> columns, Optional<String> temporaryTableName, Optional<String> pageSinkIdColumnName) Creates an instance of aMongoInsertTableHandlerecord class.- Parameters:
remoteTableName- the value for theremoteTableNamerecord componentcolumns- the value for thecolumnsrecord componenttemporaryTableName- the value for thetemporaryTableNamerecord componentpageSinkIdColumnName- the value for thepageSinkIdColumnNamerecord component
-
-
Method Details
-
getTemporaryRemoteTableName
-
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). -
remoteTableName
Returns the value of theremoteTableNamerecord component.- Returns:
- the value of the
remoteTableNamerecord component
-
columns
Returns the value of thecolumnsrecord component.- Returns:
- the value of the
columnsrecord component
-
temporaryTableName
-
pageSinkIdColumnName
-