rocksdb/include/rocksdb
Yu Zhang 6c564e2e17 Add some convenience util APIs to facilitate using U64Ts (#11888)
Summary:
Added some util function APIs to facilitate using the U64Ts.

The U64Ts format for encoding a timestamp is not entirely RocksDB internal. When users are using the user-defined timestamp feature from the transaction layer, its public APIs including `SetCommitTimestamp`, `GetCommitTimestamp`, `SetReadTimestampForValidation` are taking and returning timestamps as uint64_t.  But if users want to use the APIs from the DB layer, including populating `ReadOptions.timestamp`, interpreting `Iterator::timestamp()`, these APIs are using and returning U64Ts timestamps as an encoded Slice.  So these util functions are added to facilitate the usage.

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

Reviewed By: ltamasi

Differential Revision: D49620709

Pulled By: jowlyzhang

fbshipit-source-id: ace8d782ee7c3372cf410abf761320d373e495e1
2023-09-25 19:00:39 -07:00
..
utilities Make RibbonFilterPolicy::bloom_before_level mutable (SetOptions()) (#11838) 2023-09-15 15:46:10 -07:00
advanced_cache.h Support compressed and local flash secondary cache stacking (#11812) 2023-09-21 20:30:53 -07:00
advanced_options.h Support compressed and local flash secondary cache stacking (#11812) 2023-09-21 20:30:53 -07:00
block_cache_trace_writer.h Update header file to include right copyright (#10854) 2022-10-24 16:13:16 -07:00
c.h Add C API for ReadOptions::auto_readahead_size (#11837) 2023-09-17 19:51:28 -07:00
cache.h Fix updating the capacity of a tiered cache (#11873) 2023-09-22 18:07:46 -07:00
cache_bench_tool.h Allow cache_bench/db_bench to use a custom secondary cache (#8312) 2021-05-19 15:26:18 -07:00
cleanable.h Eliminate unnecessary (slow) block cache Ref()ing in MultiGet (#9899) 2022-04-26 21:59:24 -07:00
compaction_filter.h Expose more info about input files in `CompactionFilter::Context` (#11857) 2023-09-20 13:34:39 -07:00
compaction_job_stats.h Compare the number of input keys and processed keys for compactions (#11571) 2023-07-28 09:47:31 -07:00
comparator.h Add some convenience util APIs to facilitate using U64Ts (#11888) 2023-09-25 19:00:39 -07:00
compression_type.h Move CompressionType to its own header file (#7162) 2020-08-03 15:49:31 -07:00
concurrent_task_limiter.h Some API clarifications (#9080) 2021-11-02 20:30:07 -07:00
configurable.h Remove RocksDB LITE (#11147) 2023-01-27 13:14:19 -08:00
convenience.h Group rocksdb.sst.read.micros stat by different user read IOActivity + misc (#11444) 2023-08-08 17:26:50 -07:00
customizable.h Remove RocksDB LITE (#11147) 2023-01-27 13:14:19 -08:00
data_structure.h Improve SmallEnumSet (#11178) 2023-02-08 20:14:57 -08:00
db.h Return a special OK status when the number of merge operands exceeds a threshold (#11870) 2023-09-22 13:49:19 -07:00
db_bench_tool.h Replace namespace name "rocksdb" with ROCKSDB_NAMESPACE (#6433) 2020-02-20 12:09:57 -08:00
db_dump_tool.h Remove RocksDB LITE (#11147) 2023-01-27 13:14:19 -08:00
db_stress_tool.h Replace namespace name "rocksdb" with ROCKSDB_NAMESPACE (#6433) 2020-02-20 12:09:57 -08:00
env.h GetEntity Support for ReadOnlyDB and SecondaryDB (#11799) 2023-09-15 08:30:44 -07:00
env_encryption.h remove duplicate comments in EncryptedEnv (#11549) 2023-06-27 11:55:37 -07:00
experimental.h Add manifest fix-up utility for file temperatures (#9683) 2022-03-18 16:35:51 -07:00
file_checksum.h Mark destructors as override (#9404) 2022-01-20 08:44:27 -08:00
file_system.h Add an interface to provide support for underlying FS to pass their own buffer during reads (#11324) 2023-06-23 11:48:49 -07:00
filter_policy.h Make RibbonFilterPolicy::bloom_before_level mutable (SetOptions()) (#11838) 2023-09-15 15:46:10 -07:00
flush_block_policy.h Some API clarifications (#9080) 2021-11-02 20:30:07 -07:00
functor_wrapper.h Fix and detect headers with missing dependencies (#8893) 2021-09-10 10:00:26 -07:00
io_status.h clang format files under include/ (#10850) 2022-10-24 14:09:32 -07:00
iostats_context.h clang format files under include/ (#10850) 2022-10-24 14:09:32 -07:00
iterator.h Add new Iterator API Refresh(const snapshot*) (#10594) 2023-09-15 10:44:43 -07:00
ldb_tool.h Remove RocksDB LITE (#11147) 2023-01-27 13:14:19 -08:00
listener.h Fix a bug with atomic_flush that causes DB to stuck after a flush failure (#11872) 2023-09-22 16:43:50 -07:00
memory_allocator.h cache_bench enhancements for jemalloc etc. (#11758) 2023-08-24 19:14:38 -07:00
memtablerep.h Remove RocksDB LITE (#11147) 2023-01-27 13:14:19 -08:00
merge_operator.h Integrate FullMergeV3 into the query and compaction paths (#11858) 2023-09-19 17:27:04 -07:00
metadata.h Support range deletion tombstones in `CreateColumnFamilyWithImport` (#11252) 2023-03-13 11:06:59 -07:00
options.h Lookup ahead in block cache ahead to tune Readaheadsize (#11860) 2023-09-22 18:12:08 -07:00
perf_context.h Much better stats for seeks and prefix filtering (#11460) 2023-05-19 15:25:49 -07:00
perf_level.h clang format files under include/ (#10850) 2022-10-24 14:09:32 -07:00
persistent_cache.h clang format files under include/ (#10850) 2022-10-24 14:09:32 -07:00
port_defs.h Add SystemClock::TimedWait() function (#11753) 2023-08-29 18:39:10 -07:00
rate_limiter.h Make RateLimiter not Customizable (#10378) 2022-07-18 14:48:42 -07:00
rocksdb_namespace.h Fix and detect headers with missing dependencies (#8893) 2021-09-10 10:00:26 -07:00
secondary_cache.h Support compressed and local flash secondary cache stacking (#11812) 2023-09-21 20:30:53 -07:00
slice.h Avoid allocations/copies for large `GetMergeOperands()` results (#10458) 2022-08-04 00:42:13 -07:00
slice_transform.h Document design/specification bugs with auto_prefix_mode (#10144) 2022-06-13 11:08:50 -07:00
snapshot.h Snapshots with user-specified timestamps (#9879) 2022-06-10 16:07:03 -07:00
sst_dump_tool.h Remove RocksDB LITE (#11147) 2023-01-27 13:14:19 -08:00
sst_file_manager.h Fix info_log comment in SSTFileManager (#11530) 2023-06-13 14:14:51 -07:00
sst_file_reader.h Remove RocksDB LITE (#11147) 2023-01-27 13:14:19 -08:00
sst_file_writer.h PutEntity Support in SST File Writer (#11688) 2023-08-10 18:16:10 -07:00
sst_partitioner.h Mark destructors as override (#9404) 2022-01-20 08:44:27 -08:00
statistics.h Add statistics `COMPACTION_CPU_TOTAL_TIME` for total compaction time (#11741) 2023-09-12 15:48:36 -07:00
stats_history.h More refactoring ahead of footer & meta changes (#9240) 2021-12-10 08:13:26 -08:00
status.h Return a special OK status when the number of merge operands exceeds a threshold (#11870) 2023-09-22 13:49:19 -07:00
system_clock.h Add SystemClock::TimedWait() function (#11753) 2023-08-29 18:39:10 -07:00
table.h format_version=6 and context-aware block checksums (#9058) 2023-07-30 16:40:01 -07:00
table_properties.h Record the `persist_user_defined_timestamps` flag in manifest (#11515) 2023-06-21 21:49:01 -07:00
table_reader_caller.h Refactor block cache tracing APIs (#10811) 2022-10-21 12:15:35 -07:00
thread_status.h GetEntity Support for ReadOnlyDB and SecondaryDB (#11799) 2023-09-15 08:30:44 -07:00
threadpool.h Support reservation in thread pool (#10278) 2022-07-08 19:48:09 -07:00
trace_reader_writer.h Update comments, fix typos. (#8721) 2021-08-27 13:16:32 -07:00
trace_record.h Refactor: Add BlockTypes to make them imply C++ type in block cache (#10098) 2022-06-06 11:16:12 -07:00
trace_record_result.h Add `IteratorTraceExecutionResult` for iterator related trace records. (#8687) 2021-08-20 15:35:56 -07:00
transaction_log.h clang format files under include/ (#10850) 2022-10-24 14:09:32 -07:00
types.h Expose more info about input files in `CompactionFilter::Context` (#11857) 2023-09-20 13:34:39 -07:00
unique_id.h Adjust public APIs to prefer 128-bit SST unique ID (#10009) 2022-05-17 18:43:48 -07:00
universal_compaction.h Use actual file size when checking max_compaction_size (#10728) 2022-09-30 10:50:44 -07:00
version.h Update files for version 8.8 (#11878) 2023-09-23 11:02:19 -07:00
wal_filter.h Fix compile warnings (#9199) 2021-11-24 11:19:06 -08:00
wide_columns.h Wide Column support in ldb (#11754) 2023-08-30 12:45:52 -07:00
write_batch.h add WriteBatch::Release() (#11482) 2023-05-26 18:15:14 -07:00
write_batch_base.h Add comments describing {Put,Get}Entity, update/clarify comment for Get and iterator (#10676) 2022-09-14 14:33:05 -07:00
write_buffer_manager.h Add `SetAllowStall()` (#11335) 2023-03-30 09:43:33 -07:00