public abstract class HoodieAvroHFileReaderImplBase extends HoodieAvroFileReader implements HoodieSeekingFileReader<org.apache.avro.generic.IndexedRecord>
| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_BLOOM_FILTER_META_BLOCK |
static String |
KEY_BLOOM_FILTER_TYPE_CODE |
static String |
KEY_FIELD_NAME |
static String |
KEY_MAX_RECORD |
static String |
KEY_MIN_RECORD |
static String |
SCHEMA_KEY |
| Constructor and Description |
|---|
HoodieAvroHFileReaderImplBase() |
| Modifier and Type | Method and Description |
|---|---|
protected static org.apache.avro.generic.GenericRecord |
deserialize(byte[] keyBytes,
byte[] valueBytes,
org.apache.avro.Schema writerSchema,
org.apache.avro.Schema readerSchema) |
protected static org.apache.avro.generic.GenericRecord |
deserialize(byte[] keyBytes,
int keyOffset,
int keyLength,
byte[] valueBytes,
int valueOffset,
int valueLength,
org.apache.avro.Schema writerSchema,
org.apache.avro.Schema readerSchema) |
abstract ClosableIterator<org.apache.avro.generic.IndexedRecord> |
getIndexedRecordsByKeyPrefixIterator(List<String> sortedKeyPrefixes,
org.apache.avro.Schema readerSchema) |
abstract ClosableIterator<org.apache.avro.generic.IndexedRecord> |
getIndexedRecordsByKeysIterator(List<String> keys,
org.apache.avro.Schema readerSchema) |
static List<org.apache.avro.generic.IndexedRecord> |
readAllRecords(HoodieAvroFileReader reader)
NOTE: THIS SHOULD ONLY BE USED FOR TESTING, RECORDS ARE MATERIALIZED EAGERLY
|
static List<org.apache.avro.generic.IndexedRecord> |
readRecords(HoodieAvroHFileReaderImplBase reader,
List<String> keys)
NOTE: THIS SHOULD ONLY BE USED FOR TESTING, RECORDS ARE MATERIALIZED EAGERLY
|
static List<org.apache.avro.generic.IndexedRecord> |
readRecords(HoodieAvroHFileReaderImplBase reader,
List<String> keys,
org.apache.avro.Schema schema)
NOTE: THIS SHOULD ONLY BE USED FOR TESTING, RECORDS ARE MATERIALIZED EAGERLY
|
getIndexedRecordIterator, getIndexedRecordIterator, getRecordIteratorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRecordsByKeyPrefixIterator, getRecordsByKeyPrefixIterator, getRecordsByKeysIterator, getRecordsByKeysIteratorclose, filterRowKeys, getRecordIterator, getRecordIterator, getRecordIterator, getRecordKeyIterator, getSchema, getTotalRecords, readBloomFilter, readMinMaxRecordKeyspublic static final String SCHEMA_KEY
public static final String KEY_BLOOM_FILTER_META_BLOCK
public static final String KEY_BLOOM_FILTER_TYPE_CODE
public static final String KEY_FIELD_NAME
public static final String KEY_MIN_RECORD
public static final String KEY_MAX_RECORD
public static List<org.apache.avro.generic.IndexedRecord> readAllRecords(HoodieAvroFileReader reader) throws IOException
Reads all the records with given schema
IOExceptionpublic static List<org.apache.avro.generic.IndexedRecord> readRecords(HoodieAvroHFileReaderImplBase reader, List<String> keys) throws IOException
Reads all the records with given schema and filtering keys.
IOExceptionpublic static List<org.apache.avro.generic.IndexedRecord> readRecords(HoodieAvroHFileReaderImplBase reader, List<String> keys, org.apache.avro.Schema schema) throws IOException
Reads all the records with given schema and filtering keys.
IOExceptionpublic abstract ClosableIterator<org.apache.avro.generic.IndexedRecord> getIndexedRecordsByKeysIterator(List<String> keys, org.apache.avro.Schema readerSchema) throws IOException
IOExceptionpublic abstract ClosableIterator<org.apache.avro.generic.IndexedRecord> getIndexedRecordsByKeyPrefixIterator(List<String> sortedKeyPrefixes, org.apache.avro.Schema readerSchema) throws IOException
IOExceptionprotected static org.apache.avro.generic.GenericRecord deserialize(byte[] keyBytes,
byte[] valueBytes,
org.apache.avro.Schema writerSchema,
org.apache.avro.Schema readerSchema)
throws IOException
IOExceptionprotected static org.apache.avro.generic.GenericRecord deserialize(byte[] keyBytes,
int keyOffset,
int keyLength,
byte[] valueBytes,
int valueOffset,
int valueLength,
org.apache.avro.Schema writerSchema,
org.apache.avro.Schema readerSchema)
throws IOException
IOExceptionCopyright © 2024 The Apache Software Foundation. All rights reserved.