Class SourceTableFactory

java.lang.Object
com.illumon.iris.db.v2.SourceTableFactory

public class SourceTableFactory
extends Object
Factory class for creating SourceTable instances.
  • Field Details

  • Method Details

    • createTable

      public Table createTable​(TableDataService tableDataService, TableDefinition tableDefinition, boolean isUser, boolean isIntraday, boolean isLive, Set<String> internalPartitions)
      Create a new SourceTable appropriate to implement the supplied TableDefinition.
      Parameters:
      tableDataService - The table data service to use for finding locations
      tableDefinition - The table definition to use for instantiating the table
      isUser - Whether this is a user table
      isIntraday - Whether this is an intraday table
      isLive - Whether the result should tick
      internalPartitions - The set of internal partitions to restrict the result to, or empty to include all
      Returns:
      A new SourceTable.
    • getLocations

      public Collection<? extends TableLocation> getLocations​(TableDataService tableDataService, TableDefinition tableDefinition, boolean isUser, boolean isIntraday)
      Get the available locations for the specified table.
      Parameters:
      tableDataService - The table data service to use for finding locations
      tableDefinition - The table definition to use for determining storage type
      isUser - Whether this is a user table
      isIntraday - Whether this is an intraday table
      Returns:
      A collection of locations.