public class HoodieDeleteBlock extends HoodieLogBlock
HoodieLogBlock.FooterMetadataType, HoodieLogBlock.HeaderMetadataType, HoodieLogBlock.HoodieLogBlockContentLocation, HoodieLogBlock.HoodieLogBlockTypereadBlockLazily, version| Constructor and Description |
|---|
HoodieDeleteBlock(DeleteRecord[] recordsToDelete,
Map<HoodieLogBlock.HeaderMetadataType,String> header) |
HoodieDeleteBlock(Option<byte[]> content,
org.apache.hadoop.fs.FSDataInputStream inputStream,
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() |
DeleteRecord[] |
getRecordsToDelete() |
deflate, getBlockContentLocation, getContent, getLogBlockFooter, getLogBlockHeader, getLogBlockLength, getLogMetadata, getLogMetadataBytes, getMagic, inflate, tryReadContentpublic HoodieDeleteBlock(DeleteRecord[] recordsToDelete, Map<HoodieLogBlock.HeaderMetadataType,String> header)
public HoodieDeleteBlock(Option<byte[]> content, org.apache.hadoop.fs.FSDataInputStream inputStream, boolean readBlockLazily, Option<HoodieLogBlock.HoodieLogBlockContentLocation> blockContentLocation, Map<HoodieLogBlock.HeaderMetadataType,String> header, Map<HoodieLogBlock.HeaderMetadataType,String> footer)
public byte[] getContentBytes()
throws IOException
getContentBytes in class HoodieLogBlockIOExceptionpublic DeleteRecord[] getRecordsToDelete()
public HoodieLogBlock.HoodieLogBlockType getBlockType()
getBlockType in class HoodieLogBlockCopyright © 2022 The Apache Software Foundation. All rights reserved.