public class HoodieIndexUtils extends Object
| Constructor and Description |
|---|
HoodieIndexUtils() |
| Modifier and Type | Method and Description |
|---|---|
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 HoodieRecordHoodieRecordCopyright © 2022 The Apache Software Foundation. All rights reserved.