Class BaseTableUpsertMetadataManager
- java.lang.Object
-
- org.apache.pinot.segment.local.upsert.BaseTableUpsertMetadataManager
-
- All Implemented Interfaces:
Closeable,AutoCloseable,TableUpsertMetadataManager
- Direct Known Subclasses:
ConcurrentMapTableUpsertMetadataManager
@ThreadSafe public abstract class BaseTableUpsertMetadataManager extends Object implements TableUpsertMetadataManager
-
-
Field Summary
Fields Modifier and Type Field Description protected List<String>_comparisonColumnsprotected String_deleteRecordColumnprotected boolean_enableSnapshotprotected HashFunction_hashFunctionprotected org.apache.helix.HelixManager_helixManagerprotected double_metadataTTLprotected PartialUpsertHandler_partialUpsertHandlerprotected List<String>_primaryKeyColumnsprotected Schema_schemaprotected ExecutorService_segmentPreloadExecutorprotected ServerMetrics_serverMetricsprotected TableConfig_tableConfigprotected TableDataManager_tableDataManagerprotected File_tableIndexDirprotected String_tableNameWithType
-
Constructor Summary
Constructors Constructor Description BaseTableUpsertMetadataManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected IndexLoadingConfigcreateIndexLoadingConfig()UpsertConfig.ModegetUpsertMode()voidinit(TableConfig tableConfig, Schema schema, TableDataManager tableDataManager, ServerMetrics serverMetrics, org.apache.helix.HelixManager helixManager, ExecutorService segmentPreloadExecutor)protected voidinitCustomVariables()Can be overridden to initialize custom variables after other variables are set but before preload starts.booleanisPreloading()protected voidonPreloadFinish()Can be overridden to perform operations after preload is done.protected voidonPreloadStart()Can be overridden to perform operations before preload starts.protected voidpreloadSegmentWithSnapshot(String segmentName, IndexLoadingConfig indexLoadingConfig, SegmentZKMetadata zkMetadata)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.pinot.segment.local.upsert.TableUpsertMetadataManager
getOrCreatePartitionManager, stop
-
-
-
-
Field Detail
-
_tableConfig
protected TableConfig _tableConfig
-
_schema
protected Schema _schema
-
_tableDataManager
protected TableDataManager _tableDataManager
-
_tableNameWithType
protected String _tableNameWithType
-
_deleteRecordColumn
protected String _deleteRecordColumn
-
_hashFunction
protected HashFunction _hashFunction
-
_partialUpsertHandler
protected PartialUpsertHandler _partialUpsertHandler
-
_enableSnapshot
protected boolean _enableSnapshot
-
_metadataTTL
protected double _metadataTTL
-
_tableIndexDir
protected File _tableIndexDir
-
_serverMetrics
protected ServerMetrics _serverMetrics
-
_helixManager
protected org.apache.helix.HelixManager _helixManager
-
_segmentPreloadExecutor
protected ExecutorService _segmentPreloadExecutor
-
-
Method Detail
-
init
public void init(TableConfig tableConfig, Schema schema, TableDataManager tableDataManager, ServerMetrics serverMetrics, org.apache.helix.HelixManager helixManager, @Nullable ExecutorService segmentPreloadExecutor)
- Specified by:
initin interfaceTableUpsertMetadataManager
-
initCustomVariables
protected void initCustomVariables()
Can be overridden to initialize custom variables after other variables are set but before preload starts. This is needed because preload will load segments which might require these custom variables.
-
onPreloadStart
protected void onPreloadStart()
Can be overridden to perform operations before preload starts.
-
onPreloadFinish
protected void onPreloadFinish()
Can be overridden to perform operations after preload is done.
-
createIndexLoadingConfig
protected IndexLoadingConfig createIndexLoadingConfig()
-
preloadSegmentWithSnapshot
protected void preloadSegmentWithSnapshot(String segmentName, IndexLoadingConfig indexLoadingConfig, SegmentZKMetadata zkMetadata)
-
isPreloading
public boolean isPreloading()
- Specified by:
isPreloadingin interfaceTableUpsertMetadataManager
-
getUpsertMode
public UpsertConfig.Mode getUpsertMode()
- Specified by:
getUpsertModein interfaceTableUpsertMetadataManager
-
-