org.apache.hadoop.hbase.rest
Interface ProtobufMessageHandler
- All Known Implementing Classes:
- CellModel, CellSetModel, RowModel, ScannerModel, StorageClusterStatusModel, TableInfoModel, TableListModel, TableSchemaModel, VersionModel
public interface ProtobufMessageHandler
Common interface for models capable of supporting protobuf marshalling
and unmarshalling. Hooks up to the ProtobufMessageBodyConsumer and
ProtobufMessageBodyProducer adapters.
createProtobufOutput
byte[] createProtobufOutput()
- Returns:
- the protobuf represention of the model
getObjectFromMessage
ProtobufMessageHandler getObjectFromMessage(byte[] message)
throws IOException
- Initialize the model from a protobuf representation.
- Parameters:
message
- the raw bytes of the protobuf message
- Returns:
- reference to self for convenience
- Throws:
IOException
Copyright © 2011 The Apache Software Foundation. All Rights Reserved.