public class HoodieSimpleBucketIndex extends HoodieBucketIndex
HoodieIndex.BucketIndexEngineType, HoodieIndex.IndexTypeindexKeyFields, numBucketsconfig| Constructor and Description |
|---|
HoodieSimpleBucketIndex(HoodieWriteConfig config) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canIndexLogFiles()
This is used by storage to determine, if it is safe to send inserts, straight to the log, i.e.
|
List<String> |
findConflictInstantsInPartition(HoodieTable hoodieTable,
String partition,
int bucketId,
Set<String> pendingInstants)
Find out the conflict instants with given partition and bucket id.
|
int |
getBucketID(HoodieKey key) |
Boolean |
hasPendingDataFilesForInstant(List<StoragePathInfo> filesInPartition,
String instant,
int bucketId) |
Map<Integer,HoodieRecordLocation> |
loadBucketIdToFileIdMappingForPartition(HoodieTable hoodieTable,
String partition) |
<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).
|
getNumBuckets, isGlobal, isImplicitWithStorage, requiresTagging, rollbackCommit, updateLocationclose, tagLocation, updateLocation, updateLocationpublic HoodieSimpleBucketIndex(HoodieWriteConfig config)
public Map<Integer,HoodieRecordLocation> loadBucketIdToFileIdMappingForPartition(HoodieTable hoodieTable, String partition)
public List<String> findConflictInstantsInPartition(HoodieTable hoodieTable, String partition, int bucketId, Set<String> pendingInstants)
public Boolean hasPendingDataFilesForInstant(List<StoragePathInfo> filesInPartition, String instant, int bucketId)
public int getBucketID(HoodieKey key)
public boolean canIndexLogFiles()
HoodieIndexFileSlice, with no data file.canIndexLogFiles in class HoodieBucketIndexpublic <R> HoodieData<HoodieRecord<R>> tagLocation(HoodieData<HoodieRecord<R>> records, HoodieEngineContext context, HoodieTable hoodieTable) throws HoodieIndexException
HoodieIndextagLocation in class HoodieIndex<Object,Object>HoodieIndexExceptionCopyright © 2024 The Apache Software Foundation. All rights reserved.