Package | Description |
---|---|
com.couchbase.client.java.document | |
com.couchbase.client.java.transcoder |
Modifier and Type | Method and Description |
---|---|
static ByteArrayDocument |
ByteArrayDocument.create(String id)
Creates a
ByteArrayDocument which the document id. |
static ByteArrayDocument |
ByteArrayDocument.create(String id,
byte[] content)
Creates a
ByteArrayDocument which the document id and content. |
static ByteArrayDocument |
ByteArrayDocument.create(String id,
byte[] content,
long cas)
Creates a
ByteArrayDocument which the document id, content and the CAS value. |
static ByteArrayDocument |
ByteArrayDocument.create(String id,
int expiry,
byte[] content)
Creates a
ByteArrayDocument which the document id, content and the expiration time. |
static ByteArrayDocument |
ByteArrayDocument.create(String id,
int expiry,
byte[] content,
long cas)
Creates a
ByteArrayDocument which the document id, content, CAS value, expiration time and status code. |
static ByteArrayDocument |
ByteArrayDocument.create(String id,
int expiry,
byte[] content,
long cas,
MutationToken mutationToken)
Creates a
ByteArrayDocument which the document id, content, CAS value, expiration time and status code. |
static ByteArrayDocument |
ByteArrayDocument.from(ByteArrayDocument doc,
long cas)
Creates a copy from a different
ByteArrayDocument , but changes the CAS value. |
static ByteArrayDocument |
ByteArrayDocument.from(ByteArrayDocument doc,
String id,
byte[] content)
Creates a copy from a different
ByteArrayDocument , but changes the document ID and content. |
Modifier and Type | Method and Description |
---|---|
static ByteArrayDocument |
ByteArrayDocument.from(ByteArrayDocument doc,
long cas)
Creates a copy from a different
ByteArrayDocument , but changes the CAS value. |
static ByteArrayDocument |
ByteArrayDocument.from(ByteArrayDocument doc,
String id,
byte[] content)
Creates a copy from a different
ByteArrayDocument , but changes the document ID and content. |
Modifier and Type | Method and Description |
---|---|
protected ByteArrayDocument |
ByteArrayTranscoder.doDecode(String id,
com.couchbase.client.deps.io.netty.buffer.ByteBuf content,
long cas,
int expiry,
int flags,
ResponseStatus status) |
ByteArrayDocument |
ByteArrayTranscoder.newDocument(String id,
int expiry,
byte[] content,
long cas) |
ByteArrayDocument |
ByteArrayTranscoder.newDocument(String id,
int expiry,
byte[] content,
long cas,
MutationToken mutationToken) |
Modifier and Type | Method and Description |
---|---|
Class<ByteArrayDocument> |
ByteArrayTranscoder.documentType() |
Modifier and Type | Method and Description |
---|---|
protected Tuple2<com.couchbase.client.deps.io.netty.buffer.ByteBuf,Integer> |
ByteArrayTranscoder.doEncode(ByteArrayDocument document) |
Copyright © 2015 Couchbase, Inc.