Return a handle to the current DB state. Iterators created with this handle will all observe a stable snapshot of the current DB state. The caller must call ReleaseSnapshot(result) when the snapshot is no longer needed. nullptr will be returned if the DB fails to take a snapshot or does n
()
| 2206 | * @return Snapshot {@link Snapshot} instance |
| 2207 | */ |
| 2208 | public Snapshot getSnapshot() { |
| 2209 | long snapshotHandle = getSnapshot(nativeHandle_); |
| 2210 | if (snapshotHandle != 0) { |
| 2211 | return new Snapshot(snapshotHandle); |
| 2212 | } |
| 2213 | return null; |
| 2214 | } |
| 2215 | |
| 2216 | /** |
| 2217 | * Release a previously acquired snapshot. The caller must not |
no outgoing calls
no test coverage detected