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
IOException
public void writeProto(T message) throws IOException
IOException
public void hflush() throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2019 The Apache Software Foundation. All rights reserved.