You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/joins.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -153,7 +153,7 @@ If you change timestamps of the record during processing, they will be processed
153
153
This is an experimental feature; the API may change in future releases.
154
154
155
155
156
-
`StreamingDataFrame.lookup_join()` is a special type of join that allows you to enrich records in a streaming dataframe with the data from external systems.
156
+
`StreamingDataFrame.join_lookup()` is a special type of join that allows you to enrich records in a streaming dataframe with the data from external systems.
157
157
158
158
You can use it to enriching streaming data with configuration or reference data from an external source, like a database.
159
159
@@ -163,7 +163,7 @@ To perform a lookup join, you need:
163
163
164
164
1. A subclass of [quixstreams.dataframe.joins.lookups.base.BaseLookup](api-reference/dataframe.md#baselookup) to query the external source and cache the results when necessary.
165
165
2. A subclass of [quixstreams.dataframe.joins.lookups.base.BaseField](api-reference/dataframe.md#basefield) to define how the data is extracted from the result.
166
-
3. To pass the lookup and the fields to the `StreamingDataFrame.lookup_join`.
166
+
3. To pass the lookup and the fields to the `StreamingDataFrame.join_lookup`.
167
167
168
168
169
169
See [SQLiteLookup](api-reference/dataframe.md#sqlitelookup) and [SQLiteLookupField](api-reference/dataframe.md#sqlitelookupfield) for the reference implementation.
@@ -177,13 +177,13 @@ from quixstreams.dataframe.joins.lookups import SQLiteLookup, SQLiteLookupField
177
177
app = Application(...)
178
178
179
179
# An implementation of BaseLookup for SQLite
180
-
lookup = SQLiteLookup(path="db.db")
180
+
lookup = SQLiteLookup(path="db.db")
181
181
182
182
sdf = app.dataframe(app.topic("input"))
183
183
184
-
sdf = sdf.lookup_join(
184
+
sdf = sdf.join_lookup(
185
185
lookup,
186
-
on="column", # A column in StreamingDataFrame to join on
186
+
on="column", # A column in StreamingDataFrame to join on
0 commit comments