public class HoodieAvroDataBlock extends HoodieDataBlock
HoodieLogBlock.FooterMetadataType, HoodieLogBlock.HeaderMetadataType, HoodieLogBlock.HoodieLogBlockContentLocation, HoodieLogBlock.HoodieLogBlockTypeinternalSchema, readerSchemareadBlockLazily, version| Constructor and Description |
|---|
HoodieAvroDataBlock(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,
String keyField) |
HoodieAvroDataBlock(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,
String keyField,
InternalSchema internalSchema) |
HoodieAvroDataBlock(List<org.apache.avro.generic.IndexedRecord> records,
Map<HoodieLogBlock.HeaderMetadataType,String> header,
String keyField) |
HoodieAvroDataBlock(List<org.apache.avro.generic.IndexedRecord> records,
org.apache.avro.Schema schema)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected ClosableIterator<org.apache.avro.generic.IndexedRecord> |
deserializeRecords(byte[] content) |
static HoodieAvroDataBlock |
getBlock(byte[] content,
org.apache.avro.Schema readerSchema) |
static HoodieAvroDataBlock |
getBlock(byte[] content,
org.apache.avro.Schema readerSchema,
InternalSchema internalSchema)
Deprecated.
|
HoodieLogBlock.HoodieLogBlockType |
getBlockType() |
byte[] |
getBytes(org.apache.avro.Schema schema)
Deprecated.
|
protected byte[] |
serializeRecords(List<org.apache.avro.generic.IndexedRecord> records) |
getContentBytes, getKeyField, getRecordIterator, getRecordIterator, getRecordKey, getSchema, getWriterSchema, lookupRecords, readRecordsFromBlockPayloaddeflate, getBlockContentLocation, getContent, getLogBlockFooter, getLogBlockHeader, getLogBlockLength, getLogMetadata, getLogMetadataBytes, getMagic, inflate, tryReadContentpublic HoodieAvroDataBlock(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,
String keyField,
InternalSchema internalSchema)
public HoodieAvroDataBlock(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,
String keyField)
public HoodieAvroDataBlock(@Nonnull List<org.apache.avro.generic.IndexedRecord> records, @Nonnull Map<HoodieLogBlock.HeaderMetadataType,String> header, @Nonnull String keyField)
@Deprecated public HoodieAvroDataBlock(List<org.apache.avro.generic.IndexedRecord> records, org.apache.avro.Schema schema)
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 HoodieDataBlockIOExceptionpublic static HoodieAvroDataBlock getBlock(byte[] content, org.apache.avro.Schema readerSchema) throws IOException
IOException@Deprecated public static HoodieAvroDataBlock getBlock(byte[] content, org.apache.avro.Schema readerSchema, InternalSchema internalSchema) throws IOException
IOException@Deprecated public byte[] getBytes(org.apache.avro.Schema schema) throws IOException
IOExceptionCopyright © 2022 The Apache Software Foundation. All rights reserved.