- Type Parameters:
D
-
T
-
- All Known Implementing Classes:
AbstractTranscoder
, BinaryTranscoder
, ByteArrayTranscoder
, JsonArrayTranscoder
, JsonBooleanTranscoder
, JsonCryptoTranscoder
, JsonDoubleTranscoder
, JsonLongTranscoder
, JsonStringTranscoder
, JsonTranscoder
, LegacyTranscoder
, RawJsonTranscoder
, SerializableTranscoder
, StringTranscoder
@Committed
@Public
public interface Transcoder<D extends Document<T>,T>
-
Method Summary
Modifier and Type |
Method |
Description |
D |
decode(String id,
com.couchbase.client.deps.io.netty.buffer.ByteBuf content,
long cas,
int expiry,
int flags,
ResponseStatus status) |
|
Class<D> |
documentType() |
|
Tuple2<com.couchbase.client.deps.io.netty.buffer.ByteBuf,Integer> |
encode(D document) |
|
D |
newDocument(String id,
int expiry,
T content,
long cas) |
Deprecated.
|
D |
newDocument(String id,
int expiry,
T content,
long cas,
MutationToken mutationToken) |
Creates a new Document with the passed in information.
|
-
Method Details
-
decode
D decode(
String id,
com.couchbase.client.deps.io.netty.buffer.ByteBuf content,
long cas,
int expiry,
int flags,
ResponseStatus status)
-
encode
Tuple2<com.couchbase.client.deps.io.netty.buffer.ByteBuf,Integer> encode(
D document)
-
newDocument
Deprecated.
- Parameters:
id
- the id of the document.
expiry
- the document expiration.
content
- the document content.
cas
- the documents cas value.
- Returns:
- the created document.
-
newDocument
Creates a new Document with the passed in information.
- Parameters:
id
- the id of the document.
expiry
- the document expiration.
content
- the document content.
cas
- the documents cas value.
mutationToken
- the documents mutation token.
- Returns:
- the created document.
-