Record Class MutationAttemptRoot
java.lang.Object
java.lang.Record
org.apache.polaris.persistence.nosql.metastore.mutation.MutationAttemptRoot
public record MutationAttemptRoot(org.apache.polaris.persistence.nosql.api.commit.CommitterState<org.apache.polaris.persistence.nosql.coretypes.realm.RootObj,MutationResults> state, Supplier<Optional<org.apache.polaris.persistence.nosql.coretypes.realm.RootObj>> refObjSupplier, EntityUpdate update)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionMutationAttemptRoot(org.apache.polaris.persistence.nosql.api.commit.CommitterState<org.apache.polaris.persistence.nosql.coretypes.realm.RootObj, MutationResults> state, Supplier<Optional<org.apache.polaris.persistence.nosql.coretypes.realm.RootObj>> refObjSupplier, EntityUpdate update) Creates an instance of aMutationAttemptRootrecord class. -
Method Summary
Modifier and TypeMethodDescriptionOptional<org.apache.polaris.persistence.nosql.coretypes.realm.RootObj> apply()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 therefObjSupplierrecord component.org.apache.polaris.persistence.nosql.api.commit.CommitterState<org.apache.polaris.persistence.nosql.coretypes.realm.RootObj, MutationResults> state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.update()Returns the value of theupdaterecord component.
-
Constructor Details
-
MutationAttemptRoot
public MutationAttemptRoot(org.apache.polaris.persistence.nosql.api.commit.CommitterState<org.apache.polaris.persistence.nosql.coretypes.realm.RootObj, MutationResults> state, Supplier<Optional<org.apache.polaris.persistence.nosql.coretypes.realm.RootObj>> refObjSupplier, EntityUpdate update) Creates an instance of aMutationAttemptRootrecord class.- Parameters:
state- the value for thestaterecord componentrefObjSupplier- the value for therefObjSupplierrecord componentupdate- the value for theupdaterecord component
-
-
Method Details
-
apply
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
state
public org.apache.polaris.persistence.nosql.api.commit.CommitterState<org.apache.polaris.persistence.nosql.coretypes.realm.RootObj,MutationResults> state()Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
refObjSupplier
public Supplier<Optional<org.apache.polaris.persistence.nosql.coretypes.realm.RootObj>> refObjSupplier()Returns the value of therefObjSupplierrecord component.- Returns:
- the value of the
refObjSupplierrecord component
-
update
Returns the value of theupdaterecord component.- Returns:
- the value of the
updaterecord component
-