org.apache.hadoop.hbase.util
Class ByteStringer

java.lang.Object
  extended by org.apache.hadoop.hbase.util.ByteStringer

public class ByteStringer
extends Object

Hack to workaround HBASE-1304 issue that keeps bubbling up when a mapreduce context.


Method Summary
static com.google.protobuf.ByteString wrap(byte[] array)
          Wraps a byte array in a ByteString without copying it.
static com.google.protobuf.ByteString wrap(byte[] array, int offset, int length)
          Wraps a subset of a byte array in a ByteString without copying it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

wrap

public static com.google.protobuf.ByteString wrap(byte[] array)
Wraps a byte array in a ByteString without copying it.


wrap

public static com.google.protobuf.ByteString wrap(byte[] array,
                                                  int offset,
                                                  int length)
Wraps a subset of a byte array in a ByteString without copying it.



Copyright © 2015 The Apache Software Foundation. All Rights Reserved.