Let `HybridDirectMap` API look more like a typical associative container.

Add `iterator` and `const_iterator`.

Rename `Find()` returning a pointer to `FindOrNull()`. Add `find()` returning an
iterator. The performance of `find()` and `FindOrNull()` is comparable, but if
the semantics of `FindOrNull()` is needed (such as in `FieldHandlerMap`), then
the dedicated function is more readable and can be faster.

Add `FindOrDefault()`, `contains()`, `at()`, `empty()`, `size()`, `{,c}begin()`,
`{,c}end()`, and `operator==`.

PiperOrigin-RevId: 889778092
4 files changed
tree: f96ead3e73cd448c79df00431ed3f2b2a8b8c07e
  1. doc/
  2. python/
  3. riegeli/
  4. tf_dependency/
  5. .bazelrc
  6. configure
  7. CONTRIBUTING.md
  8. LICENSE
  9. MANIFEST.in
  10. MODULE.bazel
  11. README.md
README.md

Riegeli

Riegeli/records is a file format for storing a sequence of string records, typically serialized protocol buffers. It supports dense compression, fast decoding, seeking, detection and optional skipping of data corruption, filtering of proto message fields for even faster decoding, and parallel encoding.

See documentation.

Status

Riegeli file format will only change in a backward compatible way (i.e. future readers will understand current files, but current readers might not understand files using future features).

Riegeli C++ API might change in incompatible ways.