]> git.proxmox.com Git - ceph.git/blob - ceph/src/rocksdb/table/table_properties_internal.h
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / rocksdb / table / table_properties_internal.h
1 // Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
2 // This source code is licensed under the BSD-style license found in the
3 // LICENSE file in the root directory of this source tree. An additional grant
4 // of patent rights can be found in the PATENTS file in the same directory.
5
6 #pragma once
7
8 #include "rocksdb/status.h"
9 #include "rocksdb/iterator.h"
10
11 namespace rocksdb {
12
13 class InternalIterator;
14 class BlockHandle;
15
16 // Seek to the properties block.
17 // If it successfully seeks to the properties block, "is_found" will be
18 // set to true.
19 Status SeekToPropertiesBlock(InternalIterator* meta_iter, bool* is_found);
20
21 // Seek to the compression dictionary block.
22 // If it successfully seeks to the properties block, "is_found" will be
23 // set to true.
24 Status SeekToCompressionDictBlock(InternalIterator* meta_iter, bool* is_found);
25
26 // TODO(andrewkr) should not put all meta block in table_properties.h/cc
27 Status SeekToRangeDelBlock(InternalIterator* meta_iter, bool* is_found,
28 BlockHandle* block_handle);
29
30 } // namespace rocksdb