Package com.illumon.iris.db.v2
Class SourceTableFactory
java.lang.Object
com.illumon.iris.db.v2.SourceTableFactory
Factory class for creating
SourceTable instances.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptioncreateTable(TableDataService tableDataService, TableDefinition tableDefinition, boolean isUser, boolean isIntraday, boolean isLive, Set<String> internalPartitions) Create a new SourceTable appropriate to implement the supplied TableDefinition.Collection<? extends TableLocation>getLocations(TableDataService tableDataService, TableDefinition tableDefinition, boolean isUser, boolean isIntraday) Get the available locations for the specified table.
-
Field Details
-
INSTANCE
-
-
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 locationstableDefinition- The table definition to use for instantiating the tableisUser- Whether this is a user tableisIntraday- Whether this is an intraday tableisLive- Whether the result should tickinternalPartitions- 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 locationstableDefinition- The table definition to use for determining storage typeisUser- Whether this is a user tableisIntraday- Whether this is an intraday table- Returns:
- A collection of locations.
-