public class HoodieDeleteBlock extends HoodieLogBlock
HoodieLogBlock.FooterMetadataType, HoodieLogBlock.HeaderMetadataType, HoodieLogBlock.HoodieLogBlockContentLocation, HoodieLogBlock.HoodieLogBlockTypereadBlockLazily, version| Constructor and Description |
|---|
HoodieDeleteBlock(List<Pair<DeleteRecord,Long>> recordsToDelete,
boolean shouldWriteRecordPositions,
Map<HoodieLogBlock.HeaderMetadataType,String> header) |
HoodieDeleteBlock(Option<byte[]> content,
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) |
DeleteRecord[] |
getRecordsToDelete() |
addRecordPositionsToHeader, deflate, getBlockContentLocation, getContent, getLogBlockFooter, getLogBlockHeader, getLogBlockLength, getLogMetadata, getLogMetadataBytes, getMagic, getRecordPositions, inflate, isCompactedLogBlock, tryReadContentpublic HoodieDeleteBlock(List<Pair<DeleteRecord,Long>> recordsToDelete, boolean shouldWriteRecordPositions, Map<HoodieLogBlock.HeaderMetadataType,String> header)
public HoodieDeleteBlock(Option<byte[]> content, 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 DeleteRecord[] getRecordsToDelete()
public HoodieLogBlock.HoodieLogBlockType getBlockType()
getBlockType in class HoodieLogBlockCopyright © 2024 The Apache Software Foundation. All rights reserved.