public class HoodieSimpleBucketIndex extends HoodieBucketIndex
| Modifier and Type | Class and Description |
|---|---|
class |
HoodieSimpleBucketIndex.SimpleBucketIndexLocationMapper |
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.
|
int |
getBucketID(HoodieKey key) |
protected BucketIndexLocationMapper |
getLocationMapper(HoodieTable table,
List<String> partitionPath)
Get a location mapper for the given table & partitionPath
|
Map<Integer,HoodieRecordLocation> |
loadBucketIdToFileIdMappingForPartition(HoodieTable hoodieTable,
String partition) |
getNumBuckets, isGlobal, isImplicitWithStorage, requiresTagging, rollbackCommit, tagLocation, updateLocationclose, tagLocation, updateLocation, updateLocationpublic HoodieSimpleBucketIndex(HoodieWriteConfig config)
public Map<Integer,HoodieRecordLocation> loadBucketIdToFileIdMappingForPartition(HoodieTable hoodieTable, String partition)
public int getBucketID(HoodieKey key)
public boolean canIndexLogFiles()
HoodieIndexFileSlice, with no data file.canIndexLogFiles in class HoodieBucketIndexprotected BucketIndexLocationMapper getLocationMapper(HoodieTable table, List<String> partitionPath)
HoodieBucketIndexgetLocationMapper in class HoodieBucketIndexCopyright © 2023 The Apache Software Foundation. All rights reserved.