Class BlinkTableTools

java.lang.Object
io.deephaven.engine.table.impl.BlinkTableTools

public class BlinkTableTools extends Object
Tools for manipulating blink tables.
See Also:
  • Field Details

    • DEFAULT_MEMO_KEY

      public static final Object DEFAULT_MEMO_KEY
  • Constructor Details

    • BlinkTableTools

      public BlinkTableTools()
  • Method Details

    • blinkToAppendOnly

      public static Table blinkToAppendOnly(Table blinkTable)
      Convert a Blink Table to an in-memory append only table.

      Note, this table will grow without bound as new blink table rows are encountered. The result is memoized under DEFAULT_MEMO_KEY.

      Parameters:
      blinkTable - The input blink table
      Returns:
      An append-only in-memory table representing all data encountered in the blink table across all cycles
    • blinkToAppendOnly

      public static Table blinkToAppendOnly(@NotNull @NotNull Table blinkTable, @Nullable @Nullable Object memoKey)
      Convert a Blink Table to an in-memory append only table.

      Note, this table will grow without bound as new blink table rows are encountered.

      Parameters:
      blinkTable - The input blink table
      memoKey - saves a weak reference to the result of the given operation under the given memoization key (null to disable memoization)
      Returns:
      An append-only in-memory table representing all data encountered in the blink table across all cycles
    • blinkToAppendOnly

      public static Table blinkToAppendOnly(@NotNull @NotNull Table blinkTable, long sizeLimit)
      Convert a Blink Table to an in-memory append only table with a limit on maximum size. Any updates beyond that limit won't be appended to the table.

      The result is memoized under DEFAULT_MEMO_KEY.

      Parameters:
      blinkTable - The input blink table
      sizeLimit - The maximum number of rows in the append-only table
      Returns:
      An append-only in-memory table representing all data encountered in the blink table across all cycles till maximum row count
    • blinkToAppendOnly

      public static Table blinkToAppendOnly(Table blinkTable, long sizeLimit, @Nullable @Nullable Object memoKey)
      Convert a Blink Table to an in-memory append only table with a limit on maximum size. Any updates beyond that limit won't be appended to the table.
      Parameters:
      blinkTable - The input blink table
      sizeLimit - The maximum number of rows in the append-only table
      memoKey - saves a weak reference to the result of the given operation under the given size limit and memoization key (null to disable memoization)
      Returns:
      An append-only in-memory table representing all data encountered in the blink table across all cycles till maximum row count
    • isBlink

      public static boolean isBlink(@NotNull @NotNull Table table)
      Returns true if table is a blink table.
      Parameters:
      table - The table to check for blink behavior
      Returns:
      Whether table is a blink table
      See Also:
    • hasBlink

      public static boolean hasBlink(@NotNull @NotNull Map<String,Object> attributes)
      Returns true if attributes indicate a blink table.
      Parameters:
      attributes - The map to check for blink table attributes
      Returns:
      Whether attributes indicate a blink table
      See Also: