public class RangeScanCreateRequest extends PredeterminedPartitionRequest<RangeScanCreateResponse>
| Modifier and Type | Method and Description |
|---|---|
RangeScanCreateResponse |
decode(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf response,
KeyValueChannelContext ctx)
Decode the encoded response into its message representation.
|
com.couchbase.client.core.deps.io.netty.buffer.ByteBuf |
encode(com.couchbase.client.core.deps.io.netty.buffer.ByteBufAllocator alloc,
int opaque,
KeyValueChannelContext ctx)
Encode this request with the given allocator and opaque.
|
static RangeScanCreateRequest |
forRangeScan(byte[] startTerm,
CoreRangeScan rangeScan,
CoreScanOptions options,
short partition,
CoreContext ctx,
CollectionIdentifier collectionIdentifier,
Map<Short,MutationToken> consistencyMap) |
static RangeScanCreateRequest |
forSamplingScan(CoreSamplingScan samplingScan,
CoreScanOptions options,
short partition,
CoreContext ctx,
CollectionIdentifier collectionIdentifier,
Map<Short,MutationToken> consistencyMap) |
boolean |
idempotent()
Returns if the given request is idempotent or not.
|
String |
toString() |
partition, partitionbucket, collectionIdentifier, encodedExternalKeyWithCollection, encodedKeyWithCollection, errorCode, indicateRejectedWithNotMyVbucket, key, nextOpaque, opaque, operationId, rejectedWithNotMyVbucket, serviceContext, serviceTypeabsoluteTimeout, cancel, cancellationReason, cancelled, completed, context, createdAt, fail, failed, id, requestSpan, response, retryStrategy, succeed, succeeded, timeout, timeoutElapsed, timeoutRegistrationclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitabsoluteTimeout, cancel, cancel, cancellationReason, cancelled, completed, context, createdAt, fail, failed, id, name, requestSpan, response, retryStrategy, succeed, succeeded, target, timeout, timeoutElapsed, timeoutRegistrationpublic static RangeScanCreateRequest forRangeScan(byte[] startTerm, CoreRangeScan rangeScan, CoreScanOptions options, short partition, CoreContext ctx, CollectionIdentifier collectionIdentifier, Map<Short,MutationToken> consistencyMap)
public static RangeScanCreateRequest forSamplingScan(CoreSamplingScan samplingScan, CoreScanOptions options, short partition, CoreContext ctx, CollectionIdentifier collectionIdentifier, Map<Short,MutationToken> consistencyMap)
public com.couchbase.client.core.deps.io.netty.buffer.ByteBuf encode(com.couchbase.client.core.deps.io.netty.buffer.ByteBufAllocator alloc,
int opaque,
KeyValueChannelContext ctx)
KeyValueRequestalloc - the allocator where to grab the buffers from.opaque - the opaque value to use.ctx - more encode context.ByteBuf.public RangeScanCreateResponse decode(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf response, KeyValueChannelContext ctx)
KeyValueRequestresponse - the response to decode.public boolean idempotent()
RequestBy default, this method always returns false for data consistency reasons. Only specific idempotent operations should override this default since it impacts retry handling quite a bit. DO NOT SET THIS TO TRUE ON MUTATING OPERATIONS!
Copyright © 2024 Couchbase, Inc.. All rights reserved.