Exmld.KinesisWorker.Datum.__struct__
You're seeing just the function
__struct__
, go back to Exmld.KinesisWorker.Datum module for more information.
Struct for annotating stream records (or heartbeats) with additional data.
To allow a single downstream processing pipeline to be used with multiple source
streams, we annotate Kinesis stream records with additional data before providing them
to the stage(s) processing them. (Example: :opaque
could be a 2-tuple naming the
source stream and region or otherwise indicate how to specially process the record).
Fields
:opaque
- the opaque term provided at worker init time:shard_id
- name of the shard the worker is processing:stream_record
- a record from the stream or{:heartbeat, _}