public class HoodieNativeAvroHFileReader extends HoodieAvroHFileReaderImplBase
HoodieAvroHFileReaderImplBase using native HFileReader.KEY_BLOOM_FILTER_META_BLOCK, KEY_BLOOM_FILTER_TYPE_CODE, KEY_FIELD_NAME, KEY_MAX_RECORD, KEY_MIN_RECORD, SCHEMA_KEY| Constructor and Description |
|---|
HoodieNativeAvroHFileReader(HoodieStorage storage,
byte[] content,
Option<org.apache.avro.Schema> schemaOption) |
HoodieNativeAvroHFileReader(HoodieStorage storage,
StoragePath path,
Option<org.apache.avro.Schema> schemaOption) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Set<String> |
filterRowKeys(Set<String> candidateRowKeys) |
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> sortedKeys,
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 HoodieNativeAvroHFileReader(HoodieStorage storage, StoragePath path, Option<org.apache.avro.Schema> schemaOption)
public HoodieNativeAvroHFileReader(HoodieStorage storage, byte[] content, Option<org.apache.avro.Schema> schemaOption)
public ClosableIterator<org.apache.avro.generic.IndexedRecord> getIndexedRecordIterator(org.apache.avro.Schema readerSchema, org.apache.avro.Schema requestedSchema) throws IOException
getIndexedRecordIterator in class HoodieAvroFileReaderIOExceptionpublic String[] readMinMaxRecordKeys()
public BloomFilter readBloomFilter()
public ClosableIterator<String> getRecordKeyIterator() throws IOException
IOExceptionpublic org.apache.avro.Schema getSchema()
public void close()
public long getTotalRecords()
public 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 ClosableIterator<org.apache.avro.generic.IndexedRecord> getIndexedRecordsByKeysIterator(List<String> sortedKeys, 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 HoodieAvroHFileReaderImplBaseIOExceptionCopyright © 2024 The Apache Software Foundation. All rights reserved.