public class HoodieInMemoryHashIndex extends HoodieIndex<Object,Object>
ONLY USE FOR LOCAL TESTING
HoodieIndex.BucketIndexEngineType, HoodieIndex.IndexTypeconfig| Constructor and Description |
|---|
HoodieInMemoryHashIndex(HoodieWriteConfig config) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canIndexLogFiles()
Mapping is available in HBase already.
|
boolean |
isGlobal()
Only looks up by recordKey.
|
boolean |
isImplicitWithStorage()
Index needs to be explicitly updated after storage write.
|
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, updateLocationpublic HoodieInMemoryHashIndex(HoodieWriteConfig config)
public <R> HoodieData<HoodieRecord<R>> tagLocation(HoodieData<HoodieRecord<R>> records, HoodieEngineContext context, HoodieTable hoodieTable)
HoodieIndextagLocation in class HoodieIndex<Object,Object>public HoodieData<WriteStatus> updateLocation(HoodieData<WriteStatus> writeStatuses, HoodieEngineContext context, HoodieTable hoodieTable)
HoodieIndexupdateLocation in class HoodieIndex<Object,Object>public boolean rollbackCommit(String instantTime)
HoodieIndexrollbackCommit in class HoodieIndex<Object,Object>public boolean isGlobal()
isGlobal in class HoodieIndex<Object,Object>public boolean canIndexLogFiles()
canIndexLogFiles in class HoodieIndex<Object,Object>public boolean isImplicitWithStorage()
isImplicitWithStorage in class HoodieIndex<Object,Object>Copyright © 2022 The Apache Software Foundation. All rights reserved.