public class HoodieHFileDataBlock extends HoodieDataBlock
HoodieLogBlock.FooterMetadataType, HoodieLogBlock.HeaderMetadataType, HoodieLogBlock.HoodieLogBlockContentLocation, HoodieLogBlock.HoodieLogBlockTypeinternalSchema, readerSchemareadBlockLazily, version| Constructor and Description |
|---|
HoodieHFileDataBlock(org.apache.hadoop.fs.FSDataInputStream inputStream,
Option<byte[]> content,
boolean readBlockLazily,
HoodieLogBlock.HoodieLogBlockContentLocation logBlockContentLocation,
Option<org.apache.avro.Schema> readerSchema,
Map<HoodieLogBlock.HeaderMetadataType,String> header,
Map<HoodieLogBlock.HeaderMetadataType,String> footer,
boolean enablePointLookups,
org.apache.hadoop.fs.Path pathForReader) |
HoodieHFileDataBlock(List<org.apache.avro.generic.IndexedRecord> records,
Map<HoodieLogBlock.HeaderMetadataType,String> header,
org.apache.hadoop.hbase.io.compress.Compression.Algorithm compressionAlgorithm,
org.apache.hadoop.fs.Path pathForReader) |
| Modifier and Type | Method and Description |
|---|---|
protected ClosableIterator<org.apache.avro.generic.IndexedRecord> |
deserializeRecords(byte[] content) |
HoodieLogBlock.HoodieLogBlockType |
getBlockType() |
protected ClosableIterator<org.apache.avro.generic.IndexedRecord> |
lookupRecords(List<String> keys,
boolean fullKey) |
protected byte[] |
serializeRecords(List<org.apache.avro.generic.IndexedRecord> records) |
getContentBytes, getKeyField, getRecordIterator, getRecordIterator, getRecordKey, getSchema, getWriterSchema, readRecordsFromBlockPayloaddeflate, getBlockContentLocation, getContent, getLogBlockFooter, getLogBlockHeader, getLogBlockLength, getLogMetadata, getLogMetadataBytes, getMagic, inflate, tryReadContentpublic HoodieHFileDataBlock(org.apache.hadoop.fs.FSDataInputStream inputStream,
Option<byte[]> content,
boolean readBlockLazily,
HoodieLogBlock.HoodieLogBlockContentLocation logBlockContentLocation,
Option<org.apache.avro.Schema> readerSchema,
Map<HoodieLogBlock.HeaderMetadataType,String> header,
Map<HoodieLogBlock.HeaderMetadataType,String> footer,
boolean enablePointLookups,
org.apache.hadoop.fs.Path pathForReader)
public HoodieHFileDataBlock(List<org.apache.avro.generic.IndexedRecord> records, Map<HoodieLogBlock.HeaderMetadataType,String> header, org.apache.hadoop.hbase.io.compress.Compression.Algorithm compressionAlgorithm, org.apache.hadoop.fs.Path pathForReader)
public HoodieLogBlock.HoodieLogBlockType getBlockType()
getBlockType in class HoodieDataBlockprotected byte[] serializeRecords(List<org.apache.avro.generic.IndexedRecord> records) throws IOException
serializeRecords in class HoodieDataBlockIOExceptionprotected ClosableIterator<org.apache.avro.generic.IndexedRecord> deserializeRecords(byte[] content) throws IOException
deserializeRecords in class HoodieDataBlockIOExceptionprotected ClosableIterator<org.apache.avro.generic.IndexedRecord> lookupRecords(List<String> keys, boolean fullKey) throws IOException
lookupRecords in class HoodieDataBlockIOExceptionCopyright © 2022 The Apache Software Foundation. All rights reserved.