Package | Description |
---|---|
com.couchbase.client.java |
Holds all classes that are needed for the Couchbase Java SDK.
|
com.couchbase.client.java.kv |
Namespace for various kv-service related classes.
|
Modifier and Type | Method and Description |
---|---|
MutationResult |
BinaryCollection.append(String id,
byte[] content)
Appends binary content to the document.
|
MutationResult |
BinaryCollection.append(String id,
byte[] content,
AppendOptions options)
Appends binary content to the document with custom options.
|
MutationResult |
Collection.insert(String id,
Object content)
Inserts a full document which does not exist yet.
|
MutationResult |
Collection.insert(String id,
Object content,
InsertOptions options)
Inserts a full document which does not exist yet with custom options.
|
MutationResult |
BinaryCollection.prepend(String id,
byte[] content)
Prepends binary content to the document.
|
MutationResult |
BinaryCollection.prepend(String id,
byte[] content,
PrependOptions options)
Prepends binary content to the document with custom options.
|
MutationResult |
Collection.remove(String id)
Removes a Document from a collection.
|
MutationResult |
Collection.remove(String id,
RemoveOptions options)
Removes a Document from a collection with custom options.
|
MutationResult |
Collection.replace(String id,
Object content)
Replaces a full document which already exists.
|
MutationResult |
Collection.replace(String id,
Object content,
ReplaceOptions options)
Replaces a full document which already exists with custom options.
|
MutationResult |
Collection.touch(String id,
Duration expiry)
Updates the expiry of the document with the given id.
|
MutationResult |
Collection.touch(String id,
Duration expiry,
TouchOptions options)
Updates the expiry of the document with the given id with custom options.
|
MutationResult |
Collection.upsert(String id,
Object content)
Upserts a full document which might or might not exist yet.
|
MutationResult |
Collection.upsert(String id,
Object content,
UpsertOptions options)
Upserts a full document which might or might not exist yet with custom options.
|
Modifier and Type | Method and Description |
---|---|
CompletableFuture<MutationResult> |
AsyncBinaryCollection.append(String id,
byte[] content)
Appends binary content to the document.
|
Mono<MutationResult> |
ReactiveBinaryCollection.append(String id,
byte[] content)
Appends binary content to the document.
|
CompletableFuture<MutationResult> |
AsyncBinaryCollection.append(String id,
byte[] content,
AppendOptions options)
Appends binary content to the document with custom options.
|
Mono<MutationResult> |
ReactiveBinaryCollection.append(String id,
byte[] content,
AppendOptions options)
Appends binary content to the document with custom options.
|
CompletableFuture<MutationResult> |
AsyncCollection.insert(String id,
Object content)
Inserts a full document which does not exist yet with default options.
|
Mono<MutationResult> |
ReactiveCollection.insert(String id,
Object content)
Inserts a full document which does not exist yet with default options.
|
CompletableFuture<MutationResult> |
AsyncCollection.insert(String id,
Object content,
InsertOptions options)
Inserts a full document which does not exist yet with custom options.
|
Mono<MutationResult> |
ReactiveCollection.insert(String id,
Object content,
InsertOptions options)
Inserts a full document which does not exist yet with custom options.
|
CompletableFuture<MutationResult> |
AsyncBinaryCollection.prepend(String id,
byte[] content)
Prepends binary content to the document.
|
Mono<MutationResult> |
ReactiveBinaryCollection.prepend(String id,
byte[] content)
Prepends binary content to the document.
|
CompletableFuture<MutationResult> |
AsyncBinaryCollection.prepend(String id,
byte[] content,
PrependOptions options)
Prepends binary content to the document with custom options.
|
Mono<MutationResult> |
ReactiveBinaryCollection.prepend(String id,
byte[] content,
PrependOptions options)
Prepends binary content to the document with custom options.
|
CompletableFuture<MutationResult> |
AsyncCollection.remove(String id)
Removes a Document from a collection with default options.
|
Mono<MutationResult> |
ReactiveCollection.remove(String id)
Removes a Document from a collection with default options.
|
CompletableFuture<MutationResult> |
AsyncCollection.remove(String id,
RemoveOptions options)
Removes a Document from a collection with custom options.
|
Mono<MutationResult> |
ReactiveCollection.remove(String id,
RemoveOptions options)
Removes a Document from a collection with custom options.
|
CompletableFuture<MutationResult> |
AsyncCollection.replace(String id,
Object content)
Replaces a full document which already exists with default options.
|
Mono<MutationResult> |
ReactiveCollection.replace(String id,
Object content)
Replaces a full document which already exists with default options.
|
CompletableFuture<MutationResult> |
AsyncCollection.replace(String id,
Object content,
ReplaceOptions options)
Replaces a full document which already exists with custom options.
|
Mono<MutationResult> |
ReactiveCollection.replace(String id,
Object content,
ReplaceOptions options)
Replaces a full document which already exists with custom options.
|
CompletableFuture<MutationResult> |
AsyncCollection.touch(String id,
Duration expiry)
Updates the expiry of the document with the given id with default options.
|
Mono<MutationResult> |
ReactiveCollection.touch(String id,
Duration expiry)
Updates the expiry of the document with the given id with default options.
|
CompletableFuture<MutationResult> |
AsyncCollection.touch(String id,
Duration expiry,
TouchOptions options)
Updates the expiry of the document with the given id with custom options.
|
Mono<MutationResult> |
ReactiveCollection.touch(String id,
Duration expiry,
TouchOptions options)
Updates the expiry of the document with the given id with custom options.
|
CompletableFuture<MutationResult> |
AsyncCollection.upsert(String id,
Object content)
Upserts a full document which might or might not exist yet with default options.
|
Mono<MutationResult> |
ReactiveCollection.upsert(String id,
Object content)
Upserts a full document which might or might not exist yet with default options.
|
CompletableFuture<MutationResult> |
AsyncCollection.upsert(String id,
Object content,
UpsertOptions options)
Upserts a full document which might or might not exist yet with custom options.
|
Mono<MutationResult> |
ReactiveCollection.upsert(String id,
Object content,
UpsertOptions options)
Upserts a full document which might or might not exist yet with custom options.
|
Modifier and Type | Class and Description |
---|---|
class |
CounterResult
Result returned from counter (increment, decrement) operations.
|
class |
MutateInResult
This result is returned from successful KeyValue subdocument mutation responses.
|
Modifier and Type | Method and Description |
---|---|
static <T extends MutationResult> |
DurabilityUtils.wrapWithDurability(CompletableFuture<T> input,
String key,
PersistTo persistTo,
ReplicateTo replicateTo,
Core core,
KeyValueRequest<?> request,
boolean remove)
Helper method to wrap a mutation result to perform durability requirements if needed.
|
Modifier and Type | Method and Description |
---|---|
static CompletableFuture<MutationResult> |
AppendAccessor.append(Core core,
AppendRequest request,
String key,
PersistTo persistTo,
ReplicateTo replicateTo) |
static CompletableFuture<MutationResult> |
InsertAccessor.insert(Core core,
InsertRequest request,
String key,
PersistTo persistTo,
ReplicateTo replicateTo) |
static CompletableFuture<MutationResult> |
PrependAccessor.prepend(Core core,
PrependRequest request,
String key,
PersistTo persistTo,
ReplicateTo replicateTo) |
static CompletableFuture<MutationResult> |
RemoveAccessor.remove(Core core,
RemoveRequest request,
String key,
PersistTo persistTo,
ReplicateTo replicateTo) |
static CompletableFuture<MutationResult> |
ReplaceAccessor.replace(Core core,
ReplaceRequest request,
String key,
PersistTo persistTo,
ReplicateTo replicateTo) |
static CompletableFuture<MutationResult> |
TouchAccessor.touch(Core core,
TouchRequest request,
String key) |
static CompletableFuture<MutationResult> |
UpsertAccessor.upsert(Core core,
UpsertRequest request,
String key,
PersistTo persistTo,
ReplicateTo replicateTo) |
Copyright © 2020 Couchbase, Inc.. All rights reserved.