Class LastByTableMapFactory
java.lang.Object
com.illumon.iris.db.tables.dataimport.importstate.lastby.LastByTableMapFactory
public class LastByTableMapFactory extends Object
Glues together a last-by view for a given intraday system table.
-
Method Summary
Modifier and Type Method Description TableMap
createTableMap(String namespace, String tableName, String columnPartitionValue)
This method is the same ascreateTableMap(String, String, String, String)
with a null viewName.TableMap
createTableMap(String namespace, String tableName, String columnPartitionValue, String viewName)
Create a last-by indexedTableMap
for intraday data from the specified namespace, table name, and column partition value.static LastByTableMapFactory
forDataImportServer(DataImportServer dataImportServer)
Build a LastByTableMapFactory consuming data and last-by indexes from the suppliedDataImportServer
.
-
Method Details
-
forDataImportServer
public static LastByTableMapFactory forDataImportServer(@NotNull DataImportServer dataImportServer)Build a LastByTableMapFactory consuming data and last-by indexes from the suppliedDataImportServer
.- Parameters:
dataImportServer
- The data import server to consume data and last-by indexes from- Returns:
- The new factory
-
createTableMap
public TableMap createTableMap(@NotNull String namespace, @NotNull String tableName, @NotNull String columnPartitionValue)This method is the same ascreateTableMap(String, String, String, String)
with a null viewName.- Parameters:
namespace
- The namespacetableName
- The table namecolumnPartitionValue
- The column partition value- Returns:
- A new
TableMap
as specified
-
createTableMap
public TableMap createTableMap(@NotNull String namespace, @NotNull String tableName, @NotNull String columnPartitionValue, String viewName)Create a last-by indexedTableMap
for intraday data from the specified namespace, table name, and column partition value. This table map will be keyed byTableLocationKey
, and each table will represent a last-by view of one partition of the data.- Parameters:
namespace
- The namespacetableName
- The table namecolumnPartitionValue
- The column partition valueviewName
- The name of this particular last-by view, also passed to LastByImportState instances (may be null)- Returns:
- A new
TableMap
as specified
-