Class HashSetBackedTableFactory

java.lang.Object
io.deephaven.engine.table.impl.util.HashSetBackedTableFactory

public class HashSetBackedTableFactory extends Object
An abstract table that represents a hash set of array-backed tuples. Since we are representing a set, there we are not defining an order to our output. Whatever order the table happens to end up in, is fine. The table will run by regenerating the full hash set (using the setGenerator Function passed in); and then comparing that to the existing hash set.
  • Method Details

    • create

      public static Table create(Supplier<HashSet<ArrayTuple>> setGenerator, int refreshIntervalMs, String... colNames)
      Create a ticking table based on a setGenerator.
      Parameters:
      setGenerator - a function that returns a HashSet of ArrayTuples, each ArrayTuple is a row in the output.
      refreshIntervalMs - how often to run the table, if less than or equal to 0 the table does not tick.
      colNames - the column names for the output table, must match the number of elements in each ArrayTuple.
      Returns:
      a table representing the Set returned by the setGenerator