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());
}
Aggregations