Package org.apache.hadoop.hbase.rest
Class RestUtil
java.lang.Object
org.apache.hadoop.hbase.rest.RestUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic RowModel
Speed-optimized method to convert an HBase result to a RowModel.static void
mergeFrom
(org.apache.hbase.thirdparty.com.google.protobuf.Message.Builder builder, org.apache.hbase.thirdparty.com.google.protobuf.CodedInputStream codedInput) Merges the object from codedInput, then calls checkLastTagWas.
-
Constructor Details
-
RestUtil
private RestUtil()
-
-
Method Details
-
createRowModelFromResult
Speed-optimized method to convert an HBase result to a RowModel. Avoids iterators and uses the non-cloning constructors to minimize overhead, especially when using protobuf marshalling.- Parameters:
r
- non-empty Result object
-
mergeFrom
public static void mergeFrom(org.apache.hbase.thirdparty.com.google.protobuf.Message.Builder builder, org.apache.hbase.thirdparty.com.google.protobuf.CodedInputStream codedInput) throws IOException Merges the object from codedInput, then calls checkLastTagWas. This is based on ProtobufUtil.mergeFrom, but we have already taken care of setSizeLimit() before calling, so only the checkLastTagWas() call is retained.- Parameters:
builder
- protobuf object buildercodedInput
- encoded object data- Throws:
IOException
-