Class KeyedArrayBackedInputTable

All Implemented Interfaces:
TableOperations<Table,Table>, TableOperationsDefaults<Table,Table>, LogOutputAppendable, LivenessManager, LivenessNode, LivenessReferent, AttributeMap<Table>, GridAttributes<Table>, NotificationStepReceiver, NotificationStepSource, TableDefaults, Table, DynamicNode, NotificationQueue.Dependency, SystemicObject<Table>, LongSizedDataStructure, Serializable, Runnable

public class KeyedArrayBackedInputTable extends UpdatableTable
An in-memory table that has keys for each row, which can be updated on the UGP.

This is used to implement in-memory editable table columns from web plugins.

See Also:
  • Field Details

  • Method Details

    • make

      public static KeyedArrayBackedInputTable make(@NotNull @NotNull TableDefinition definition, String... keyColumnNames)
      Create an empty KeyedArrayBackedMutableTable.
      Parameters:
      definition - the definition of the table to create
      keyColumnNames - the name of the key columns
      Returns:
      an empty KeyedArrayBackedMutableTable with the given definition and key columns
    • make

      public static KeyedArrayBackedInputTable make(Table initialTable, String... keyColumnNames)
      Create an empty KeyedArrayBackedMutableTable.

      The initialTable is processed in order, so if there are duplicate keys only the last row is reflected in the output.

      Parameters:
      initialTable - the initial values to copy into the KeyedArrayBackedMutableTable
      keyColumnNames - the name of the key columns
      Returns:
      an empty KeyedArrayBackedMutableTable with the given definition and key columns
    • processPendingTable

      protected void processPendingTable(Table table, UpdatableTable.RowSetChangeRecorder rowSetChangeRecorder)
    • processPendingDelete

      protected void processPendingDelete(Table table, UpdatableTable.RowSetChangeRecorder rowSetChangeRecorder)
    • getDefaultDescription

      protected String getDefaultDescription()
    • getKeyNames

      protected List<String> getKeyNames()
    • inputTable

      public InputTableUpdater inputTable()
    • readOnlyCopy

      public Table readOnlyCopy()
    • makeColumnSourceMap

      protected static Map<String,? extends WritableColumnSource<?>> makeColumnSourceMap(TableDefinition definition)
    • setDescription

      public io.deephaven.engine.table.impl.util.BaseArrayBackedInputTable setDescription(String newDescription)
    • run

      public void run()
      Specified by:
      run in interface Runnable
      Overrides:
      run in class UpdatableTable