Package org.apache.accumulo.core.util
Class ByteBufferUtil
- java.lang.Object
-
- org.apache.accumulo.core.util.ByteBufferUtil
-
public class ByteBufferUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description ByteBufferUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ByteArrayInputStreamtoByteArrayInputStream(ByteBuffer buffer)static List<ByteBuffer>toByteBuffers(Collection<byte[]> bytesList)static ByteBuffertoByteBuffers(ByteSequence bs)static byte[]toBytes(ByteBuffer buffer)static List<byte[]>toBytesList(Collection<ByteBuffer> bytesList)static StringtoString(ByteBuffer bytes)static Set<String>toStringSet(Collection<ByteBuffer> bytesList)static TableIdtoTableId(ByteBuffer bytes)static org.apache.hadoop.io.TexttoText(ByteBuffer byteBuffer)static voidwrite(DataOutput out, ByteBuffer buffer)
-
-
-
Method Detail
-
toBytes
public static byte[] toBytes(ByteBuffer buffer)
-
toByteBuffers
public static List<ByteBuffer> toByteBuffers(Collection<byte[]> bytesList)
-
toBytesList
public static List<byte[]> toBytesList(Collection<ByteBuffer> bytesList)
-
toStringSet
public static Set<String> toStringSet(Collection<ByteBuffer> bytesList)
-
toText
public static org.apache.hadoop.io.Text toText(ByteBuffer byteBuffer)
-
toString
public static String toString(ByteBuffer bytes)
-
toTableId
public static TableId toTableId(ByteBuffer bytes)
-
toByteBuffers
public static ByteBuffer toByteBuffers(ByteSequence bs)
-
write
public static void write(DataOutput out, ByteBuffer buffer) throws IOException
- Throws:
IOException
-
toByteArrayInputStream
public static ByteArrayInputStream toByteArrayInputStream(ByteBuffer buffer)
-
-