HBaseZeroCopyByteString (Cloud Bigtable HBase Client for Java 0.9.7.1 API)

com.google.protobuf

Class HBaseZeroCopyByteString



  • public final class HBaseZeroCopyByteString
    extends Object
    Overrides the default HBaseZeroCopyByteString from the hbase implementation so that this class can work with protobuf 3.0.0.
    • Method Detail

      • wrap

        public static ByteString wrap(byte[] array)
        Wraps a byte array in a ByteString without copying it.
        Parameters:
        array - array to be wrapped
        Returns:
        wrapped array
      • wrap

        public static ByteString wrap(byte[] array,
                                      int offset,
                                      int length)
        Wraps a subset of a byte array in a ByteString without copying it.
        Parameters:
        array - array to be wrapped
        offset - from
        length - length
        Returns:
        wrapped array
      • zeroCopyGetBytes

        public static byte[] zeroCopyGetBytes(ByteString buf)
        Extracts the byte array from the given ByteString without copy.
        Parameters:
        buf - A buffer from which to extract the array.
        Returns:
        byte[] representation


Monitor your resources on the go

Get the Google Cloud Console app to help you manage your projects.

Send feedback about...

Cloud Bigtable Documentation