public class HoodieGlobalSimpleIndex extends HoodieSimpleIndex
HoodieIndex.BucketIndexEngineType, HoodieIndex.IndexTypekeyGeneratorOptconfig| Constructor and Description |
|---|
HoodieGlobalSimpleIndex(HoodieWriteConfig config,
Option<BaseKeyGenerator> keyGeneratorOpt) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isGlobal()
An index is `global` if
HoodieKey to fileID mapping, does not depend on the `partitionPath`. |
<R> HoodieData<HoodieRecord<R>> |
tagLocation(HoodieData<HoodieRecord<R>> records,
HoodieEngineContext context,
HoodieTable hoodieTable)
Looks up the index and tags each incoming record with a location of a file that contains
the row (if it is actually present).
|
protected <R> HoodieData<HoodieRecord<R>> |
tagLocationInternal(HoodieData<HoodieRecord<R>> inputRecords,
HoodieEngineContext context,
HoodieTable hoodieTable)
Tags records location for incoming records.
|
canIndexLogFiles, fetchRecordLocations, fetchRecordLocationsForAffectedPartitions, isImplicitWithStorage, rollbackCommit, updateLocationclose, requiresTagging, tagLocation, updateLocation, updateLocationpublic HoodieGlobalSimpleIndex(HoodieWriteConfig config, Option<BaseKeyGenerator> keyGeneratorOpt)
public <R> HoodieData<HoodieRecord<R>> tagLocation(HoodieData<HoodieRecord<R>> records, HoodieEngineContext context, HoodieTable hoodieTable)
HoodieIndextagLocation in class HoodieSimpleIndexprotected <R> HoodieData<HoodieRecord<R>> tagLocationInternal(HoodieData<HoodieRecord<R>> inputRecords, HoodieEngineContext context, HoodieTable hoodieTable)
tagLocationInternal in class HoodieSimpleIndexinputRecords - HoodieData of incoming recordscontext - instance of HoodieEngineContext to usehoodieTable - instance of HoodieTable to useHoodieData of records with record locations setpublic boolean isGlobal()
HoodieIndexHoodieKey to fileID mapping, does not depend on the `partitionPath`. Such an
implementation is able to obtain the same mapping, for two hoodie keys with same `recordKey` but different
`partitionPath`isGlobal in class HoodieSimpleIndexCopyright © 2024 The Apache Software Foundation. All rights reserved.