Uses of Class
com.couchbase.client.java.document.JsonDocument
-
Uses of JsonDocument in com.couchbase.client.java
Methods in com.couchbase.client.java that return JsonDocument Modifier and Type Method Description JsonDocument
Bucket. get(String id)
Retrieves aJsonDocument
by its unique ID with the default key/value timeout.JsonDocument
Bucket. get(String id, long timeout, TimeUnit timeUnit)
Retrieves aJsonDocument
by its unique ID with a custom timeout.JsonDocument
CouchbaseBucket. get(String id)
JsonDocument
CouchbaseBucket. get(String id, long timeout, TimeUnit timeUnit)
JsonDocument
Bucket. getAndLock(String id, int lockTime)
Retrieve and lock aJsonDocument
by its unique ID with the default key/value timeout.JsonDocument
Bucket. getAndLock(String id, int lockTime, long timeout, TimeUnit timeUnit)
Retrieve and lock aJsonDocument
by its unique ID with a custom timeout.JsonDocument
CouchbaseBucket. getAndLock(String id, int lockTime)
JsonDocument
CouchbaseBucket. getAndLock(String id, int lockTime, long timeout, TimeUnit timeUnit)
JsonDocument
Bucket. getAndTouch(String id, int expiry)
Retrieve and touch aJsonDocument
by its unique ID with the default key/value timeout.JsonDocument
Bucket. getAndTouch(String id, int expiry, long timeout, TimeUnit timeUnit)
Retrieve and touch aJsonDocument
by its unique ID with the a custom timeout.JsonDocument
CouchbaseBucket. getAndTouch(String id, int expiry)
JsonDocument
CouchbaseBucket. getAndTouch(String id, int expiry, long timeout, TimeUnit timeUnit)
JsonDocument
Bucket. remove(String id)
Removes aDocument
from the Server identified by its ID with the default key/value timeout.JsonDocument
Bucket. remove(String id, long timeout, TimeUnit timeUnit)
Removes aDocument
from the Server identified by its ID with a custom timeout.JsonDocument
Bucket. remove(String id, PersistTo persistTo)
Removes aDocument
from the Server by its ID and apply a durability requirement with the default key/value timeout.JsonDocument
Bucket. remove(String id, PersistTo persistTo, long timeout, TimeUnit timeUnit)
Removes aDocument
from the Server by its ID and apply a durability requirement with a custom timeout.JsonDocument
Bucket. remove(String id, PersistTo persistTo, ReplicateTo replicateTo)
Removes aDocument
from the Server by its ID and apply a durability requirement with the default key/value timeout.JsonDocument
Bucket. remove(String id, PersistTo persistTo, ReplicateTo replicateTo, long timeout, TimeUnit timeUnit)
Removes aDocument
from the Server by its ID and apply a durability requirement with a custom timeout.JsonDocument
Bucket. remove(String id, ReplicateTo replicateTo)
Removes aDocument
from the Server by its ID and apply a durability requirement with the default key/value timeout.JsonDocument
Bucket. remove(String id, ReplicateTo replicateTo, long timeout, TimeUnit timeUnit)
Removes aDocument
from the Server by its ID and apply a durability requirement with a custom timeout.JsonDocument
CouchbaseBucket. remove(String id)
JsonDocument
CouchbaseBucket. remove(String id, long timeout, TimeUnit timeUnit)
JsonDocument
CouchbaseBucket. remove(String id, PersistTo persistTo)
JsonDocument
CouchbaseBucket. remove(String id, PersistTo persistTo, long timeout, TimeUnit timeUnit)
JsonDocument
CouchbaseBucket. remove(String id, PersistTo persistTo, ReplicateTo replicateTo)
JsonDocument
CouchbaseBucket. remove(String id, PersistTo persistTo, ReplicateTo replicateTo, long timeout, TimeUnit timeUnit)
JsonDocument
CouchbaseBucket. remove(String id, ReplicateTo replicateTo)
JsonDocument
CouchbaseBucket. remove(String id, ReplicateTo replicateTo, long timeout, TimeUnit timeUnit)
Methods in com.couchbase.client.java that return types with arguments of type JsonDocument Modifier and Type Method Description rx.Observable<JsonDocument>
AsyncBucket. get(String id)
Retrieves aJsonDocument
by its unique ID.rx.Observable<JsonDocument>
AsyncBucket. get(String id, long timeout, TimeUnit timeUnit)
Retrieves aJsonDocument
by its unique ID with a custom timeout.rx.Observable<JsonDocument>
CouchbaseAsyncBucket. get(String id)
rx.Observable<JsonDocument>
CouchbaseAsyncBucket. get(String id, long timeout, TimeUnit timeUnit)
rx.Observable<JsonDocument>
AsyncBucket. getAndLock(String id, int lockTime)
Retrieve and lock aJsonDocument
by its unique ID.rx.Observable<JsonDocument>
AsyncBucket. getAndLock(String id, int lockTime, long timeout, TimeUnit timeUnit)
Retrieve and lock aJsonDocument
by its unique ID with a custom timeout.rx.Observable<JsonDocument>
CouchbaseAsyncBucket. getAndLock(String id, int lockTime)
rx.Observable<JsonDocument>
CouchbaseAsyncBucket. getAndLock(String id, int lockTime, long timeout, TimeUnit timeUnit)
rx.Observable<JsonDocument>
AsyncBucket. getAndTouch(String id, int expiry)
Retrieve and touch aJsonDocument
by its unique ID.rx.Observable<JsonDocument>
AsyncBucket. getAndTouch(String id, int expiry, long timeout, TimeUnit timeUnit)
Retrieve and touch aJsonDocument
by its unique ID with a custom timeout.rx.Observable<JsonDocument>
CouchbaseAsyncBucket. getAndTouch(String id, int expiry)
rx.Observable<JsonDocument>
CouchbaseAsyncBucket. getAndTouch(String id, int expiry, long timeout, TimeUnit timeUnit)
rx.Observable<JsonDocument>
AsyncBucket. getFromReplica(String id, ReplicaMode type)
Retrieves one or more, possibly stale, representations of aJsonDocument
by its unique ID.rx.Observable<JsonDocument>
AsyncBucket. getFromReplica(String id, ReplicaMode type, long timeout, TimeUnit timeUnit)
Retrieves one or more, possibly stale, representations of aJsonDocument
by its unique ID.Iterator<JsonDocument>
Bucket. getFromReplica(String id)
Retrieves one or more, possibly stale, representations of aJsonDocument
by its unique ID with the default timeout.Iterator<JsonDocument>
Bucket. getFromReplica(String id, long timeout, TimeUnit timeUnit)
Retrieves one or more, possibly stale, representations of aJsonDocument
by its unique ID with a custom timeout.List<JsonDocument>
Bucket. getFromReplica(String id, ReplicaMode type)
Retrieves one or more, possibly stale, representations of aJsonDocument
by its unique ID with the default timeout.List<JsonDocument>
Bucket. getFromReplica(String id, ReplicaMode type, long timeout, TimeUnit timeUnit)
Retrieves one or more, possibly stale, representations of aJsonDocument
by its unique ID with a custom timeout.rx.Observable<JsonDocument>
CouchbaseAsyncBucket. getFromReplica(String id, ReplicaMode type)
rx.Observable<JsonDocument>
CouchbaseAsyncBucket. getFromReplica(String id, ReplicaMode type, long timeout, TimeUnit timeUnit)
Iterator<JsonDocument>
CouchbaseBucket. getFromReplica(String id)
Iterator<JsonDocument>
CouchbaseBucket. getFromReplica(String id, long timeout, TimeUnit timeUnit)
List<JsonDocument>
CouchbaseBucket. getFromReplica(String id, ReplicaMode type)
List<JsonDocument>
CouchbaseBucket. getFromReplica(String id, ReplicaMode type, long timeout, TimeUnit timeUnit)
rx.Observable<JsonDocument>
AsyncBucket. remove(String id)
Removes aDocument
from the Server identified by its ID.rx.Observable<JsonDocument>
AsyncBucket. remove(String id, long timeout, TimeUnit timeUnit)
Removes aDocument
from the Server identified by its ID.rx.Observable<JsonDocument>
AsyncBucket. remove(String id, PersistTo persistTo)
Removes aDocument
from the Server by its ID and apply a durability requirement.rx.Observable<JsonDocument>
AsyncBucket. remove(String id, PersistTo persistTo, long timeout, TimeUnit timeUnit)
Removes aDocument
from the Server by its ID and apply a durability requirement.rx.Observable<JsonDocument>
AsyncBucket. remove(String id, PersistTo persistTo, ReplicateTo replicateTo)
Removes aDocument
from the Server by its ID and apply a durability requirement.rx.Observable<JsonDocument>
AsyncBucket. remove(String id, PersistTo persistTo, ReplicateTo replicateTo, long timeout, TimeUnit timeUnit)
Removes aDocument
from the Server by its ID and apply a durability requirement.rx.Observable<JsonDocument>
AsyncBucket. remove(String id, ReplicateTo replicateTo)
Removes aDocument
from the Server by its ID and apply a durability requirement.rx.Observable<JsonDocument>
AsyncBucket. remove(String id, ReplicateTo replicateTo, long timeout, TimeUnit timeUnit)
Removes aDocument
from the Server by its ID and apply a durability requirement.rx.Observable<JsonDocument>
CouchbaseAsyncBucket. remove(String id)
rx.Observable<JsonDocument>
CouchbaseAsyncBucket. remove(String id, long timeout, TimeUnit timeUnit)
rx.Observable<JsonDocument>
CouchbaseAsyncBucket. remove(String id, PersistTo persistTo)
rx.Observable<JsonDocument>
CouchbaseAsyncBucket. remove(String id, PersistTo persistTo, long timeout, TimeUnit timeUnit)
rx.Observable<JsonDocument>
CouchbaseAsyncBucket. remove(String id, PersistTo persistTo, ReplicateTo replicateTo)
rx.Observable<JsonDocument>
CouchbaseAsyncBucket. remove(String id, PersistTo persistTo, ReplicateTo replicateTo, long timeout, TimeUnit timeUnit)
rx.Observable<JsonDocument>
CouchbaseAsyncBucket. remove(String id, ReplicateTo replicateTo)
rx.Observable<JsonDocument>
CouchbaseAsyncBucket. remove(String id, ReplicateTo replicateTo, long timeout, TimeUnit timeUnit)
-
Uses of JsonDocument in com.couchbase.client.java.datastructures
Methods in com.couchbase.client.java.datastructures that return types with arguments of type JsonDocument Modifier and Type Method Description static rx.functions.Func1<JsonDocument,DocumentFragment<Mutation>>
ResultMappingUtils. getMapFullDocResultToSubDocFn(Mutation mutation)
Creates anonymous function for mapping full JsonDocument insert result to document fragment result -
Uses of JsonDocument in com.couchbase.client.java.document
Methods in com.couchbase.client.java.document that return JsonDocument Modifier and Type Method Description static JsonDocument
JsonDocument. create(String id)
Creates aJsonDocument
which the document id.static JsonDocument
JsonDocument. create(String id, int expiry, JsonObject content)
Creates aJsonDocument
which the document id, JSON content and the expiration time.static JsonDocument
JsonDocument. create(String id, int expiry, JsonObject content, long cas)
Creates aJsonDocument
which the document id, JSON content, CAS value, expiration time and status code.static JsonDocument
JsonDocument. create(String id, int expiry, JsonObject content, long cas, MutationToken mutationToken)
Creates aJsonDocument
which the document id, JSON content, CAS value, expiration time and status code.static JsonDocument
JsonDocument. create(String id, JsonObject content)
Creates aJsonDocument
which the document id and JSON content.static JsonDocument
JsonDocument. create(String id, JsonObject content, long cas)
Creates aJsonDocument
which the document id, JSON content and the CAS value.static JsonDocument
JsonDocument. from(JsonDocument doc, long cas)
Creates a copy from a differentJsonDocument
, but changes the CAS value.static JsonDocument
JsonDocument. from(JsonDocument doc, JsonObject content)
Creates a copy from a differentJsonDocument
, but changes the content.static JsonDocument
JsonDocument. from(JsonDocument doc, String id)
Creates a copy from a differentJsonDocument
, but changes the document ID.static JsonDocument
JsonDocument. from(JsonDocument doc, String id, JsonObject content)
Creates a copy from a differentJsonDocument
, but changes the document ID and content.Methods in com.couchbase.client.java.document with parameters of type JsonDocument Modifier and Type Method Description static JsonDocument
JsonDocument. from(JsonDocument doc, long cas)
Creates a copy from a differentJsonDocument
, but changes the CAS value.static JsonDocument
JsonDocument. from(JsonDocument doc, JsonObject content)
Creates a copy from a differentJsonDocument
, but changes the content.static JsonDocument
JsonDocument. from(JsonDocument doc, String id)
Creates a copy from a differentJsonDocument
, but changes the document ID.static JsonDocument
JsonDocument. from(JsonDocument doc, String id, JsonObject content)
Creates a copy from a differentJsonDocument
, but changes the document ID and content. -
Uses of JsonDocument in com.couchbase.client.java.repository.mapping
Methods in com.couchbase.client.java.repository.mapping that return JsonDocument Modifier and Type Method Description JsonDocument
DefaultEntityConverter. fromEntity(EntityDocument<Object> source)
Methods in com.couchbase.client.java.repository.mapping with parameters of type JsonDocument Modifier and Type Method Description <T> EntityDocument<T>
DefaultEntityConverter. toEntity(JsonDocument source, Class<T> clazz)
-
Uses of JsonDocument in com.couchbase.client.java.transcoder
Methods in com.couchbase.client.java.transcoder that return JsonDocument Modifier and Type Method Description protected JsonDocument
JsonTranscoder. doDecode(String id, com.couchbase.client.deps.io.netty.buffer.ByteBuf content, long cas, int expiry, int flags, ResponseStatus status)
JsonDocument
JsonTranscoder. newDocument(String id, int expiry, JsonObject content, long cas)
JsonDocument
JsonTranscoder. newDocument(String id, int expiry, JsonObject content, long cas, MutationToken mutationToken)
Methods in com.couchbase.client.java.transcoder that return types with arguments of type JsonDocument Modifier and Type Method Description Class<JsonDocument>
JsonTranscoder. documentType()
Methods in com.couchbase.client.java.transcoder with parameters of type JsonDocument Modifier and Type Method Description protected Tuple2<com.couchbase.client.deps.io.netty.buffer.ByteBuf,Integer>
JsonTranscoder. doEncode(JsonDocument document)
-
Uses of JsonDocument in com.couchbase.client.java.transcoder.crypto
Methods in com.couchbase.client.java.transcoder.crypto that return JsonDocument Modifier and Type Method Description protected JsonDocument
JsonCryptoTranscoder. doDecode(String id, com.couchbase.client.deps.io.netty.buffer.ByteBuf content, long cas, int expiry, int flags, ResponseStatus status)
JsonDocument
JsonCryptoTranscoder. newDocument(String id, int expiry, JsonObject content, long cas)
JsonDocument
JsonCryptoTranscoder. newDocument(String id, int expiry, JsonObject content, long cas, MutationToken mutationToken)
Methods in com.couchbase.client.java.transcoder.crypto that return types with arguments of type JsonDocument Modifier and Type Method Description Class<JsonDocument>
JsonCryptoTranscoder. documentType()
Methods in com.couchbase.client.java.transcoder.crypto with parameters of type JsonDocument Modifier and Type Method Description protected Tuple2<com.couchbase.client.deps.io.netty.buffer.ByteBuf,Integer>
JsonCryptoTranscoder. doEncode(JsonDocument document)
-
Uses of JsonDocument in com.couchbase.client.java.util
Methods in com.couchbase.client.java.util that return types with arguments of type JsonDocument Modifier and Type Method Description rx.Single<JsonDocument>
TransparentReplicaGetHelper. getFirstPrimaryOrReplica(String id, Bucket bucket)
Asynchronously fetch the document from the primary and if that operations fails try all the replicas and return the first document that comes back from them (using the environments KV timeout for both primary and replica).rx.Single<JsonDocument>
TransparentReplicaGetHelper. getFirstPrimaryOrReplica(String id, Bucket bucket, long timeout)
Asynchronously fetch the document from the primary and if that operations fails try all the replicas and return the first document that comes back from them (with a custom timeout value applied to both primary and replica).rx.Single<JsonDocument>
TransparentReplicaGetHelper. getFirstPrimaryOrReplica(String id, Bucket bucket, long primaryTimeout, long replicaTimeout)
Asynchronously fetch the document from the primary and if that operations fails try all the replicas and return the first document that comes back from them (with custom primary and replica timeout values). -
Uses of JsonDocument in com.couchbase.client.java.view
Methods in com.couchbase.client.java.view that return JsonDocument Modifier and Type Method Description JsonDocument
DefaultSpatialViewRow. document()
JsonDocument
DefaultSpatialViewRow. document(long timeout, TimeUnit timeUnit)
JsonDocument
DefaultViewRow. document()
JsonDocument
DefaultViewRow. document(long timeout, TimeUnit timeUnit)
JsonDocument
SpatialViewRow. document()
Load the underlying document, if not reduced with the default view timeout.JsonDocument
SpatialViewRow. document(long timeout, TimeUnit timeUnit)
Load the underlying document, if not reduced with a custom timeout.JsonDocument
ViewRow. document()
Load the underlying document, if not reduced with the default view timeout.JsonDocument
ViewRow. document(long timeout, TimeUnit timeUnit)
Load the underlying document, if not reduced with a custom timeout.Methods in com.couchbase.client.java.view that return types with arguments of type JsonDocument Modifier and Type Method Description rx.Observable<JsonDocument>
AsyncSpatialViewRow. document()
Load the underlying document.rx.Observable<JsonDocument>
AsyncViewRow. document()
Load the underlying document, if not reduced.rx.Observable<JsonDocument>
DefaultAsyncSpatialViewRow. document()
rx.Observable<JsonDocument>
DefaultAsyncViewRow. document()