public class ProtoMessageReader<T extends com.google.protobuf.MessageLite> extends Object implements Closeable
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
org.apache.hadoop.fs.Path |
getFilePath() |
long |
getOffset() |
T |
readEvent() |
void |
setOffset(long offset) |
public org.apache.hadoop.fs.Path getFilePath()
public void setOffset(long offset)
throws IOException
IOExceptionpublic long getOffset()
throws IOException
IOExceptionpublic T readEvent() throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2019 The Apache Software Foundation. All Rights Reserved.