public class C4Document extends C4NativePeer
Modifier and Type | Method and Description |
---|---|
String |
bodyAsJSON(boolean canonical) |
void |
close() |
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) |
toString
public static boolean dictContainsBlobs(@NonNull FLSliceResult dict, @NonNull FLSharedKeys sk)
public int getFlags()
@Nullable public String getDocID()
@Nullable public String getRevID()
public long getSequence()
@Nullable public String getSelectedRevID()
public long getSelectedSequence()
@Nullable 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
@Nullable public C4Document update(@Nullable FLSliceResult body, int flags) throws LiteCoreException
LiteCoreException
@Nullable public C4Document update(@NonNull 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
@CallSuper public void close()