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