Skip to content

Commit

Permalink
Review responses
Browse files Browse the repository at this point in the history
  • Loading branch information
devinrsmith committed Dec 12, 2023
1 parent 9ce1783 commit c0ae2c3
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 14 deletions.
19 changes: 14 additions & 5 deletions engine/table/src/main/java/io/deephaven/stream/TablePublisher.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
import io.deephaven.engine.table.TableDefinition;
import io.deephaven.engine.table.impl.sources.ArrayBackedColumnSource;
import io.deephaven.engine.updategraph.UpdateGraph;
import io.deephaven.engine.util.input.InputTableStatusListener;
import io.deephaven.engine.util.input.InputTableUpdater;
import io.deephaven.util.annotations.TestUseOnly;

import javax.annotation.Nullable;
Expand Down Expand Up @@ -170,11 +172,18 @@ public boolean isAlive() {
}

/**
* The {@link Table#BLINK_TABLE_ATTRIBUTE blink table} with its {@link Table#getAttribute(String) attribute}
* {@value Table#INPUT_TABLE_ATTRIBUTE} set to an {@link io.deephaven.engine.util.input.InputTableUpdater}
* implementation based on {@code this}. This is primarily useful for existing code that already works with
* {@link io.deephaven.engine.util.input.InputTableUpdater} - new code should probably prefer to work directly with
* {@code this}.
* Creates a new {@link Table#BLINK_TABLE_ATTRIBUTE blink table} with its {@link Table#getAttribute(String)
* attribute} {@value Table#INPUT_TABLE_ATTRIBUTE} set to an {@link InputTableUpdater} implementation based on
* {@code this}. This is primarily useful for existing code that already works with {@link InputTableUpdater} - new
* code should prefer to work directly with {@code this}.
*
* <p>
* Unlike the interface suggests, the {@link InputTableUpdater} implementation does <b>not</b> block on
* {@link InputTableUpdater#add(Table) add}; furthermore, it does not implement
* {@link InputTableUpdater#addAsync(Table, InputTableStatusListener) addAsync},
* {@link InputTableUpdater#delete(Table) delete}, nor
* {@link InputTableUpdater#deleteAsync(Table, InputTableStatusListener) deletAsync}, and so it may not be
* applicable in all contexts.
*
* <p>
* May return {@code null} if invoked more than once and the initial caller does not enforce strong reachability of
Expand Down
14 changes: 5 additions & 9 deletions qst/src/main/java/io/deephaven/qst/table/BlinkInputTable.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@
package io.deephaven.qst.table;

import io.deephaven.annotations.NodeStyle;
import org.immutables.value.Value.Default;
import org.immutables.value.Value.Immutable;
import org.immutables.value.Value.Parameter;

import java.util.List;
import java.util.UUID;

/**
Expand All @@ -18,17 +17,14 @@
public abstract class BlinkInputTable extends InputTableBase {

public static BlinkInputTable of(TableSchema schema) {
return ImmutableBlinkInputTable.builder()
.schema(schema)
.build();
return ImmutableBlinkInputTable.of(schema, UUID.randomUUID());
}

@Parameter
public abstract TableSchema schema();

@Default
UUID id() {
return UUID.randomUUID();
}
@Parameter
abstract UUID id();

@Override
public final <R> R walk(InputTable.Visitor<R> visitor) {
Expand Down

0 comments on commit c0ae2c3

Please sign in to comment.