]>
git.proxmox.com Git - ceph.git/blob - ceph/src/rocksdb/java/src/main/java/org/rocksdb/Filter.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).
9 * Filters are stored in rocksdb and are consulted automatically
10 * by rocksdb to decide whether or not to read some
11 * information from disk. In many cases, a filter can cut down the
12 * number of disk seeks form a handful to a single disk seek per
15 //TODO(AR) should be renamed FilterPolicy
16 public abstract class Filter
extends RocksObject
{
18 protected Filter(final long nativeHandle
) {
23 * Deletes underlying C++ filter pointer.
25 * Note that this function should be called only after all
26 * RocksDB instances referencing the filter are closed.
27 * Otherwise an undefined behavior will occur.
30 protected void disposeInternal() {
31 disposeInternal(nativeHandle_
);
35 protected final native void disposeInternal(final long handle
);