Class RestUtil

java.lang.Object
org.apache.hadoop.hbase.rest.RestUtil

@Private public final class RestUtil extends Object
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static 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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • 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 builder
      codedInput - encoded object data
      Throws:
      IOException