public class HoodieCorruptBlock extends HoodieLogBlock
HoodieLogBlock.FooterMetadataType, HoodieLogBlock.HeaderMetadataType, HoodieLogBlock.HoodieLogBlockContentLocation, HoodieLogBlock.HoodieLogBlockTypereadBlockLazily, version| Constructor and Description |
|---|
HoodieCorruptBlock(Option<byte[]> corruptedBytes,
Supplier<SeekableDataInputStream> inputStreamSupplier,
boolean readBlockLazily,
Option<HoodieLogBlock.HoodieLogBlockContentLocation> blockContentLocation,
Map<HoodieLogBlock.HeaderMetadataType,String> header,
Map<HoodieLogBlock.HeaderMetadataType,String> footer) |
| Modifier and Type | Method and Description |
|---|---|
HoodieLogBlock.HoodieLogBlockType |
getBlockType() |
byte[] |
getContentBytes(HoodieStorage storage) |
addRecordPositionsToHeader, deflate, getBlockContentLocation, getContent, getLogBlockFooter, getLogBlockHeader, getLogBlockLength, getLogMetadata, getLogMetadataBytes, getMagic, getRecordPositions, inflate, isCompactedLogBlock, tryReadContentpublic HoodieCorruptBlock(Option<byte[]> corruptedBytes, Supplier<SeekableDataInputStream> inputStreamSupplier, boolean readBlockLazily, Option<HoodieLogBlock.HoodieLogBlockContentLocation> blockContentLocation, Map<HoodieLogBlock.HeaderMetadataType,String> header, Map<HoodieLogBlock.HeaderMetadataType,String> footer)
public byte[] getContentBytes(HoodieStorage storage) throws IOException
getContentBytes in class HoodieLogBlockIOExceptionpublic HoodieLogBlock.HoodieLogBlockType getBlockType()
getBlockType in class HoodieLogBlockCopyright © 2024 The Apache Software Foundation. All rights reserved.