Package org.apache.hadoop.hbase.rest
Interface ProtobufMessageHandler
- All Known Implementing Classes:
CellModel
,CellSetModel
,NamespacesInstanceModel
,NamespacesModel
,RowModel
,ScannerModel
,StorageClusterStatusModel
,TableInfoModel
,TableListModel
,TableSchemaModel
,VersionModel
Common interface for models capable of supporting protobuf marshalling and unmarshalling. Hooks
up to the ProtobufMessageBodyConsumer and ProtobufMessageBodyProducer adapters.
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
Returns the protobuf represention of the modelgetObjectFromMessage
(byte[] message) Initialize the model from a protobuf representation.
-
Method Details
-
createProtobufOutput
byte[] createProtobufOutput()Returns the protobuf represention of the model -
getObjectFromMessage
Initialize the model from a protobuf representation.- Parameters:
message
- the raw bytes of the protobuf message- Returns:
- reference to self for convenience
- Throws:
IOException
-