github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/c-deps/libroach/table_props.h (about) 1 // Copyright 2018 The Cockroach Authors. 2 // 3 // Use of this software is governed by the Business Source License 4 // included in the file licenses/BSL.txt. 5 // 6 // As of the Change Date specified in that file, in accordance with 7 // the Business Source License, use of this software will be governed 8 // by the Apache License, Version 2.0, included in the file 9 // licenses/APL.txt. 10 11 #pragma once 12 13 #include <rocksdb/table_properties.h> 14 15 namespace cockroach { 16 17 // DBMakeTimeBoundCollector returns a TablePropertiesCollector hook to store the 18 // min and max MVCC timestamps present in each sstable in the metadata for that 19 // sstable. Used by the time bounded iterator optimization. 20 rocksdb::TablePropertiesCollectorFactory* DBMakeTimeBoundCollector(); 21 22 // DBMakeDeleteRangeCollector returns a TablePropertiesCollector hook 23 // to mark sstables for compaction that contain range deletion 24 // tombstones. This ensures that range deletion tombstones are quickly 25 // compacted out of existence and the space for deleted data is 26 // reclaimed. 27 rocksdb::TablePropertiesCollectorFactory* DBMakeDeleteRangeCollector(); 28 29 } // namespace cockroach