|
|
@ -42,6 +42,8 @@ public class WriteBatch extends AbstractWriteBatch { |
|
|
|
/** |
|
|
|
/** |
|
|
|
* Constructs a WriteBatch instance from a serialized representation |
|
|
|
* Constructs a WriteBatch instance from a serialized representation |
|
|
|
* as returned by {@link #data()}. |
|
|
|
* as returned by {@link #data()}. |
|
|
|
|
|
|
|
* |
|
|
|
|
|
|
|
* @param serialized the serialized representation. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public WriteBatch(final byte[] serialized) { |
|
|
|
public WriteBatch(final byte[] serialized) { |
|
|
|
super(newWriteBatch(serialized, serialized.length)); |
|
|
|
super(newWriteBatch(serialized, serialized.length)); |
|
|
@ -78,45 +80,45 @@ public class WriteBatch extends AbstractWriteBatch { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Returns true if PutCF will be called during Iterate. |
|
|
|
* Returns true if Put will be called during Iterate. |
|
|
|
* |
|
|
|
* |
|
|
|
* Return true if PutCF will be called during Iterate. |
|
|
|
* @return true if Put will be called during Iterate. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public boolean hasPut() { |
|
|
|
public boolean hasPut() { |
|
|
|
return hasPut(nativeHandle_); |
|
|
|
return hasPut(nativeHandle_); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Returns true if DeleteCF will be called during Iterate. |
|
|
|
* Returns true if Delete will be called during Iterate. |
|
|
|
* |
|
|
|
* |
|
|
|
* Return true if DeleteCF will be called during Iterate. |
|
|
|
* @return true if Delete will be called during Iterate. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public boolean hasDelete() { |
|
|
|
public boolean hasDelete() { |
|
|
|
return hasDelete(nativeHandle_); |
|
|
|
return hasDelete(nativeHandle_); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Returns true if SingleDeleteCF will be called during Iterate. |
|
|
|
* Returns true if SingleDelete will be called during Iterate. |
|
|
|
* |
|
|
|
* |
|
|
|
* Return true if SingleDeleteCF will be called during Iterate. |
|
|
|
* @return true if SingleDelete will be called during Iterate. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public boolean hasSingleDelete() { |
|
|
|
public boolean hasSingleDelete() { |
|
|
|
return hasSingleDelete(nativeHandle_); |
|
|
|
return hasSingleDelete(nativeHandle_); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Returns true if DeleteRangeCF will be called during Iterate. |
|
|
|
* Returns true if DeleteRange will be called during Iterate. |
|
|
|
* |
|
|
|
* |
|
|
|
* Return true if DeleteRangeCF will be called during Iterate. |
|
|
|
* @return true if DeleteRange will be called during Iterate. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public boolean hasDeleteRange() { |
|
|
|
public boolean hasDeleteRange() { |
|
|
|
return hasDeleteRange(nativeHandle_); |
|
|
|
return hasDeleteRange(nativeHandle_); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Returns true if MergeCF will be called during Iterate. |
|
|
|
* Returns true if Merge will be called during Iterate. |
|
|
|
* |
|
|
|
* |
|
|
|
* Return true if MergeCF will be called during Iterate. |
|
|
|
* @return true if Merge will be called during Iterate. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public boolean hasMerge() { |
|
|
|
public boolean hasMerge() { |
|
|
|
return hasMerge(nativeHandle_); |
|
|
|
return hasMerge(nativeHandle_); |
|
|
@ -125,7 +127,7 @@ public class WriteBatch extends AbstractWriteBatch { |
|
|
|
/** |
|
|
|
/** |
|
|
|
* Returns true if MarkBeginPrepare will be called during Iterate. |
|
|
|
* Returns true if MarkBeginPrepare will be called during Iterate. |
|
|
|
* |
|
|
|
* |
|
|
|
* Return true if MarkBeginPrepare will be called during Iterate. |
|
|
|
* @return true if MarkBeginPrepare will be called during Iterate. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public boolean hasBeginPrepare() { |
|
|
|
public boolean hasBeginPrepare() { |
|
|
|
return hasBeginPrepare(nativeHandle_); |
|
|
|
return hasBeginPrepare(nativeHandle_); |
|
|
@ -134,7 +136,7 @@ public class WriteBatch extends AbstractWriteBatch { |
|
|
|
/** |
|
|
|
/** |
|
|
|
* Returns true if MarkEndPrepare will be called during Iterate. |
|
|
|
* Returns true if MarkEndPrepare will be called during Iterate. |
|
|
|
* |
|
|
|
* |
|
|
|
* Return true if MarkEndPrepare will be called during Iterate. |
|
|
|
* @return true if MarkEndPrepare will be called during Iterate. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public boolean hasEndPrepare() { |
|
|
|
public boolean hasEndPrepare() { |
|
|
|
return hasEndPrepare(nativeHandle_); |
|
|
|
return hasEndPrepare(nativeHandle_); |
|
|
@ -143,7 +145,7 @@ public class WriteBatch extends AbstractWriteBatch { |
|
|
|
/** |
|
|
|
/** |
|
|
|
* Returns true if MarkCommit will be called during Iterate. |
|
|
|
* Returns true if MarkCommit will be called during Iterate. |
|
|
|
* |
|
|
|
* |
|
|
|
* Return true if MarkCommit will be called during Iterate. |
|
|
|
* @return true if MarkCommit will be called during Iterate. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public boolean hasCommit() { |
|
|
|
public boolean hasCommit() { |
|
|
|
return hasCommit(nativeHandle_); |
|
|
|
return hasCommit(nativeHandle_); |
|
|
@ -152,7 +154,7 @@ public class WriteBatch extends AbstractWriteBatch { |
|
|
|
/** |
|
|
|
/** |
|
|
|
* Returns true if MarkRollback will be called during Iterate. |
|
|
|
* Returns true if MarkRollback will be called during Iterate. |
|
|
|
* |
|
|
|
* |
|
|
|
* Return true if MarkRollback will be called during Iterate. |
|
|
|
* @return true if MarkRollback will be called during Iterate. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public boolean hasRollback() { |
|
|
|
public boolean hasRollback() { |
|
|
|
return hasRollback(nativeHandle_); |
|
|
|
return hasRollback(nativeHandle_); |
|
|
|