public class HoodieKeyLookupHandle<T extends HoodieRecordPayload,I,K,O> extends HoodieReadHandle<T,I,K,O>
| Modifier and Type | Class and Description |
|---|---|
static class |
HoodieKeyLookupHandle.KeyLookupResult
Encapsulates the result from a key lookup.
|
partitionPathFilePairconfig, fs, hoodieTable, instantTime| Constructor and Description |
|---|
HoodieKeyLookupHandle(HoodieWriteConfig config,
HoodieTable<T,I,K,O> hoodieTable,
Pair<String,String> partitionPathFilePair) |
| Modifier and Type | Method and Description |
|---|---|
void |
addKey(String recordKey)
Adds the key for look up.
|
List<String> |
checkCandidatesAgainstFile(org.apache.hadoop.conf.Configuration configuration,
List<String> candidateRecordKeys,
org.apache.hadoop.fs.Path filePath)
Given a list of row keys and one file, return only row keys existing in that file.
|
HoodieKeyLookupHandle.KeyLookupResult |
getLookupResult()
Of all the keys, that were added, return a list of keys that were actually found in the file group.
|
createNewFileReader, getFileId, getFileSystem, getLatestDataFile, getPartitionPathFilePairpublic HoodieKeyLookupHandle(HoodieWriteConfig config, HoodieTable<T,I,K,O> hoodieTable, Pair<String,String> partitionPathFilePair)
public List<String> checkCandidatesAgainstFile(org.apache.hadoop.conf.Configuration configuration, List<String> candidateRecordKeys, org.apache.hadoop.fs.Path filePath) throws HoodieIndexException
HoodieIndexExceptionpublic void addKey(String recordKey)
public HoodieKeyLookupHandle.KeyLookupResult getLookupResult()
Copyright © 2022 The Apache Software Foundation. All rights reserved.