Add `ContextProjection()`.

It adapts a field handler to depend on a part of the context. Makes a field
handler depending on some outer context parameters from a field handler
depending on inner context parameters.

`projection...` parameters are applied sequentially to transform the outer
context to the inner context. Each `projection` is an invocable which
returns either a reference or a tuple of references. Common projections
include `ContextAt<indices...>` to select a subset of context parameters,
or `&Context::member` to select a member of the context parameter.

PiperOrigin-RevId: 877765506
3 files changed
tree: f7070a6ec6ba2f07f8c724270a3cf4162bdab3c4
  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.