提交 18efd760 编写于 作者: A Adam Retter 提交者: Facebook GitHub Bot

Add defaults to ReadOptions doc (#7215)

Summary:
Very small improvements to document the defaults.

Pull Request resolved: https://github.com/facebook/rocksdb/pull/7215

Reviewed By: zhichao-cao

Differential Revision: D22902286

fbshipit-source-id: a754d172a0d8e4c03754f6f1771d4a693d60a770
上级 d941b89d
...@@ -1283,7 +1283,8 @@ struct ReadOptions { ...@@ -1283,7 +1283,8 @@ struct ReadOptions {
// block cache? // block cache?
// Callers may wish to set this field to false for bulk scans. // Callers may wish to set this field to false for bulk scans.
// This would help not to the change eviction order of existing items in the // This would help not to the change eviction order of existing items in the
// block cache. Default: true // block cache.
// Default: true
bool fill_cache; bool fill_cache;
// Specify to create a tailing iterator -- a special iterator that has a // Specify to create a tailing iterator -- a special iterator that has a
...@@ -1304,6 +1305,7 @@ struct ReadOptions { ...@@ -1304,6 +1305,7 @@ struct ReadOptions {
// If true when calling Get(), we also skip prefix bloom when reading from // If true when calling Get(), we also skip prefix bloom when reading from
// block based table. It provides a way to read existing data after // block based table. It provides a way to read existing data after
// changing implementation of prefix extractor. // changing implementation of prefix extractor.
// Default: false
bool total_order_seek; bool total_order_seek;
// When true, by default use total_order_seek = true, and RocksDB can // When true, by default use total_order_seek = true, and RocksDB can
...@@ -1311,6 +1313,7 @@ struct ReadOptions { ...@@ -1311,6 +1313,7 @@ struct ReadOptions {
// from total_order_seek, based on seek key, and iterator upper bound. // from total_order_seek, based on seek key, and iterator upper bound.
// Not suppported in ROCKSDB_LITE mode, in the way that even with value true // Not suppported in ROCKSDB_LITE mode, in the way that even with value true
// prefix mode is not used. // prefix mode is not used.
// Default: false
bool auto_prefix_mode; bool auto_prefix_mode;
// Enforce that the iterator only iterates over the same prefix as the seek. // Enforce that the iterator only iterates over the same prefix as the seek.
...@@ -1366,6 +1369,7 @@ struct ReadOptions { ...@@ -1366,6 +1369,7 @@ struct ReadOptions {
// only the most recent version visible to timestamp is returned. // only the most recent version visible to timestamp is returned.
// The user-specified timestamp feature is still under active development, // The user-specified timestamp feature is still under active development,
// and the API is subject to change. // and the API is subject to change.
// Default: nullptr
const Slice* timestamp; const Slice* timestamp;
const Slice* iter_start_ts; const Slice* iter_start_ts;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册