Interface TableUpsertMetadataManager
-
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
BaseTableUpsertMetadataManager,ConcurrentMapTableUpsertMetadataManager
@ThreadSafe public interface TableUpsertMetadataManager extends Closeable
The manager of the upsert metadata of a table.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PartitionUpsertMetadataManagergetOrCreatePartitionManager(int partitionId)Map<Integer,Long>getPartitionToPrimaryKeyCount()Retrieves a mapping of partition id to the primary key count for the partition.UpsertConfig.ModegetUpsertMode()voidinit(TableConfig tableConfig, Schema schema, TableDataManager tableDataManager, org.apache.helix.HelixManager helixManager, ExecutorService segmentPreloadExecutor)booleanisPreloading()voidstop()Stops the metadata manager.
-
-
-
Method Detail
-
init
void init(TableConfig tableConfig, Schema schema, TableDataManager tableDataManager, org.apache.helix.HelixManager helixManager, @Nullable ExecutorService segmentPreloadExecutor)
-
getOrCreatePartitionManager
PartitionUpsertMetadataManager getOrCreatePartitionManager(int partitionId)
-
getUpsertMode
UpsertConfig.Mode getUpsertMode()
-
stop
void stop()
Stops the metadata manager. After invoking this method, no access to the metadata will be accepted.
-
getPartitionToPrimaryKeyCount
Map<Integer,Long> getPartitionToPrimaryKeyCount()
Retrieves a mapping of partition id to the primary key count for the partition.- Returns:
- A
Mapwhere keys are partition id and values are count of primary keys for that specific partition
-
isPreloading
boolean isPreloading()
-
-