Package io.deephaven.integrations.learn
Class Scatterer
java.lang.Object
io.deephaven.integrations.learn.Scatterer
Scatterer applies scatter functions to the result of a deferred calculation so that the results can be scattered into
new table columns.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionString[]
generateQueryStrings
(String futureOffsetColName) Generates query strings to create a new column for each Output.scatter
(int idx, FutureOffset fo) Applies the scatter function of each output to the result of a deferred calculation to get the result into a column.
-
Constructor Details
-
Scatterer
Creates a new Scatterer.- Parameters:
outputs
- array of Outputs that determine how data will be scattered back to the table.
-
-
Method Details
-
scatter
Applies the scatter function of each output to the result of a deferred calculation to get the result into a column.- Parameters:
idx
- index of the particular output in the list of outputs to use for scattering.fo
- FutureOffset that contains the results of the deferred calculation as well as the index of the row. that calculation belongs to.- Returns:
- result of the deferred calculation to be stored into a column.
-
generateQueryStrings
Generates query strings to create a new column for each Output.- Parameters:
futureOffsetColName
- name of the FutureOffset column to get results from- Returns:
- list of query strings to be used in .update() call.
-