Search in sources :

Example 1 with JsRollupConfig

use of io.deephaven.web.client.api.tree.JsRollupConfig in project deephaven-core by deephaven.

the class JsTable method rollup.

// TODO: #37: Need SmartKey support for this functionality
// @JsMethod
public Promise<JsTreeTable> rollup(Object configObject) {
    Objects.requireNonNull(configObject, "Table.rollup configuration");
    final JsRollupConfig config;
    if (configObject instanceof JsRollupConfig) {
        config = (JsRollupConfig) configObject;
    } else {
        config = new JsRollupConfig(Js.cast(configObject));
    }
    return workerConnection.newState((c, state, metadata) -> {
        // workerConnection.getServer().rollup(rollupRequest, c);
        throw new UnsupportedOperationException("rollup");
    }, "rollup " + Global.JSON.stringify(config)).refetch(this, workerConnection.metadata()).then(state -> new JsTreeTable(state, workerConnection).finishFetch());
}
Also used : JsTreeTable(io.deephaven.web.client.api.tree.JsTreeTable) JsRollupConfig(io.deephaven.web.client.api.tree.JsRollupConfig)

Aggregations

JsRollupConfig (io.deephaven.web.client.api.tree.JsRollupConfig)1 JsTreeTable (io.deephaven.web.client.api.tree.JsTreeTable)1