Skip to contents

An UpdateByOp is the return type of one of Deephaven's uby functions. It is a function that performs the computation specified by the uby function. These are intended to be passed directly to update_by(), and should never be instantiated directly be user code. For more information, see the vignette on uby functions with vignette("update_by").

If multiple tables have the same schema and the same UpdateBy operations need to be applied to each table, saving these objects directly in a variable may be useful to avoid having to re-create them each time:

operations <- c(uby_rolling_avg_tick("XAvg = X", "YAvg = Y"),
                uby_rolling_std_tick("XStd = X", "YStd = Y"))

result1 <- th1$update_by(operations, by="Group")
result2 <- th2$update_by(operations, by="Group")

In this example, operations would be a vector of two UpdateByOps that can be reused in multiple calls to update_by().

Methods

Public methods


Method new()

Usage

UpdateByOp$new(update_by_op)