public class HoodieHBaseAvroHFileReader extends HoodieAvroHFileReaderImplBase
HoodieFileReader implementation allowing to read from HFile.
KEY_BLOOM_FILTER_META_BLOCK, KEY_BLOOM_FILTER_TYPE_CODE, KEY_FIELD_NAME, KEY_MAX_RECORD, KEY_MIN_RECORD, SCHEMA_KEY| Constructor and Description |
|---|
HoodieHBaseAvroHFileReader(StorageConfiguration<?> storageConf,
StoragePath path) |
HoodieHBaseAvroHFileReader(StorageConfiguration<?> storageConf,
StoragePath path,
HoodieStorage storage,
byte[] content,
Option<org.apache.avro.Schema> schemaOpt) |
HoodieHBaseAvroHFileReader(StorageConfiguration<?> storageConf,
StoragePath path,
Option<org.apache.avro.Schema> schemaOpt) |
HoodieHBaseAvroHFileReader(StoragePath path,
HoodieStorage storage,
StorageConfiguration<?> storageConf,
Option<org.apache.avro.Schema> schemaOpt,
Option<byte[]> content) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Set<String> |
filterRowKeys(Set<String> candidateRowKeys)
Filter keys by availability.
|
ClosableIterator<org.apache.avro.generic.IndexedRecord> |
getIndexedRecordIterator(org.apache.avro.Schema readerSchema,
org.apache.avro.Schema requestedSchema) |
ClosableIterator<org.apache.avro.generic.IndexedRecord> |
getIndexedRecordsByKeyPrefixIterator(List<String> sortedKeyPrefixes,
org.apache.avro.Schema readerSchema) |
ClosableIterator<org.apache.avro.generic.IndexedRecord> |
getIndexedRecordsByKeysIterator(List<String> keys,
org.apache.avro.Schema readerSchema) |
ClosableIterator<String> |
getRecordKeyIterator() |
ClosableIterator<HoodieRecord<org.apache.avro.generic.IndexedRecord>> |
getRecordsByKeyPrefixIterator(List<String> sortedKeyPrefixes,
org.apache.avro.Schema schema) |
ClosableIterator<HoodieRecord<org.apache.avro.generic.IndexedRecord>> |
getRecordsByKeysIterator(List<String> sortedKeys,
org.apache.avro.Schema schema) |
org.apache.avro.Schema |
getSchema() |
long |
getTotalRecords() |
BloomFilter |
readBloomFilter() |
String[] |
readMinMaxRecordKeys() |
deserialize, deserialize, readAllRecords, readRecords, readRecordsgetIndexedRecordIterator, getRecordIteratorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRecordsByKeyPrefixIterator, getRecordsByKeysIteratorgetRecordIterator, getRecordIterator, getRecordIteratorpublic HoodieHBaseAvroHFileReader(StorageConfiguration<?> storageConf, StoragePath path, Option<org.apache.avro.Schema> schemaOpt) throws IOException
IOExceptionpublic HoodieHBaseAvroHFileReader(StorageConfiguration<?> storageConf, StoragePath path, HoodieStorage storage, byte[] content, Option<org.apache.avro.Schema> schemaOpt) throws IOException
IOExceptionpublic HoodieHBaseAvroHFileReader(StorageConfiguration<?> storageConf, StoragePath path) throws IOException
IOExceptionpublic HoodieHBaseAvroHFileReader(StoragePath path, HoodieStorage storage, StorageConfiguration<?> storageConf, Option<org.apache.avro.Schema> schemaOpt, Option<byte[]> content) throws IOException
IOExceptionpublic ClosableIterator<HoodieRecord<org.apache.avro.generic.IndexedRecord>> getRecordsByKeysIterator(List<String> sortedKeys, org.apache.avro.Schema schema) throws IOException
IOExceptionpublic ClosableIterator<HoodieRecord<org.apache.avro.generic.IndexedRecord>> getRecordsByKeyPrefixIterator(List<String> sortedKeyPrefixes, org.apache.avro.Schema schema) throws IOException
IOExceptionpublic String[] readMinMaxRecordKeys()
public BloomFilter readBloomFilter()
public org.apache.avro.Schema getSchema()
public Set<String> filterRowKeys(Set<String> candidateRowKeys)
Note: This method is performant when the caller passes in a sorted candidate keys.
candidateRowKeys - - Keys to check for the availabilitypublic ClosableIterator<org.apache.avro.generic.IndexedRecord> getIndexedRecordIterator(org.apache.avro.Schema readerSchema, org.apache.avro.Schema requestedSchema)
getIndexedRecordIterator in class HoodieAvroFileReaderpublic ClosableIterator<org.apache.avro.generic.IndexedRecord> getIndexedRecordsByKeysIterator(List<String> keys, org.apache.avro.Schema readerSchema) throws IOException
getIndexedRecordsByKeysIterator in class HoodieAvroHFileReaderImplBaseIOExceptionpublic ClosableIterator<org.apache.avro.generic.IndexedRecord> getIndexedRecordsByKeyPrefixIterator(List<String> sortedKeyPrefixes, org.apache.avro.Schema readerSchema) throws IOException
getIndexedRecordsByKeyPrefixIterator in class HoodieAvroHFileReaderImplBaseIOExceptionpublic long getTotalRecords()
public void close()
public ClosableIterator<String> getRecordKeyIterator()
Copyright © 2024 The Apache Software Foundation. All rights reserved.