@InterfaceAudience.Private
public interface ProtobufMessageHandler
| Modifier and Type | Field and Description |
|---|---|
static int |
BUFFER_SIZE |
| Modifier and Type | Method and Description |
|---|---|
default byte[] |
createProtobufOutput()
Returns the protobuf represention of the model in a byte array.
|
default ProtobufMessageHandler |
getObjectFromMessage(byte[] message)
Initialize the model from a protobuf representation.
|
ProtobufMessageHandler |
getObjectFromMessage(org.apache.hbase.thirdparty.com.google.protobuf.CodedInputStream cis) |
default ProtobufMessageHandler |
getObjectFromMessage(InputStream is)
Initialize the model from a protobuf representation.
|
org.apache.hbase.thirdparty.com.google.protobuf.Message |
messageFromObject()
Convert to model to a protobuf Message object
|
default void |
writeProtobufOutput(OutputStream os)
Writes the protobuf represention of the model to os
|
static final int BUFFER_SIZE
default void writeProtobufOutput(OutputStream os) throws IOException
IOExceptiondefault byte[] createProtobufOutput()
writeProtobufOutput(OutputStream)
for better performanceorg.apache.hbase.thirdparty.com.google.protobuf.Message messageFromObject()
default ProtobufMessageHandler getObjectFromMessage(byte[] message) throws IOException
getObjectFromMessage(InputStream)
for better performancemessage - the raw bytes of the protobuf messageIOExceptiondefault ProtobufMessageHandler getObjectFromMessage(InputStream is) throws IOException
is - InputStream providing the protobuf messageIOExceptionProtobufMessageHandler getObjectFromMessage(org.apache.hbase.thirdparty.com.google.protobuf.CodedInputStream cis) throws IOException
IOExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.