Record Class MongoDbBackendConfig
java.lang.Object
java.lang.Record
org.apache.polaris.persistence.nosql.mongodb.MongoDbBackendConfig
-
Constructor Summary
ConstructorsConstructorDescriptionMongoDbBackendConfig(String databaseName, com.mongodb.client.MongoClient client, boolean closeClient, boolean allowPrefixDeletion) Creates an instance of aMongoDbBackendConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theallowPrefixDeletionrecord component.com.mongodb.client.MongoClientclient()Returns the value of theclientrecord component.booleanReturns the value of thecloseClientrecord component.Returns the value of thedatabaseNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MongoDbBackendConfig
public MongoDbBackendConfig(String databaseName, com.mongodb.client.MongoClient client, boolean closeClient, boolean allowPrefixDeletion) Creates an instance of aMongoDbBackendConfigrecord class.- Parameters:
databaseName- the value for thedatabaseNamerecord componentclient- the value for theclientrecord componentcloseClient- the value for thecloseClientrecord componentallowPrefixDeletion- the value for theallowPrefixDeletionrecord component
-
-
Method Details
-
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. -
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. -
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 '=='. -
databaseName
Returns the value of thedatabaseNamerecord component.- Returns:
- the value of the
databaseNamerecord component
-
client
public com.mongodb.client.MongoClient client()Returns the value of theclientrecord component.- Returns:
- the value of the
clientrecord component
-
closeClient
public boolean closeClient()Returns the value of thecloseClientrecord component.- Returns:
- the value of the
closeClientrecord component
-
allowPrefixDeletion
public boolean allowPrefixDeletion()Returns the value of theallowPrefixDeletionrecord component.- Returns:
- the value of the
allowPrefixDeletionrecord component
-