Class ConcurrentMapTableUpsertMetadataManager
- java.lang.Object
-
- org.apache.pinot.segment.local.upsert.BaseTableUpsertMetadataManager
-
- org.apache.pinot.segment.local.upsert.ConcurrentMapTableUpsertMetadataManager
-
- All Implemented Interfaces:
Closeable,AutoCloseable,TableUpsertMetadataManager
@ThreadSafe public class ConcurrentMapTableUpsertMetadataManager extends BaseTableUpsertMetadataManager
Implementation ofTableUpsertMetadataManagerthat is backed by aConcurrentHashMap.
-
-
Field Summary
-
Fields inherited from class org.apache.pinot.segment.local.upsert.BaseTableUpsertMetadataManager
_context, _helixManager, _segmentPreloadExecutor, _tableDataManager, _tableNameWithType
-
-
Constructor Summary
Constructors Constructor Description ConcurrentMapTableUpsertMetadataManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()ConcurrentMapPartitionUpsertMetadataManagergetOrCreatePartitionManager(int partitionId)Map<Integer,Long>getPartitionToPrimaryKeyCount()Retrieves a mapping of partition id to the primary key count for the partition.voidstop()Stops the metadata manager.-
Methods inherited from class org.apache.pinot.segment.local.upsert.BaseTableUpsertMetadataManager
getUpsertMode, init, initCustomVariables, isPreloading, onPreloadFinish, onPreloadStart
-
-
-
-
Method Detail
-
getOrCreatePartitionManager
public ConcurrentMapPartitionUpsertMetadataManager getOrCreatePartitionManager(int partitionId)
-
stop
public void stop()
Description copied from interface:TableUpsertMetadataManagerStops the metadata manager. After invoking this method, no access to the metadata will be accepted.
-
getPartitionToPrimaryKeyCount
public Map<Integer,Long> getPartitionToPrimaryKeyCount()
Description copied from interface:TableUpsertMetadataManagerRetrieves 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
-
close
public void close() throws IOException- Throws:
IOException
-
-