public class HFileUtils extends FileFormatUtils
| Constructor and Description |
|---|
HFileUtils() |
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<String> filterRowKeys(HoodieStorage storage, StoragePath filePath, Set<String> filter)
filterRowKeys in class FileFormatUtilspublic List<HoodieKey> fetchHoodieKeys(HoodieStorage storage, StoragePath filePath)
fetchHoodieKeys in class FileFormatUtilspublic ClosableIterator<HoodieKey> getHoodieKeyIterator(HoodieStorage storage, StoragePath filePath, Option<BaseKeyGenerator> keyGeneratorOpt)
getHoodieKeyIterator in class FileFormatUtilspublic ClosableIterator<HoodieKey> getHoodieKeyIterator(HoodieStorage storage, StoragePath filePath)
getHoodieKeyIterator in class FileFormatUtilspublic List<HoodieKey> fetchHoodieKeys(HoodieStorage storage, StoragePath filePath, Option<BaseKeyGenerator> keyGeneratorOpt)
fetchHoodieKeys 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 byte[] 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 © 2024 The Apache Software Foundation. All rights reserved.