public class HoodieIndexUtils extends Object
| Constructor and Description |
|---|
HoodieIndexUtils() |
| Modifier and Type | Method and Description |
|---|---|
static List<String> |
filterKeysFromFile(org.apache.hadoop.fs.Path filePath,
List<String> candidateRecordKeys,
org.apache.hadoop.conf.Configuration configuration)
Given a list of row keys and one file, return only row keys existing in that file.
|
static List<Pair<String,HoodieBaseFile>> |
getLatestBaseFilesForAllPartitions(List<String> partitions,
HoodieEngineContext context,
HoodieTable hoodieTable)
Fetches Pair of partition path and
HoodieBaseFiles for interested partitions. |
static List<HoodieBaseFile> |
getLatestBaseFilesForPartition(String partition,
HoodieTable hoodieTable)
Fetches Pair of partition path and
HoodieBaseFiles for interested partitions. |
static HoodieRecord |
getTaggedRecord(HoodieRecord inputRecord,
Option<HoodieRecordLocation> location)
Get tagged record for the passed in
HoodieRecord. |
public static List<HoodieBaseFile> getLatestBaseFilesForPartition(String partition, HoodieTable hoodieTable)
HoodieBaseFiles for interested partitions.partition - Partition of interesthoodieTable - Instance of HoodieTable of interestHoodieBaseFilepublic static List<Pair<String,HoodieBaseFile>> getLatestBaseFilesForAllPartitions(List<String> partitions, HoodieEngineContext context, HoodieTable hoodieTable)
HoodieBaseFiles for interested partitions.partitions - list of partitions of interestcontext - instance of HoodieEngineContext to usehoodieTable - instance of HoodieTable of interestpublic static HoodieRecord getTaggedRecord(HoodieRecord inputRecord, Option<HoodieRecordLocation> location)
HoodieRecord.inputRecord - instance of HoodieRecord for which tagging is requestedlocation - HoodieRecordLocation for the passed in HoodieRecordHoodieRecordpublic static List<String> filterKeysFromFile(org.apache.hadoop.fs.Path filePath, List<String> candidateRecordKeys, org.apache.hadoop.conf.Configuration configuration) throws HoodieIndexException
filePath - - File to filter keys fromcandidateRecordKeys - - Candidate keys to filterHoodieIndexExceptionCopyright © 2022 The Apache Software Foundation. All rights reserved.