public abstract class HoodieBucketIndex extends HoodieIndex<Object,Object>
HoodieIndex.BucketIndexEngineType, HoodieIndex.IndexType| Modifier and Type | Field and Description |
|---|---|
protected List<String> |
indexKeyFields |
protected int |
numBuckets |
config| Constructor and Description |
|---|
HoodieBucketIndex(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 |
getNumBuckets() |
boolean |
isGlobal()
An index is `global` if
HoodieKey to fileID mapping, does not depend on the `partitionPath`. |
boolean |
isImplicitWithStorage()
An index is "implicit" with respect to storage, if just writing new data to a file slice, updates the index as
well.
|
boolean |
requiresTagging(WriteOperationType operationType)
To indicate if an operation type requires location tagging before writing
|
boolean |
rollbackCommit(String instantTime)
Rollback the effects of the commit made at instantTime.
|
HoodieData<WriteStatus> |
updateLocation(HoodieData<WriteStatus> writeStatuses,
HoodieEngineContext context,
HoodieTable hoodieTable)
Extracts the location of written records, and updates the index.
|
close, tagLocation, tagLocation, updateLocation, updateLocationpublic HoodieBucketIndex(HoodieWriteConfig config)
public HoodieData<WriteStatus> updateLocation(HoodieData<WriteStatus> writeStatuses, HoodieEngineContext context, HoodieTable hoodieTable) throws HoodieIndexException
HoodieIndexupdateLocation in class HoodieIndex<Object,Object>HoodieIndexExceptionpublic boolean requiresTagging(WriteOperationType operationType)
HoodieIndexrequiresTagging in class HoodieIndex<Object,Object>public boolean rollbackCommit(String instantTime)
HoodieIndexrollbackCommit in class HoodieIndex<Object,Object>public 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 HoodieIndex<Object,Object>public boolean canIndexLogFiles()
HoodieIndexFileSlice, with no data file.canIndexLogFiles in class HoodieIndex<Object,Object>public boolean isImplicitWithStorage()
HoodieIndexisImplicitWithStorage in class HoodieIndex<Object,Object>public int getNumBuckets()
Copyright © 2024 The Apache Software Foundation. All rights reserved.