Documentation ¶
Overview ¶
Package beamio provides Beam transformations for common IO patterns.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodeKeyValues ¶ added in v0.0.30
func EncodeKeyValues(s beam.Scope, tables ...beam.PCollection) beam.PCollection
EncodeKeyValues encodes each PCollection of KVs into encoded KeyValues and flattens all entries into a single PCollection.
func ReadEntries ¶
ReadEntries reads a set of *spb.Entry messages into a PCollection from the given file, or files stored in a directory. The file can be part of any filesystem registered with the beam/io/filesystem package and can either be a delimited protobuf stream or a Riegeli file.
func WriteLevelDB ¶ added in v0.0.28
WriteLevelDB writes a set of PCollections containing KVs to a new LevelDB at the given path. Each KV is serialized and stored as a single LevelDB key-value entry according to their enclosing PCollection's beam.Coder. Each table may have different KV types. Keys must be unique across all PCollections.