public class HFileUtils extends FileFormatUtils
FileFormatUtils.HoodieKeyIterator| Constructor and Description |
|---|
HFileUtils() |
getColumnRangeInPartition, readBloomFilterFromMetadata, readMinMaxRecordKeys, readRowKeyspublic static org.apache.hadoop.hbase.io.compress.Compression.Algorithm getHFileCompressionAlgorithm(Map<String,String> paramsMap)
Compression.Algorithm Enum based on the CompressionCodec name.paramsMap - parameter map containing the compression codec config.Compression.Algorithm Enum.public List<org.apache.avro.generic.GenericRecord> readAvroRecords(HoodieStorage storage, StoragePath filePath)
readAvroRecords in class FileFormatUtilspublic List<org.apache.avro.generic.GenericRecord> readAvroRecords(HoodieStorage storage, StoragePath filePath, org.apache.avro.Schema schema)
readAvroRecords in class FileFormatUtilspublic Map<String,String> readFooter(HoodieStorage storage, boolean required, StoragePath filePath, String... footerNames)
readFooter in class FileFormatUtilspublic long getRowCount(HoodieStorage storage, StoragePath filePath)
getRowCount in class FileFormatUtilspublic Set<Pair<String,Long>> filterRowKeys(HoodieStorage storage, StoragePath filePath, Set<String> filter)
filterRowKeys in class FileFormatUtilspublic ClosableIterator<Pair<HoodieKey,Long>> fetchRecordKeysWithPositions(HoodieStorage storage, StoragePath filePath)
fetchRecordKeysWithPositions in class FileFormatUtilspublic ClosableIterator<HoodieKey> getHoodieKeyIterator(HoodieStorage storage, StoragePath filePath, Option<BaseKeyGenerator> keyGeneratorOpt, Option<String> partitionPath)
getHoodieKeyIterator in class FileFormatUtilspublic ClosableIterator<HoodieKey> getHoodieKeyIterator(HoodieStorage storage, StoragePath filePath)
getHoodieKeyIterator in class FileFormatUtilspublic ClosableIterator<Pair<HoodieKey,Long>> fetchRecordKeysWithPositions(HoodieStorage storage, StoragePath filePath, Option<BaseKeyGenerator> keyGeneratorOpt, Option<String> partitionPath)
fetchRecordKeysWithPositions in class FileFormatUtilspublic org.apache.avro.Schema readAvroSchema(HoodieStorage storage, StoragePath filePath)
readAvroSchema in class FileFormatUtilspublic List<HoodieColumnRangeMetadata<Comparable>> readColumnStatsFromMetadata(HoodieStorage storage, StoragePath filePath, List<String> columnList)
readColumnStatsFromMetadata in class FileFormatUtilspublic HoodieFileFormat getFormat()
getFormat in class FileFormatUtilspublic void writeMetaFile(HoodieStorage storage, StoragePath filePath, Properties props) throws IOException
writeMetaFile in class FileFormatUtilsIOExceptionpublic ByteArrayOutputStream serializeRecordsToLogBlock(HoodieStorage storage, List<HoodieRecord> records, org.apache.avro.Schema writerSchema, org.apache.avro.Schema readerSchema, String keyFieldName, Map<String,String> paramsMap) throws IOException
serializeRecordsToLogBlock in class FileFormatUtilsIOExceptionCopyright © 2025 The Apache Software Foundation. All rights reserved.