liveBook · Manning

Lookup operation

A lookup operation locates or retrieves data associated with a specified key, identifier, index, or other locating value.

How 2 Manning books explain it

Apache Kafka in Action

A lookup is the retrieval of a corresponding value from stored state by a key or identifier.

How it is used
Uses keyed table state to enrich or join each incoming stream message with its corresponding stored record.
How deep it goes
Explains per-message state lookup through stream-table joins and data enrichment, without descending into state-store internals.
Examples
Demonstrates product-sales enrichment and loyalty-card customer joins using keyed tables.
What you can do after
Apply it via stream-table join APIs to enrich incoming records with current master or reference data.

Read how Apache Kafka in Action explains lookup operation →

Learn Haskell by Example

lookup is a standard Haskell function that searches an associative list for a key and returns its associated value when present.

How it is used
Implements value retrieval for maps built from associative lists and supports graph-based programs.
How deep it goes
Explains recursive traversal, Maybe results, defaults, and worst-case full-list scanning, then points toward replacement.
Examples
Uses AssocMap definitions, findWithDefault, graph lookups, and a profiling report showing lookup as the main cost center.
What you can do after
Builds a recursive map lookup, handles missing keys with defaults, and diagnoses associative-list performance bottlenecks.

Read how Learn Haskell by Example explains lookup operation →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.