forked from deephaven/deephaven-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds InputTableService support for blink tables (deephaven#4934)
This adds `TablePublisher#inputTable`, which adds a very simple `InputTableUpdater` implementation to the blink table. Also, some further simplifications in the spirit of deephaven#4923: `InputTableUpdater#getDescription`, `InputTableUpdater#getTable`, and `InputTableUpdater#canEdit` were removed due to no usages. The documentation on `InputTableUpdater` was updated to make it more generally useful in other contexts, such as here with blink tables. The `InputTableService` implementation is now taking advantage of the async methods on `InputTableUpdater`. Fixes deephaven#4915
- Loading branch information
1 parent
3dd2609
commit 0d8eba3
Showing
15 changed files
with
845 additions
and
362 deletions.
There are no files selected for viewing
656 changes: 389 additions & 267 deletions
656
cpp-client/deephaven/dhclient/proto/deephaven/proto/table.pb.cc
Large diffs are not rendered by default.
Oops, something went wrong.
235 changes: 229 additions & 6 deletions
235
cpp-client/deephaven/dhclient/proto/deephaven/proto/table.pb.h
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
33 changes: 33 additions & 0 deletions
33
qst/src/main/java/io/deephaven/qst/table/BlinkInputTable.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/** | ||
* Copyright (c) 2016-2022 Deephaven Data Labs and Patent Pending | ||
*/ | ||
package io.deephaven.qst.table; | ||
|
||
import io.deephaven.annotations.NodeStyle; | ||
import org.immutables.value.Value.Immutable; | ||
import org.immutables.value.Value.Parameter; | ||
|
||
import java.util.UUID; | ||
|
||
/** | ||
* Creates a blink input-table. | ||
*/ | ||
@Immutable | ||
@NodeStyle | ||
public abstract class BlinkInputTable extends InputTableBase { | ||
|
||
public static BlinkInputTable of(TableSchema schema) { | ||
return ImmutableBlinkInputTable.of(schema, UUID.randomUUID()); | ||
} | ||
|
||
@Parameter | ||
public abstract TableSchema schema(); | ||
|
||
@Parameter | ||
abstract UUID id(); | ||
|
||
@Override | ||
public final <R> R walk(InputTable.Visitor<R> visitor) { | ||
return visitor.visit(this); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.