Search in sources :

Example 1 with JsTreeTable

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

the class JsTable method treeTable.

// TODO: #37: Need SmartKey support for this functionality
// @JsMethod
public Promise<JsTreeTable> treeTable(Object configObject) {
    Objects.requireNonNull(configObject, "Table.treeTable configuration");
    final JsTreeTableConfig config;
    if (configObject instanceof JsTreeTableConfig) {
        config = (JsTreeTableConfig) configObject;
    } else {
        config = new JsTreeTableConfig(Js.cast(configObject));
    }
    return workerConnection.newState((c, state, metadata) -> {
        // );
        throw new UnsupportedOperationException("treeTable");
    }, "treeTable " + 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) JsTreeTableConfig(io.deephaven.web.client.api.tree.JsTreeTableConfig)

Example 2 with JsTreeTable

use of io.deephaven.web.client.api.tree.JsTreeTable 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

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