table_properties_internal.h 1.1 KB

123456789101112131415161718192021222324252627282930
  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).
  5. #pragma once
  6. #include "rocksdb/status.h"
  7. #include "rocksdb/iterator.h"
  8. namespace ROCKSDB_NAMESPACE {
  9. class BlockHandle;
  10. // Seek to the properties block.
  11. // If it successfully seeks to the properties block, "is_found" will be
  12. // set to true.
  13. Status SeekToPropertiesBlock(InternalIterator* meta_iter, bool* is_found);
  14. // Seek to the compression dictionary block.
  15. // If it successfully seeks to the properties block, "is_found" will be
  16. // set to true.
  17. Status SeekToCompressionDictBlock(InternalIterator* meta_iter, bool* is_found,
  18. BlockHandle* block_handle);
  19. // TODO(andrewkr) should not put all meta block in table_properties.h/cc
  20. Status SeekToRangeDelBlock(InternalIterator* meta_iter, bool* is_found,
  21. BlockHandle* block_handle);
  22. } // namespace ROCKSDB_NAMESPACE