-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simplify Input Table Interface. #4923
Simplify Input Table Interface. #4923
Conversation
engine/table/src/main/java/io/deephaven/engine/util/config/MutableInputTable.java
Outdated
Show resolved
Hide resolved
...ble/src/main/java/io/deephaven/engine/table/impl/util/AppendOnlyArrayBackedMutableTable.java
Show resolved
Hide resolved
engine/table/src/main/java/io/deephaven/engine/table/impl/util/BaseArrayBackedMutableTable.java
Show resolved
Hide resolved
...ne/table/src/main/java/io/deephaven/engine/table/impl/util/KeyedArrayBackedMutableTable.java
Show resolved
Hide resolved
NullValueColumnSource.createColumnSourceMap(definition)); | ||
final AppendOnlyArrayBackedMutableTable result = new AppendOnlyArrayBackedMutableTable( | ||
initialTable.getDefinition(), new ProcessPendingUpdater()); | ||
result.setAttribute(Table.ADD_ONLY_TABLE_ATTRIBUTE, Boolean.TRUE); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should be setting append-only, too.
initialTable.getDefinition(), new ProcessPendingUpdater()); | ||
result.setAttribute(Table.ADD_ONLY_TABLE_ATTRIBUTE, Boolean.TRUE); | ||
result.setFlat(); | ||
processInitial(initialTable, result); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need to create or process an empty initial table? Also, could one of the make
overloads delegate to the other?
* <p> | ||
* Implementations of this interface will make their own guarantees about how atomically changes will be applied and | ||
* what operations they support. | ||
*/ | ||
public interface MutableInputTable { | ||
public interface InputTable { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
InputTableHandler
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Python changes LGTM
Labels indicate documentation is required. Issues for documentation have been opened: How-to: https://github.com/deephaven/deephaven.io/issues/3528 |
Removes the InputTableEnumGetter and InputTableRowSetter interfaces that MutableInputTable extended, but are not used by web.
There have been the following class renames:
io.deephaven.engine.util.config.MutableInputTable -> io.deephaven.engine.util.input.InputTableHandler
KeyedArrayBackedMutableTable -> io.deephaven.engine.table.impl.util.KeyedArrayBackedInputTable
AppendOnlyArrayBackedMutableTable -> io.deephaven.engine.table.impl.util.AppendOnlyArrayBackedInputTable
Additionally, the MutableInputTable interface, KeyedArrayBackedMutableTable, and AppendOnlyArrayBackedMutableTable no longer have parameters for enum values. The "allowEdits" parameter has been removed from the interface and all implementations. The delete method that takes a rowSet has been removed.