]>
git.proxmox.com Git - ceph.git/blob - ceph/src/rocksdb/java/rocksjni/snapshot.cc
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).
6 // This file implements the "bridge" between Java and C++.
12 #include "include/org_rocksdb_Snapshot.h"
13 #include "rocksdb/db.h"
14 #include "rocksjni/portal.h"
17 * Class: org_rocksdb_Snapshot
18 * Method: getSequenceNumber
21 jlong
Java_org_rocksdb_Snapshot_getSequenceNumber(JNIEnv
* /*env*/,
23 jlong jsnapshot_handle
) {
24 auto* snapshot
= reinterpret_cast<rocksdb::Snapshot
*>(jsnapshot_handle
);
25 return snapshot
->GetSequenceNumber();