public abstract class HoodieBootstrapFileReader<T> extends Object implements HoodieFileReader<T>
| Constructor and Description |
|---|
HoodieBootstrapFileReader(HoodieFileReader<T> skeletonFileReader,
HoodieFileReader<T> dataFileReader,
Option<String[]> partitionFields,
Object[] partitionValues) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Set<String> |
filterRowKeys(Set<String> candidateRowKeys) |
ClosableIterator<HoodieRecord<T>> |
getRecordIterator(org.apache.avro.Schema schema) |
ClosableIterator<HoodieRecord<T>> |
getRecordIterator(org.apache.avro.Schema readerSchema,
org.apache.avro.Schema requestedSchema) |
ClosableIterator<String> |
getRecordKeyIterator() |
org.apache.avro.Schema |
getSchema() |
long |
getTotalRecords() |
BloomFilter |
readBloomFilter() |
String[] |
readMinMaxRecordKeys() |
protected abstract void |
setPartitionField(int position,
Object fieldValue,
T row) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRecordIteratorpublic HoodieBootstrapFileReader(HoodieFileReader<T> skeletonFileReader, HoodieFileReader<T> dataFileReader, Option<String[]> partitionFields, Object[] partitionValues)
public String[] readMinMaxRecordKeys()
readMinMaxRecordKeys in interface HoodieFileReader<T>public BloomFilter readBloomFilter()
readBloomFilter in interface HoodieFileReader<T>public Set<String> filterRowKeys(Set<String> candidateRowKeys)
filterRowKeys in interface HoodieFileReader<T>public ClosableIterator<HoodieRecord<T>> getRecordIterator(org.apache.avro.Schema readerSchema, org.apache.avro.Schema requestedSchema) throws IOException
getRecordIterator in interface HoodieFileReader<T>IOExceptionpublic ClosableIterator<HoodieRecord<T>> getRecordIterator(org.apache.avro.Schema schema) throws IOException
getRecordIterator in interface HoodieFileReader<T>IOExceptionpublic ClosableIterator<String> getRecordKeyIterator() throws IOException
getRecordKeyIterator in interface HoodieFileReader<T>IOExceptionpublic org.apache.avro.Schema getSchema()
getSchema in interface HoodieFileReader<T>public void close()
close in interface AutoCloseableclose in interface HoodieFileReader<T>public long getTotalRecords()
getTotalRecords in interface HoodieFileReader<T>Copyright © 2024 The Apache Software Foundation. All rights reserved.