Record Class Operation.WriteOperation.PutOperation
java.lang.Object
java.lang.Record
io.streamnative.oxia.client.batch.Operation.WriteOperation.PutOperation
- All Implemented Interfaces:
Operation<PutResult>,Operation.WriteOperation<PutResult>
- Enclosing interface:
- Operation.WriteOperation<R>
public static record Operation.WriteOperation.PutOperation(@NonNull CompletableFuture<PutResult> callback, @NonNull String key, @NonNull Optional<String> partitionKey, @NonNull Optional<List<Long>> sequenceKeysDeltas, byte @NonNull [] value, @NonNull OptionalLong expectedVersionId, OptionalLong sessionId, Optional<String> clientIdentifier, List<OptionSecondaryIndex> secondaryIndexes)
extends Record
implements Operation.WriteOperation<PutResult>
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.streamnative.oxia.client.batch.Operation
Operation.ReadOperation<R>, Operation.WriteOperation<R>Nested classes/interfaces inherited from interface io.streamnative.oxia.client.batch.Operation.WriteOperation
Operation.WriteOperation.DeleteOperation, Operation.WriteOperation.DeleteRangeOperation, Operation.WriteOperation.PutOperation -
Constructor Summary
ConstructorsConstructorDescriptionPutOperation(@NonNull CompletableFuture<PutResult> callback, @NonNull String key, @NonNull Optional<String> partitionKey, @NonNull Optional<List<Long>> sequenceKeysDeltas, byte @NonNull [] value, @NonNull OptionalLong expectedVersionId, OptionalLong sessionId, Optional<String> clientIdentifier, List<OptionSecondaryIndex> secondaryIndexes) Creates an instance of aPutOperationrecord class. -
Method Summary
Modifier and TypeMethodDescription@NonNull CompletableFuture<PutResult>callback()Returns the value of thecallbackrecord component.Returns the value of theclientIdentifierrecord component.booleanIndicates whether some other object is "equal to" this one.@NonNull OptionalLongReturns the value of theexpectedVersionIdrecord component.inthashCode()Returns a hash code value for this object.@NonNull Stringkey()Returns the value of thekeyrecord component.Returns the value of thepartitionKeyrecord component.Returns the value of thesecondaryIndexesrecord component.Returns the value of thesequenceKeysDeltasrecord component.Returns the value of thesessionIdrecord component.final StringtoString()Returns a string representation of this record class.byte @NonNull []value()Returns the value of thevaluerecord component.
-
Constructor Details
-
PutOperation
public PutOperation(@NonNull @NonNull CompletableFuture<PutResult> callback, @NonNull @NonNull String key, @NonNull @NonNull Optional<String> partitionKey, @NonNull @NonNull Optional<List<Long>> sequenceKeysDeltas, byte @NonNull [] value, @NonNull @NonNull OptionalLong expectedVersionId, OptionalLong sessionId, Optional<String> clientIdentifier, List<OptionSecondaryIndex> secondaryIndexes) Creates an instance of aPutOperationrecord class.- Parameters:
callback- the value for thecallbackrecord componentkey- the value for thekeyrecord componentpartitionKey- the value for thepartitionKeyrecord componentsequenceKeysDeltas- the value for thesequenceKeysDeltasrecord componentvalue- the value for thevaluerecord componentexpectedVersionId- the value for theexpectedVersionIdrecord componentsessionId- the value for thesessionIdrecord componentclientIdentifier- the value for theclientIdentifierrecord componentsecondaryIndexes- the value for thesecondaryIndexesrecord component
-
-
Method Details
-
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). -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. -
callback
Returns the value of thecallbackrecord component. -
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
partitionKey
Returns the value of thepartitionKeyrecord component.- Returns:
- the value of the
partitionKeyrecord component
-
sequenceKeysDeltas
Returns the value of thesequenceKeysDeltasrecord component.- Returns:
- the value of the
sequenceKeysDeltasrecord component
-
value
public byte @NonNull [] value()Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
expectedVersionId
Returns the value of theexpectedVersionIdrecord component.- Returns:
- the value of the
expectedVersionIdrecord component
-
sessionId
Returns the value of thesessionIdrecord component.- Returns:
- the value of the
sessionIdrecord component
-
clientIdentifier
Returns the value of theclientIdentifierrecord component.- Returns:
- the value of the
clientIdentifierrecord component
-
secondaryIndexes
Returns the value of thesecondaryIndexesrecord component.- Returns:
- the value of the
secondaryIndexesrecord component
-