public class HoodieInternalProxyIndex extends HoodieIndex<Object,Object>
HoodieIndex.BucketIndexEngineType, HoodieIndex.IndexTypeconfig| Constructor and Description |
|---|
HoodieInternalProxyIndex(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.
|
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 |
rollbackCommit(String instantTime)
Rollback the effects of the commit made at instantTime.
|
<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).
|
HoodieData<WriteStatus> |
updateLocation(HoodieData<WriteStatus> writeStatuses,
HoodieEngineContext context,
HoodieTable hoodieTable)
Extracts the location of written records, and updates the index.
|
close, requiresTagging, tagLocation, updateLocation, updateLocationpublic HoodieInternalProxyIndex(HoodieWriteConfig config)
public <R> HoodieData<HoodieRecord<R>> tagLocation(HoodieData<HoodieRecord<R>> records, HoodieEngineContext context, HoodieTable hoodieTable) throws HoodieIndexException
HoodieIndextagLocation in class HoodieIndex<Object,Object>HoodieIndexExceptionpublic HoodieData<WriteStatus> updateLocation(HoodieData<WriteStatus> writeStatuses, HoodieEngineContext context, HoodieTable hoodieTable) throws HoodieIndexException
HoodieIndexupdateLocation in class HoodieIndex<Object,Object>HoodieIndexExceptionpublic 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>Copyright © 2024 The Apache Software Foundation. All rights reserved.