Class CoreProtostellarKeyValueRequests
java.lang.Object
com.couchbase.client.core.protostellar.kv.CoreProtostellarKeyValueRequests
For creating Protostellar GRPC KV requests.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ProtostellarRequest
<com.couchbase.client.protostellar.kv.v1.ExistsRequest> existsRequest
(CoreProtostellar core, CoreKeyspace keyspace, CoreCommonOptions opts, String key) static ProtostellarRequest
<com.couchbase.client.protostellar.kv.v1.GetAndLockRequest> getAndLockRequest
(CoreProtostellar core, CoreCommonOptions opts, CoreKeyspace keyspace, String key, Duration lockTime, CompressionConfig compressionConfig) static ProtostellarRequest
<com.couchbase.client.protostellar.kv.v1.GetAndTouchRequest> getAndTouchRequest
(CoreProtostellar core, CoreCommonOptions opts, CoreKeyspace keyspace, String key, CoreExpiry expiry, CompressionConfig compressionConfig) static ProtostellarRequest
<com.couchbase.client.protostellar.kv.v1.GetRequest> getRequest
(CoreProtostellar core, CoreCommonOptions opts, CoreKeyspace keyspace, String key, List<String> projections, boolean withExpiry, CompressionConfig compressionConfig) static ProtostellarRequest
<com.couchbase.client.protostellar.kv.v1.InsertRequest> insertRequest
(CoreProtostellar core, CoreKeyspace keyspace, CoreCommonOptions opts, String key, Supplier<CoreEncodedContent> content, CoreDurability durability, CoreExpiry expiry, CompressionConfig compressionConfig) static ProtostellarRequest
<com.couchbase.client.protostellar.kv.v1.LookupInRequest> lookupInRequest
(CoreProtostellar core, CoreKeyspace keyspace, CoreCommonOptions opts, String key, List<CoreSubdocGetCommand> commands, boolean accessDeleted) static ProtostellarRequest
<com.couchbase.client.protostellar.kv.v1.MutateInRequest> mutateInRequest
(CoreProtostellar core, CoreKeyspace keyspace, CoreCommonOptions opts, String key, List<CoreSubdocMutateCommand> commands, CoreStoreSemantics storeSemantics, long cas, CoreDurability durability, CoreExpiry expiry, boolean preserveExpiry, boolean accessDeleted, boolean createAsDeleted) static ProtostellarRequest
<com.couchbase.client.protostellar.kv.v1.RemoveRequest> removeRequest
(CoreProtostellar core, CoreKeyspace keyspace, CoreCommonOptions opts, String key, long cas, CoreDurability durability) static ProtostellarRequest
<com.couchbase.client.protostellar.kv.v1.ReplaceRequest> replaceRequest
(CoreProtostellar core, CoreKeyspace keyspace, CoreCommonOptions opts, String key, Supplier<CoreEncodedContent> content, long cas, CoreDurability durability, CoreExpiry expiry, boolean preserveExpiry, CompressionConfig compressionConfig) static ProtostellarRequest
<com.couchbase.client.protostellar.kv.v1.TouchRequest> touchRequest
(CoreProtostellar core, CoreKeyspace keyspace, CoreCommonOptions opts, String key, CoreExpiry expiry) static ProtostellarRequest
<com.couchbase.client.protostellar.kv.v1.UnlockRequest> unlockRequest
(CoreProtostellar core, CoreKeyspace keyspace, CoreCommonOptions opts, String key, long cas) static ProtostellarRequest
<com.couchbase.client.protostellar.kv.v1.UpsertRequest> upsertRequest
(CoreProtostellar core, CoreKeyspace keyspace, CoreCommonOptions opts, String key, Supplier<CoreEncodedContent> content, CoreDurability durability, CoreExpiry expiry, boolean preserveExpiry, CompressionConfig compressionConfig)
-
Method Details
-
getRequest
public static ProtostellarRequest<com.couchbase.client.protostellar.kv.v1.GetRequest> getRequest(CoreProtostellar core, CoreCommonOptions opts, CoreKeyspace keyspace, String key, List<String> projections, boolean withExpiry, CompressionConfig compressionConfig) -
getAndLockRequest
public static ProtostellarRequest<com.couchbase.client.protostellar.kv.v1.GetAndLockRequest> getAndLockRequest(CoreProtostellar core, CoreCommonOptions opts, CoreKeyspace keyspace, String key, Duration lockTime, CompressionConfig compressionConfig) -
getAndTouchRequest
public static ProtostellarRequest<com.couchbase.client.protostellar.kv.v1.GetAndTouchRequest> getAndTouchRequest(CoreProtostellar core, CoreCommonOptions opts, CoreKeyspace keyspace, String key, CoreExpiry expiry, CompressionConfig compressionConfig) -
insertRequest
public static ProtostellarRequest<com.couchbase.client.protostellar.kv.v1.InsertRequest> insertRequest(CoreProtostellar core, CoreKeyspace keyspace, CoreCommonOptions opts, String key, Supplier<CoreEncodedContent> content, CoreDurability durability, CoreExpiry expiry, CompressionConfig compressionConfig) -
replaceRequest
public static ProtostellarRequest<com.couchbase.client.protostellar.kv.v1.ReplaceRequest> replaceRequest(CoreProtostellar core, CoreKeyspace keyspace, CoreCommonOptions opts, String key, Supplier<CoreEncodedContent> content, long cas, CoreDurability durability, CoreExpiry expiry, boolean preserveExpiry, CompressionConfig compressionConfig) -
upsertRequest
public static ProtostellarRequest<com.couchbase.client.protostellar.kv.v1.UpsertRequest> upsertRequest(CoreProtostellar core, CoreKeyspace keyspace, CoreCommonOptions opts, String key, Supplier<CoreEncodedContent> content, CoreDurability durability, CoreExpiry expiry, boolean preserveExpiry, CompressionConfig compressionConfig) -
removeRequest
public static ProtostellarRequest<com.couchbase.client.protostellar.kv.v1.RemoveRequest> removeRequest(CoreProtostellar core, CoreKeyspace keyspace, CoreCommonOptions opts, String key, long cas, CoreDurability durability) -
existsRequest
public static ProtostellarRequest<com.couchbase.client.protostellar.kv.v1.ExistsRequest> existsRequest(CoreProtostellar core, CoreKeyspace keyspace, CoreCommonOptions opts, String key) -
touchRequest
public static ProtostellarRequest<com.couchbase.client.protostellar.kv.v1.TouchRequest> touchRequest(CoreProtostellar core, CoreKeyspace keyspace, CoreCommonOptions opts, String key, CoreExpiry expiry) -
unlockRequest
public static ProtostellarRequest<com.couchbase.client.protostellar.kv.v1.UnlockRequest> unlockRequest(CoreProtostellar core, CoreKeyspace keyspace, CoreCommonOptions opts, String key, long cas) -
mutateInRequest
public static ProtostellarRequest<com.couchbase.client.protostellar.kv.v1.MutateInRequest> mutateInRequest(CoreProtostellar core, CoreKeyspace keyspace, CoreCommonOptions opts, String key, List<CoreSubdocMutateCommand> commands, CoreStoreSemantics storeSemantics, long cas, CoreDurability durability, CoreExpiry expiry, boolean preserveExpiry, boolean accessDeleted, boolean createAsDeleted) -
lookupInRequest
public static ProtostellarRequest<com.couchbase.client.protostellar.kv.v1.LookupInRequest> lookupInRequest(CoreProtostellar core, CoreKeyspace keyspace, CoreCommonOptions opts, String key, List<CoreSubdocGetCommand> commands, boolean accessDeleted)
-