public class HoodieLogFileReader extends Object implements HoodieLogFormat.Reader
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_BUFFER_SIZE |
| Constructor and Description |
|---|
HoodieLogFileReader(org.apache.hadoop.fs.FileSystem fs,
HoodieLogFile logFile,
org.apache.avro.Schema readerSchema) |
HoodieLogFileReader(org.apache.hadoop.fs.FileSystem fs,
HoodieLogFile logFile,
org.apache.avro.Schema readerSchema,
boolean readBlockLazily,
boolean reverseReader) |
HoodieLogFileReader(org.apache.hadoop.fs.FileSystem fs,
HoodieLogFile logFile,
org.apache.avro.Schema readerSchema,
int bufferSize,
boolean readBlockLazily,
boolean reverseReader) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
HoodieLogFile |
getLogFile() |
boolean |
hasNext() |
boolean |
hasPrev()
hasPrev is not idempotent.
|
long |
moveToPrev()
Reverse pointer, does not read the block.
|
HoodieLogBlock |
next() |
HoodieLogBlock |
prev()
This is a reverse iterator Note: At any point, an instance of HoodieLogFileReader should either iterate reverse
(prev) or forward (next).
|
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic static final int DEFAULT_BUFFER_SIZE
public HoodieLogFileReader(org.apache.hadoop.fs.FileSystem fs,
HoodieLogFile logFile,
org.apache.avro.Schema readerSchema,
int bufferSize,
boolean readBlockLazily,
boolean reverseReader)
throws IOException
IOExceptionpublic HoodieLogFileReader(org.apache.hadoop.fs.FileSystem fs,
HoodieLogFile logFile,
org.apache.avro.Schema readerSchema,
boolean readBlockLazily,
boolean reverseReader)
throws IOException
IOExceptionpublic HoodieLogFileReader(org.apache.hadoop.fs.FileSystem fs,
HoodieLogFile logFile,
org.apache.avro.Schema readerSchema)
throws IOException
IOExceptionpublic HoodieLogFile getLogFile()
getLogFile in interface HoodieLogFormat.ReaderHoodieLogFormatpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic boolean hasNext()
hasNext in interface Iterator<HoodieLogBlock>public HoodieLogBlock next()
next in interface Iterator<HoodieLogBlock>public boolean hasPrev()
hasPrev in interface HoodieLogFormat.Readerpublic HoodieLogBlock prev() throws IOException
prev in interface HoodieLogFormat.ReaderIOExceptionpublic long moveToPrev()
throws IOException
IOExceptionpublic void remove()
remove in interface Iterator<HoodieLogBlock>Copyright © 2021 The Apache Software Foundation. All rights reserved.