]>
git.proxmox.com Git - ceph.git/blob - ceph/src/rocksdb/java/src/main/java/org/rocksdb/Snapshot.java
1 // Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
2 // This source code is licensed under both the GPLv2 (found in the
3 // COPYING file in the root directory) and Apache 2.0 License
4 // (found in the LICENSE.Apache file in the root directory).
11 public class Snapshot
extends RocksObject
{
12 Snapshot(final long nativeHandle
) {
15 // The pointer to the snapshot is always released
16 // by the database instance.
21 * Return the associated sequence number;
23 * @return the associated sequence number of
26 public long getSequenceNumber() {
27 return getSequenceNumber(nativeHandle_
);
31 protected final void disposeInternal(final long handle
) {
33 * Nothing to release, we never own the pointer for a
34 * Snapshot. The pointer
35 * to the snapshot is released by the database
40 private native long getSequenceNumber(long handle
);