public class C4Document extends C4NativePeer
Modifier and Type | Method and Description |
---|---|
String |
bodyAsJSON(boolean canonical) |
boolean |
deleted() |
static boolean |
dictContainsBlobs(FLSliceResult dict,
FLSharedKeys sk) |
boolean |
exists() |
String |
getDocID() |
int |
getFlags() |
String |
getRevID() |
FLDict |
getSelectedBody2() |
int |
getSelectedFlags() |
String |
getSelectedRevID() |
long |
getSelectedSequence() |
long |
getSequence() |
boolean |
isSelectedRevFlags(int flag) |
void |
resolveConflict(String winningRevID,
String losingRevID,
byte[] mergeBody,
int mergedFlags) |
void |
save(int maxRevTreeDepth) |
void |
selectNextLeafRevision(boolean includeDeleted,
boolean withBody) |
boolean |
selectNextRevision() |
C4Document |
update(byte[] body,
int flags) |
C4Document |
update(FLSliceResult body,
int flags) |
accumulateAndGet, addAndGet, compareAndSet, decrementAndGet, doubleValue, floatValue, get, getAndAccumulate, getAndAdd, getAndDecrement, getAndIncrement, getAndSet, getAndUpdate, incrementAndGet, intValue, lazySet, longValue, set, toString, updateAndGet, weakCompareAndSet
byteValue, shortValue
public static boolean dictContainsBlobs(FLSliceResult dict, FLSharedKeys sk)
public int getFlags()
@Nullable public String getDocID()
@Nullable public String getRevID()
public long getSequence()
@Nullable public String getSelectedRevID()
public long getSelectedSequence()
public FLDict getSelectedBody2()
public int getSelectedFlags()
public void save(int maxRevTreeDepth) throws LiteCoreException
LiteCoreException
public boolean selectNextRevision()
public void selectNextLeafRevision(boolean includeDeleted, boolean withBody) throws LiteCoreException
LiteCoreException
public void resolveConflict(String winningRevID, String losingRevID, byte[] mergeBody, int mergedFlags) throws LiteCoreException
LiteCoreException
public C4Document update(FLSliceResult body, int flags) throws LiteCoreException
LiteCoreException
public C4Document update(byte[] body, int flags) throws LiteCoreException
LiteCoreException
public boolean deleted()
public boolean exists()
public boolean isSelectedRevFlags(int flag)
@Nullable public String bodyAsJSON(boolean canonical) throws LiteCoreException
LiteCoreException