Crate bitcoinleveldb_meta

Source

Structs§

Saver

Enums§

SaverState
| Callback from TableCache::Get() |
Tag
| Tag numbers for serialized VersionEdit. | These numbers are written to disk and | should not be changed. |

Functions§

add_boundary_inputs
| Extracts the largest file b1 from | |compaction_files| and then searches for a b2 | in |level_files| for which user_key(u1) | = user_key(l2). If it finds such a file b2 | (known as a boundary file) it adds it to | |compaction_files| and then searches again | using this new upper bound. | | If there are two blocks, b1=(l1, u1) and | b2=(l2, u2) and user_key(u1) = user_key(l2), | and if we compact b1 but not b2 then | a subsequent get operation will yield an | incorrect result because it will return the | record from b2 in level i rather than from b1 | because it searches level by level for records | matching the supplied user key. | | parameters: | | in level_files: List of files to | search for boundary files. | | in/out compaction_files: List of files to | extend by adding boundary files.
after_file
before_file
expanded_compaction_byte_size_limit
| Maximum number of bytes in all compacted files. | We avoid expanding the lower level file set of | a compaction if it would make the total | compaction cover more than this many bytes.
find_file
| Return the smallest index i such that | files[i]->largest >= key. | | Return files.size() if there is no such file. | | REQUIRES: “files” contains a sorted list of | non-overlapping files.
find_largest_key
| Finds the largest key in a vector of files. | Returns true if files it not empty. |
find_smallest_boundary_file
| Finds minimum file b2=(l2, u2) in level | file for which l2 > u1 and user_key(l2) | = user_key(u1) |
get_file_iterator
get_internal_key
get_level
max_bytes_for_level
max_file_size_for_level
max_grand_parent_overlap_bytes
| Maximum bytes of overlaps in grandparent | (i.e., level+2) before we stop building | a single file in a level->level+1 compaction. |
newest_first
save_value
some_file_overlaps_range
| Returns true iff some file in “files” overlaps | the user key range [*smallest,*largest]. | | smallest==nullptr represents a key smaller than | all keys in the DB. | | largest==nullptr represents a key largest than | all keys in the DB. | | REQUIRES: If disjoint_sorted_files, files[] | contains disjoint ranges in sorted | order.
target_file_size
total_file_size