namespace rocksdb {
-class SstFileReader {
+class SstFileDumper {
public:
- explicit SstFileReader(const std::string& file_name, bool verify_checksum,
- bool output_hex);
+ explicit SstFileDumper(const Options& options, const std::string& file_name,
+ bool verify_checksum, bool output_hex);
Status ReadSequential(bool print_kv, uint64_t read_num, bool has_from,
const std::string& from_key, bool has_to,
const EnvOptions& soptions,
const InternalKeyComparator& internal_comparator,
uint64_t file_size,
- unique_ptr<TableReader>* table_reader);
+ std::unique_ptr<TableReader>* table_reader);
std::string file_name_;
uint64_t read_num_;
Options options_;
Status init_result_;
- unique_ptr<TableReader> table_reader_;
- unique_ptr<RandomAccessFileReader> file_;
+ std::unique_ptr<TableReader> table_reader_;
+ std::unique_ptr<RandomAccessFileReader> file_;
const ImmutableCFOptions ioptions_;
const MutableCFOptions moptions_;
InternalKeyComparator internal_comparator_;
- unique_ptr<TableProperties> table_properties_;
+ std::unique_ptr<TableProperties> table_properties_;
};
} // namespace rocksdb