public class MutationState extends Object implements Iterable<MutationToken>
MutationToken into one MutationState.| Modifier and Type | Method and Description |
|---|---|
MutationState |
add(MutationState mutationState)
Adds all the internal state from the given
MutationState onto the called one. |
MutationState |
add(MutationToken... mutationTokens)
Add one or more
MutationTokens to this MutationState. |
boolean |
equals(Object o) |
JsonObject |
export()
Exports the
MutationState into a universal format, which can be used either to serialize it into
a N1QL query or to send it over the network to a different application/SDK. |
JsonObject |
exportForSearch()
Exports the
MutationState into a format recognized by the FTS search engine. |
static MutationState |
from(JsonObject source)
Create a
MutationState from the serialized state. |
static MutationState |
from(MutationToken... mutationTokens)
Create a
MutationState from one or more MutationTokens. |
static MutationState |
from(String source)
Create a
MutationState from the serialized state. |
int |
hashCode() |
Iterator<MutationToken> |
iterator() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic static MutationState from(MutationToken... mutationTokens)
MutationState from one or more MutationTokens.mutationTokens - the mutation tokens.MutationState.public MutationState add(MutationToken... mutationTokens)
MutationTokens to this MutationState.mutationTokens - the tokensMutationState.public MutationState add(MutationState mutationState)
MutationState onto the called one.mutationState - the state from which the tokens are applied from.MutationState.public Iterator<MutationToken> iterator()
iterator in interface Iterable<MutationToken>public JsonObject export()
MutationState into a universal format, which can be used either to serialize it into
a N1QL query or to send it over the network to a different application/SDK.JsonObject.public JsonObject exportForSearch()
MutationState into a format recognized by the FTS search engine.JsonObject for one FTS index.public static MutationState from(String source)
MutationState from the serialized state.source - the source state, serialized.MutationState.public static MutationState from(JsonObject source)
MutationState from the serialized state.source - the source state, serialized.MutationState.Copyright © 2020 Couchbase, Inc.. All rights reserved.