1 // Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
2 package org.rocksdb;
3 
4 /**
5  * Filter for iterating a table.
6  */
7 public interface TableFilter {
8 
9   /**
10    * A callback to determine whether relevant keys for this scan exist in a
11    * given table based on the table's properties. The callback is passed the
12    * properties of each table during iteration. If the callback returns false,
13    * the table will not be scanned. This option only affects Iterators and has
14    * no impact on point lookups.
15    *
16    * @param tableProperties the table properties.
17    *
18    * @return true if the table should be scanned, false otherwise.
19    */
filter(final TableProperties tableProperties)20   boolean filter(final TableProperties tableProperties);
21 }
22