You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hama.apache.org by ed...@apache.org on 2011/06/02 06:04:33 UTC
svn commit: r1130398 [26/30] - in
/incubator/hama/site/publish/docs/r0.2.0/api: ./ org/ org/apache/
org/apache/hama/ org/apache/hama/bsp/ org/apache/hama/bsp/class-use/
org/apache/hama/class-use/ org/apache/hama/ipc/
org/apache/hama/ipc/class-use/ org/...
Added: incubator/hama/site/publish/docs/r0.2.0/api/org/apache/hama/util/Bytes.html
URL: http://svn.apache.org/viewvc/incubator/hama/site/publish/docs/r0.2.0/api/org/apache/hama/util/Bytes.html?rev=1130398&view=auto
==============================================================================
--- incubator/hama/site/publish/docs/r0.2.0/api/org/apache/hama/util/Bytes.html (added)
+++ incubator/hama/site/publish/docs/r0.2.0/api/org/apache/hama/util/Bytes.html Thu Jun 2 04:04:29 2011
@@ -0,0 +1,2012 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!--NewPage-->
+<HTML>
+<HEAD>
+<!-- Generated by javadoc (build 1.6.0_21) on Thu Jun 02 11:38:31 KST 2011 -->
+<TITLE>
+Bytes (Hama 0.2.0 API)
+</TITLE>
+
+<META NAME="date" CONTENT="2011-06-02">
+
+<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
+
+<SCRIPT type="text/javascript">
+function windowTitle()
+{
+ if (location.href.indexOf('is-external=true') == -1) {
+ parent.document.title="Bytes (Hama 0.2.0 API)";
+ }
+}
+</SCRIPT>
+<NOSCRIPT>
+</NOSCRIPT>
+
+</HEAD>
+
+<BODY BGCOLOR="white" onload="windowTitle();">
+<HR>
+
+
+<!-- ========= START OF TOP NAVBAR ======= -->
+<A NAME="navbar_top"><!-- --></A>
+<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_top_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+ <TR ALIGN="center" VALIGN="top">
+ <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
+ <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
+ <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
+ <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Bytes.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
+ <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
+ <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
+ <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
+ <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
+ </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+ PREV CLASS
+ <A HREF="../../../../org/apache/hama/util/Bytes.ByteArrayComparator.html" title="class in org.apache.hama.util"><B>NEXT CLASS</B></A></FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+ <A HREF="../../../../index.html?org/apache/hama/util/Bytes.html" target="_top"><B>FRAMES</B></A>
+ <A HREF="Bytes.html" target="_top"><B>NO FRAMES</B></A>
+ <SCRIPT type="text/javascript">
+ <!--
+ if(window==top) {
+ document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
+ }
+ //-->
+</SCRIPT>
+<NOSCRIPT>
+ <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+
+</FONT></TD>
+</TR>
+<TR>
+<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
+ SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
+<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
+DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_top"></A>
+<!-- ========= END OF TOP NAVBAR ========= -->
+
+<HR>
+<!-- ======== START OF CLASS DATA ======== -->
+<H2>
+<FONT SIZE="-1">
+org.apache.hama.util</FONT>
+<BR>
+Class Bytes</H2>
+<PRE>
+<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A>
+ <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.hama.util.Bytes</B>
+</PRE>
+<HR>
+<DL>
+<DT><PRE>public class <B>Bytes</B><DT>extends <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></DL>
+</PRE>
+
+<P>
+Utility class that handles byte arrays, conversions to/from other types,
+ comparisons, hash code generation, manufacturing keys for HashMaps or
+ HashSets, etc.
+<P>
+
+<P>
+<HR>
+
+<P>
+<!-- ======== NESTED CLASS SUMMARY ======== -->
+
+<A NAME="nested_class_summary"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
+<B>Nested Class Summary</B></FONT></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static class</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.ByteArrayComparator.html" title="class in org.apache.hama.util">Bytes.ByteArrayComparator</A></B></CODE>
+
+<BR>
+ Byte array comparator class.</TD>
+</TR>
+</TABLE>
+ <!-- =========== FIELD SUMMARY =========== -->
+
+<A NAME="field_summary"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
+<B>Field Summary</B></FONT></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Comparator.html?is-external=true" title="class or interface in java.util">Comparator</A><byte[]></CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#BYTES_COMPARATOR">BYTES_COMPARATOR</A></B></CODE>
+
+<BR>
+ Pass this to TreeMaps where byte [] are keys.</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static org.apache.hadoop.io.RawComparator<byte[]></CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#BYTES_RAWCOMPARATOR">BYTES_RAWCOMPARATOR</A></B></CODE>
+
+<BR>
+ Use comparing byte arrays, byte-by-byte</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static int</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#ESTIMATED_HEAP_TAX">ESTIMATED_HEAP_TAX</A></B></CODE>
+
+<BR>
+ Estimate of size cost to pay beyond payload in jvm for instance of byte [].</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static int</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#SIZEOF_BOOLEAN">SIZEOF_BOOLEAN</A></B></CODE>
+
+<BR>
+ Size of boolean in bytes</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static int</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#SIZEOF_BYTE">SIZEOF_BYTE</A></B></CODE>
+
+<BR>
+ Size of byte in bytes</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static int</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#SIZEOF_CHAR">SIZEOF_CHAR</A></B></CODE>
+
+<BR>
+ Size of char in bytes</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static int</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#SIZEOF_DOUBLE">SIZEOF_DOUBLE</A></B></CODE>
+
+<BR>
+ Size of double in bytes</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static int</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#SIZEOF_FLOAT">SIZEOF_FLOAT</A></B></CODE>
+
+<BR>
+ Size of float in bytes</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static int</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#SIZEOF_INT">SIZEOF_INT</A></B></CODE>
+
+<BR>
+ Size of int in bytes</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static int</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#SIZEOF_LONG">SIZEOF_LONG</A></B></CODE>
+
+<BR>
+ Size of long in bytes</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static int</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#SIZEOF_SHORT">SIZEOF_SHORT</A></B></CODE>
+
+<BR>
+ Size of short in bytes</TD>
+</TR>
+</TABLE>
+
+<!-- ======== CONSTRUCTOR SUMMARY ======== -->
+
+<A NAME="constructor_summary"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
+<B>Constructor Summary</B></FONT></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#Bytes()">Bytes</A></B>()</CODE>
+
+<BR>
+ </TD>
+</TR>
+</TABLE>
+
+<!-- ========== METHOD SUMMARY =========== -->
+
+<A NAME="method_summary"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
+<B>Method Summary</B></FONT></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static byte[]</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#add(byte[], byte[])">add</A></B>(byte[] a,
+ byte[] b)</CODE>
+
+<BR>
+ </TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static byte[]</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#add(byte[], byte[], byte[])">add</A></B>(byte[] a,
+ byte[] b,
+ byte[] c)</CODE>
+
+<BR>
+ </TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static int</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#binarySearch(byte[][], byte[], int, int, org.apache.hadoop.io.RawComparator)">binarySearch</A></B>(byte[][] arr,
+ byte[] key,
+ int offset,
+ int length,
+ org.apache.hadoop.io.RawComparator<byte[]> comparator)</CODE>
+
+<BR>
+ Binary search for keys in indexes.</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static long</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#bytesToVint(byte[])">bytesToVint</A></B>(byte[] buffer)</CODE>
+
+<BR>
+ </TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static int</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#compareTo(byte[], byte[])">compareTo</A></B>(byte[] left,
+ byte[] right)</CODE>
+
+<BR>
+ </TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static int</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#compareTo(byte[], int, int, byte[], int, int)">compareTo</A></B>(byte[] b1,
+ int s1,
+ int l1,
+ byte[] b2,
+ int s2,
+ int l2)</CODE>
+
+<BR>
+ Lexographically compare two arrays.</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static boolean</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#equals(byte[], byte[])">equals</A></B>(byte[] left,
+ byte[] right)</CODE>
+
+<BR>
+ </TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static int</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#hashCode(byte[])">hashCode</A></B>(byte[] b)</CODE>
+
+<BR>
+ </TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static int</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#hashCode(byte[], int)">hashCode</A></B>(byte[] b,
+ int length)</CODE>
+
+<BR>
+ </TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static byte[]</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#head(byte[], int)">head</A></B>(byte[] a,
+ int length)</CODE>
+
+<BR>
+ </TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static byte[]</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#incrementBytes(byte[], long)">incrementBytes</A></B>(byte[] value,
+ long amount)</CODE>
+
+<BR>
+ Bytewise binary increment/deincrement of long contained in byte array on
+ given amount.</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</A></CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#mapKey(byte[])">mapKey</A></B>(byte[] b)</CODE>
+
+<BR>
+ </TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</A></CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#mapKey(byte[], int)">mapKey</A></B>(byte[] b,
+ int length)</CODE>
+
+<BR>
+ </TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static byte[]</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#padHead(byte[], int)">padHead</A></B>(byte[] a,
+ int length)</CODE>
+
+<BR>
+ </TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static byte[]</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#padTail(byte[], int)">padTail</A></B>(byte[] a,
+ int length)</CODE>
+
+<BR>
+ </TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static int</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#putByte(byte[], int, byte)">putByte</A></B>(byte[] bytes,
+ int offset,
+ byte b)</CODE>
+
+<BR>
+ Write a single byte out to the specified byte array position.</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static int</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#putBytes(byte[], int, byte[], int, int)">putBytes</A></B>(byte[] tgtBytes,
+ int tgtOffset,
+ byte[] srcBytes,
+ int srcOffset,
+ int srcLength)</CODE>
+
+<BR>
+ Put bytes at the specified byte array position.</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static int</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#putDouble(byte[], int, double)">putDouble</A></B>(byte[] bytes,
+ int offset,
+ double d)</CODE>
+
+<BR>
+ </TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static int</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#putFloat(byte[], int, float)">putFloat</A></B>(byte[] bytes,
+ int offset,
+ float f)</CODE>
+
+<BR>
+ </TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static int</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#putInt(byte[], int, int)">putInt</A></B>(byte[] bytes,
+ int offset,
+ int val)</CODE>
+
+<BR>
+ Put an int value out to the specified byte array position.</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static int</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#putLong(byte[], int, long)">putLong</A></B>(byte[] bytes,
+ int offset,
+ long val)</CODE>
+
+<BR>
+ Put a long value out to the specified byte array position.</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static int</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#putShort(byte[], int, short)">putShort</A></B>(byte[] bytes,
+ int offset,
+ short val)</CODE>
+
+<BR>
+ Put a short value out to the specified byte array position.</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static byte[]</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#readByteArray(java.io.DataInput)">readByteArray</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/DataInput.html?is-external=true" title="class or interface in java.io">DataInput</A> in)</CODE>
+
+<BR>
+ Read byte-array written with a WritableableUtils.vint prefix.</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static byte[]</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#readByteArrayThrowsRuntime(java.io.DataInput)">readByteArrayThrowsRuntime</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/DataInput.html?is-external=true" title="class or interface in java.io">DataInput</A> in)</CODE>
+
+<BR>
+ Read byte-array written with a WritableableUtils.vint prefix.</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static long</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#readVLong(byte[], int)">readVLong</A></B>(byte[] buffer,
+ int offset)</CODE>
+
+<BR>
+ Reads a zero-compressed encoded long from input stream and returns it.</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static byte[][]</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#split(byte[], byte[], int)">split</A></B>(byte[] a,
+ byte[] b,
+ int num)</CODE>
+
+<BR>
+ Split passed range.</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static byte[]</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#tail(byte[], int)">tail</A></B>(byte[] a,
+ int length)</CODE>
+
+<BR>
+ </TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static byte</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#toBinaryFromHex(byte)">toBinaryFromHex</A></B>(byte ch)</CODE>
+
+<BR>
+ Takes a ASCII digit in the range A-F0-9 and returns the corresponding
+ integer/ordinal value.</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static boolean</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#toBoolean(byte[])">toBoolean</A></B>(byte[] b)</CODE>
+
+<BR>
+ Reverses <A HREF="../../../../org/apache/hama/util/Bytes.html#toBytes(boolean)"><CODE>toBytes(boolean)</CODE></A></TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static byte[][]</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#toByteArrays(byte[])">toByteArrays</A></B>(byte[] column)</CODE>
+
+<BR>
+ </TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static byte[][]</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#toByteArrays(java.lang.String)">toByteArrays</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> column)</CODE>
+
+<BR>
+ </TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static byte[][]</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#toByteArrays(java.lang.String[])">toByteArrays</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[] t)</CODE>
+
+<BR>
+ </TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static byte[]</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#toBytes(boolean)">toBytes</A></B>(boolean b)</CODE>
+
+<BR>
+ Convert a boolean to a byte array.</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static byte[]</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#toBytes(java.nio.ByteBuffer)">toBytes</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</A> bb)</CODE>
+
+<BR>
+ Returns a new byte array, copied from the passed ByteBuffer.</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static byte[]</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#toBytes(double)">toBytes</A></B>(double d)</CODE>
+
+<BR>
+ Serialize a double as the IEEE 754 double format output.</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static byte[]</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#toBytes(float)">toBytes</A></B>(float f)</CODE>
+
+<BR>
+ </TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static byte[]</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#toBytes(int)">toBytes</A></B>(int val)</CODE>
+
+<BR>
+ Convert an int value to a byte array</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static byte[]</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#toBytes(long)">toBytes</A></B>(long val)</CODE>
+
+<BR>
+ Convert a long value to a byte array using big-endian.</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static byte[]</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#toBytes(short)">toBytes</A></B>(short val)</CODE>
+
+<BR>
+ Convert a short value to a byte array of <A HREF="../../../../org/apache/hama/util/Bytes.html#SIZEOF_SHORT"><CODE>SIZEOF_SHORT</CODE></A> bytes long.</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static byte[]</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#toBytes(java.lang.String)">toBytes</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> s)</CODE>
+
+<BR>
+ Converts a string to a UTF-8 byte array.</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static byte[]</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#toBytesBinary(java.lang.String)">toBytesBinary</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> in)</CODE>
+
+<BR>
+ </TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static double</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#toDouble(byte[])">toDouble</A></B>(byte[] bytes)</CODE>
+
+<BR>
+ </TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static double</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#toDouble(byte[], int)">toDouble</A></B>(byte[] bytes,
+ int offset)</CODE>
+
+<BR>
+ </TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static float</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#toFloat(byte[])">toFloat</A></B>(byte[] bytes)</CODE>
+
+<BR>
+ Presumes float encoded as IEEE 754 floating-point "single format"</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static float</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#toFloat(byte[], int)">toFloat</A></B>(byte[] bytes,
+ int offset)</CODE>
+
+<BR>
+ Presumes float encoded as IEEE 754 floating-point "single format"</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static int</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#toInt(byte[])">toInt</A></B>(byte[] bytes)</CODE>
+
+<BR>
+ Converts a byte array to an int value</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static int</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#toInt(byte[], int)">toInt</A></B>(byte[] bytes,
+ int offset)</CODE>
+
+<BR>
+ Converts a byte array to an int value</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static int</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#toInt(byte[], int, int)">toInt</A></B>(byte[] bytes,
+ int offset,
+ int length)</CODE>
+
+<BR>
+ Converts a byte array to an int value</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static long</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#toLong(byte[])">toLong</A></B>(byte[] bytes)</CODE>
+
+<BR>
+ Converts a byte array to a long value.</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static long</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#toLong(byte[], int)">toLong</A></B>(byte[] bytes,
+ int offset)</CODE>
+
+<BR>
+ Converts a byte array to a long value.</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static long</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#toLong(byte[], int, int)">toLong</A></B>(byte[] bytes,
+ int offset,
+ int length)</CODE>
+
+<BR>
+ Converts a byte array to a long value.</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static short</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#toShort(byte[])">toShort</A></B>(byte[] bytes)</CODE>
+
+<BR>
+ Converts a byte array to a short value</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static short</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#toShort(byte[], int)">toShort</A></B>(byte[] bytes,
+ int offset)</CODE>
+
+<BR>
+ Converts a byte array to a short value</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static short</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#toShort(byte[], int, int)">toShort</A></B>(byte[] bytes,
+ int offset,
+ int length)</CODE>
+
+<BR>
+ Converts a byte array to a short value</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#toString(byte[])">toString</A></B>(byte[] b)</CODE>
+
+<BR>
+ </TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#toString(byte[], int, int)">toString</A></B>(byte[] b,
+ int off,
+ int len)</CODE>
+
+<BR>
+ This method will convert utf8 encoded bytes into a string.</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#toString(byte[], java.lang.String, byte[])">toString</A></B>(byte[] b1,
+ <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> sep,
+ byte[] b2)</CODE>
+
+<BR>
+ Joins two byte arrays together using a separator.</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#toStringBinary(byte[])">toStringBinary</A></B>(byte[] b)</CODE>
+
+<BR>
+ Write a printable representation of a byte array.</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#toStringBinary(byte[], int, int)">toStringBinary</A></B>(byte[] b,
+ int off,
+ int len)</CODE>
+
+<BR>
+ Write a printable representation of a byte array.</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static byte[]</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#vintToBytes(long)">vintToBytes</A></B>(long vint)</CODE>
+
+<BR>
+ </TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static int</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#writeByteArray(byte[], int, byte[], int, int)">writeByteArray</A></B>(byte[] tgt,
+ int tgtOffset,
+ byte[] src,
+ int srcOffset,
+ int srcLength)</CODE>
+
+<BR>
+ Write byte-array from src to tgt with a vint length prefix.</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static void</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#writeByteArray(java.io.DataOutput, byte[])">writeByteArray</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/DataOutput.html?is-external=true" title="class or interface in java.io">DataOutput</A> out,
+ byte[] b)</CODE>
+
+<BR>
+ Write byte-array with a WritableableUtils.vint prefix.</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static void</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../org/apache/hama/util/Bytes.html#writeByteArray(java.io.DataOutput, byte[], int, int)">writeByteArray</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/DataOutput.html?is-external=true" title="class or interface in java.io">DataOutput</A> out,
+ byte[] b,
+ int offset,
+ int length)</CODE>
+
+<BR>
+ Write byte-array to out with a vint length prefix.</TD>
+</TR>
+</TABLE>
+ <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
+<TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://downloa
d.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
+</TR>
+</TABLE>
+
+<P>
+
+<!-- ============ FIELD DETAIL =========== -->
+
+<A NAME="field_detail"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
+<B>Field Detail</B></FONT></TH>
+</TR>
+</TABLE>
+
+<A NAME="SIZEOF_BOOLEAN"><!-- --></A><H3>
+SIZEOF_BOOLEAN</H3>
+<PRE>
+public static final int <B>SIZEOF_BOOLEAN</B></PRE>
+<DL>
+<DD>Size of boolean in bytes
+<P>
+<DL>
+<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.hama.util.Bytes.SIZEOF_BOOLEAN">Constant Field Values</A></DL>
+</DL>
+<HR>
+
+<A NAME="SIZEOF_BYTE"><!-- --></A><H3>
+SIZEOF_BYTE</H3>
+<PRE>
+public static final int <B>SIZEOF_BYTE</B></PRE>
+<DL>
+<DD>Size of byte in bytes
+<P>
+<DL>
+<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.hama.util.Bytes.SIZEOF_BYTE">Constant Field Values</A></DL>
+</DL>
+<HR>
+
+<A NAME="SIZEOF_CHAR"><!-- --></A><H3>
+SIZEOF_CHAR</H3>
+<PRE>
+public static final int <B>SIZEOF_CHAR</B></PRE>
+<DL>
+<DD>Size of char in bytes
+<P>
+<DL>
+<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.hama.util.Bytes.SIZEOF_CHAR">Constant Field Values</A></DL>
+</DL>
+<HR>
+
+<A NAME="SIZEOF_DOUBLE"><!-- --></A><H3>
+SIZEOF_DOUBLE</H3>
+<PRE>
+public static final int <B>SIZEOF_DOUBLE</B></PRE>
+<DL>
+<DD>Size of double in bytes
+<P>
+<DL>
+<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.hama.util.Bytes.SIZEOF_DOUBLE">Constant Field Values</A></DL>
+</DL>
+<HR>
+
+<A NAME="SIZEOF_FLOAT"><!-- --></A><H3>
+SIZEOF_FLOAT</H3>
+<PRE>
+public static final int <B>SIZEOF_FLOAT</B></PRE>
+<DL>
+<DD>Size of float in bytes
+<P>
+<DL>
+<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.hama.util.Bytes.SIZEOF_FLOAT">Constant Field Values</A></DL>
+</DL>
+<HR>
+
+<A NAME="SIZEOF_INT"><!-- --></A><H3>
+SIZEOF_INT</H3>
+<PRE>
+public static final int <B>SIZEOF_INT</B></PRE>
+<DL>
+<DD>Size of int in bytes
+<P>
+<DL>
+<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.hama.util.Bytes.SIZEOF_INT">Constant Field Values</A></DL>
+</DL>
+<HR>
+
+<A NAME="SIZEOF_LONG"><!-- --></A><H3>
+SIZEOF_LONG</H3>
+<PRE>
+public static final int <B>SIZEOF_LONG</B></PRE>
+<DL>
+<DD>Size of long in bytes
+<P>
+<DL>
+<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.hama.util.Bytes.SIZEOF_LONG">Constant Field Values</A></DL>
+</DL>
+<HR>
+
+<A NAME="SIZEOF_SHORT"><!-- --></A><H3>
+SIZEOF_SHORT</H3>
+<PRE>
+public static final int <B>SIZEOF_SHORT</B></PRE>
+<DL>
+<DD>Size of short in bytes
+<P>
+<DL>
+<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.hama.util.Bytes.SIZEOF_SHORT">Constant Field Values</A></DL>
+</DL>
+<HR>
+
+<A NAME="ESTIMATED_HEAP_TAX"><!-- --></A><H3>
+ESTIMATED_HEAP_TAX</H3>
+<PRE>
+public static final int <B>ESTIMATED_HEAP_TAX</B></PRE>
+<DL>
+<DD>Estimate of size cost to pay beyond payload in jvm for instance of byte [].
+ Estimate based on study of jhat and jprofiler numbers.
+<P>
+<DL>
+<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.hama.util.Bytes.ESTIMATED_HEAP_TAX">Constant Field Values</A></DL>
+</DL>
+<HR>
+
+<A NAME="BYTES_COMPARATOR"><!-- --></A><H3>
+BYTES_COMPARATOR</H3>
+<PRE>
+public static <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Comparator.html?is-external=true" title="class or interface in java.util">Comparator</A><byte[]> <B>BYTES_COMPARATOR</B></PRE>
+<DL>
+<DD>Pass this to TreeMaps where byte [] are keys.
+<P>
+<DL>
+</DL>
+</DL>
+<HR>
+
+<A NAME="BYTES_RAWCOMPARATOR"><!-- --></A><H3>
+BYTES_RAWCOMPARATOR</H3>
+<PRE>
+public static org.apache.hadoop.io.RawComparator<byte[]> <B>BYTES_RAWCOMPARATOR</B></PRE>
+<DL>
+<DD>Use comparing byte arrays, byte-by-byte
+<P>
+<DL>
+</DL>
+</DL>
+
+<!-- ========= CONSTRUCTOR DETAIL ======== -->
+
+<A NAME="constructor_detail"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
+<B>Constructor Detail</B></FONT></TH>
+</TR>
+</TABLE>
+
+<A NAME="Bytes()"><!-- --></A><H3>
+Bytes</H3>
+<PRE>
+public <B>Bytes</B>()</PRE>
+<DL>
+</DL>
+
+<!-- ============ METHOD DETAIL ========== -->
+
+<A NAME="method_detail"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
+<B>Method Detail</B></FONT></TH>
+</TR>
+</TABLE>
+
+<A NAME="readByteArray(java.io.DataInput)"><!-- --></A><H3>
+readByteArray</H3>
+<PRE>
+public static byte[] <B>readByteArray</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/DataInput.html?is-external=true" title="class or interface in java.io">DataInput</A> in)
+ throws <A HREF="http://download.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE>
+<DL>
+<DD>Read byte-array written with a WritableableUtils.vint prefix.
+<P>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>in</CODE> - Input to read from.
+<DT><B>Returns:</B><DD>byte array read off <code>in</code>
+<DT><B>Throws:</B>
+<DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE> - e</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="readByteArrayThrowsRuntime(java.io.DataInput)"><!-- --></A><H3>
+readByteArrayThrowsRuntime</H3>
+<PRE>
+public static byte[] <B>readByteArrayThrowsRuntime</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/DataInput.html?is-external=true" title="class or interface in java.io">DataInput</A> in)</PRE>
+<DL>
+<DD>Read byte-array written with a WritableableUtils.vint prefix. IOException
+ is converted to a RuntimeException.
+<P>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>in</CODE> - Input to read from.
+<DT><B>Returns:</B><DD>byte array read off <code>in</code></DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="writeByteArray(java.io.DataOutput, byte[])"><!-- --></A><H3>
+writeByteArray</H3>
+<PRE>
+public static void <B>writeByteArray</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/DataOutput.html?is-external=true" title="class or interface in java.io">DataOutput</A> out,
+ byte[] b)
+ throws <A HREF="http://download.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE>
+<DL>
+<DD>Write byte-array with a WritableableUtils.vint prefix.
+<P>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>out</CODE> - output stream to be written to<DD><CODE>b</CODE> - array to write
+<DT><B>Throws:</B>
+<DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE> - e</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="writeByteArray(java.io.DataOutput, byte[], int, int)"><!-- --></A><H3>
+writeByteArray</H3>
+<PRE>
+public static void <B>writeByteArray</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/DataOutput.html?is-external=true" title="class or interface in java.io">DataOutput</A> out,
+ byte[] b,
+ int offset,
+ int length)
+ throws <A HREF="http://download.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE>
+<DL>
+<DD>Write byte-array to out with a vint length prefix.
+<P>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>out</CODE> - output stream<DD><CODE>b</CODE> - array<DD><CODE>offset</CODE> - offset into array<DD><CODE>length</CODE> - length past offset
+<DT><B>Throws:</B>
+<DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE> - e</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="writeByteArray(byte[], int, byte[], int, int)"><!-- --></A><H3>
+writeByteArray</H3>
+<PRE>
+public static int <B>writeByteArray</B>(byte[] tgt,
+ int tgtOffset,
+ byte[] src,
+ int srcOffset,
+ int srcLength)</PRE>
+<DL>
+<DD>Write byte-array from src to tgt with a vint length prefix.
+<P>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>tgt</CODE> - target array<DD><CODE>tgtOffset</CODE> - offset into target array<DD><CODE>src</CODE> - source array<DD><CODE>srcOffset</CODE> - source offset<DD><CODE>srcLength</CODE> - source length
+<DT><B>Returns:</B><DD>New offset in src array.</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="putBytes(byte[], int, byte[], int, int)"><!-- --></A><H3>
+putBytes</H3>
+<PRE>
+public static int <B>putBytes</B>(byte[] tgtBytes,
+ int tgtOffset,
+ byte[] srcBytes,
+ int srcOffset,
+ int srcLength)</PRE>
+<DL>
+<DD>Put bytes at the specified byte array position.
+<P>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>tgtBytes</CODE> - the byte array<DD><CODE>tgtOffset</CODE> - position in the array<DD><CODE>srcBytes</CODE> - array to write out<DD><CODE>srcOffset</CODE> - source offset<DD><CODE>srcLength</CODE> - source length
+<DT><B>Returns:</B><DD>incremented offset</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="putByte(byte[], int, byte)"><!-- --></A><H3>
+putByte</H3>
+<PRE>
+public static int <B>putByte</B>(byte[] bytes,
+ int offset,
+ byte b)</PRE>
+<DL>
+<DD>Write a single byte out to the specified byte array position.
+<P>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>bytes</CODE> - the byte array<DD><CODE>offset</CODE> - position in the array<DD><CODE>b</CODE> - byte to write out
+<DT><B>Returns:</B><DD>incremented offset</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="toBytes(java.nio.ByteBuffer)"><!-- --></A><H3>
+toBytes</H3>
+<PRE>
+public static byte[] <B>toBytes</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</A> bb)</PRE>
+<DL>
+<DD>Returns a new byte array, copied from the passed ByteBuffer.
+<P>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>bb</CODE> - A ByteBuffer
+<DT><B>Returns:</B><DD>the byte array</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="toString(byte[])"><!-- --></A><H3>
+toString</H3>
+<PRE>
+public static <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>toString</B>(byte[] b)</PRE>
+<DL>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>b</CODE> - Presumed UTF-8 encoded byte array.
+<DT><B>Returns:</B><DD>String made from <code>b</code></DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="toString(byte[], java.lang.String, byte[])"><!-- --></A><H3>
+toString</H3>
+<PRE>
+public static <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>toString</B>(byte[] b1,
+ <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> sep,
+ byte[] b2)</PRE>
+<DL>
+<DD>Joins two byte arrays together using a separator.
+<P>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>b1</CODE> - The first byte array.<DD><CODE>sep</CODE> - The separator to use.<DD><CODE>b2</CODE> - The second byte array.</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="toString(byte[], int, int)"><!-- --></A><H3>
+toString</H3>
+<PRE>
+public static <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>toString</B>(byte[] b,
+ int off,
+ int len)</PRE>
+<DL>
+<DD>This method will convert utf8 encoded bytes into a string. If an
+ UnsupportedEncodingException occurs, this method will eat it and return
+ null instead.
+<P>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>b</CODE> - Presumed UTF-8 encoded byte array.<DD><CODE>off</CODE> - offset into array<DD><CODE>len</CODE> - length of utf-8 sequence
+<DT><B>Returns:</B><DD>String made from <code>b</code> or null</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="toStringBinary(byte[])"><!-- --></A><H3>
+toStringBinary</H3>
+<PRE>
+public static <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>toStringBinary</B>(byte[] b)</PRE>
+<DL>
+<DD>Write a printable representation of a byte array.
+<P>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>b</CODE> - byte array
+<DT><B>Returns:</B><DD>string<DT><B>See Also:</B><DD><A HREF="../../../../org/apache/hama/util/Bytes.html#toStringBinary(byte[], int, int)"><CODE>toStringBinary(byte[], int, int)</CODE></A></DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="toStringBinary(byte[], int, int)"><!-- --></A><H3>
+toStringBinary</H3>
+<PRE>
+public static <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>toStringBinary</B>(byte[] b,
+ int off,
+ int len)</PRE>
+<DL>
+<DD>Write a printable representation of a byte array. Non-printable characters
+ are hex escaped in the format \\x%02X, eg: \x00 \x05 etc
+<P>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>b</CODE> - array to write out<DD><CODE>off</CODE> - offset to start at<DD><CODE>len</CODE> - length to write
+<DT><B>Returns:</B><DD>string output</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="toBinaryFromHex(byte)"><!-- --></A><H3>
+toBinaryFromHex</H3>
+<PRE>
+public static byte <B>toBinaryFromHex</B>(byte ch)</PRE>
+<DL>
+<DD>Takes a ASCII digit in the range A-F0-9 and returns the corresponding
+ integer/ordinal value.
+<P>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>ch</CODE> - The hex digit.
+<DT><B>Returns:</B><DD>The converted hex value as a byte.</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="toBytesBinary(java.lang.String)"><!-- --></A><H3>
+toBytesBinary</H3>
+<PRE>
+public static byte[] <B>toBytesBinary</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> in)</PRE>
+<DL>
+<DD><DL>
+</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="toBytes(java.lang.String)"><!-- --></A><H3>
+toBytes</H3>
+<PRE>
+public static byte[] <B>toBytes</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> s)</PRE>
+<DL>
+<DD>Converts a string to a UTF-8 byte array.
+<P>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>s</CODE> - string
+<DT><B>Returns:</B><DD>the byte array</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="toBytes(boolean)"><!-- --></A><H3>
+toBytes</H3>
+<PRE>
+public static byte[] <B>toBytes</B>(boolean b)</PRE>
+<DL>
+<DD>Convert a boolean to a byte array. True becomes -1 and false becomes 0.
+<P>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>b</CODE> - value
+<DT><B>Returns:</B><DD><code>b</code> encoded in a byte array.</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="toBoolean(byte[])"><!-- --></A><H3>
+toBoolean</H3>
+<PRE>
+public static boolean <B>toBoolean</B>(byte[] b)</PRE>
+<DL>
+<DD>Reverses <A HREF="../../../../org/apache/hama/util/Bytes.html#toBytes(boolean)"><CODE>toBytes(boolean)</CODE></A>
+<P>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>b</CODE> - array
+<DT><B>Returns:</B><DD>True or false.</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="toBytes(long)"><!-- --></A><H3>
+toBytes</H3>
+<PRE>
+public static byte[] <B>toBytes</B>(long val)</PRE>
+<DL>
+<DD>Convert a long value to a byte array using big-endian.
+<P>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>val</CODE> - value to convert
+<DT><B>Returns:</B><DD>the byte array</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="toLong(byte[])"><!-- --></A><H3>
+toLong</H3>
+<PRE>
+public static long <B>toLong</B>(byte[] bytes)</PRE>
+<DL>
+<DD>Converts a byte array to a long value. Reverses <A HREF="../../../../org/apache/hama/util/Bytes.html#toBytes(long)"><CODE>toBytes(long)</CODE></A>
+<P>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>bytes</CODE> - array
+<DT><B>Returns:</B><DD>the long value</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="toLong(byte[], int)"><!-- --></A><H3>
+toLong</H3>
+<PRE>
+public static long <B>toLong</B>(byte[] bytes,
+ int offset)</PRE>
+<DL>
+<DD>Converts a byte array to a long value. Assumes there will be
+ <A HREF="../../../../org/apache/hama/util/Bytes.html#SIZEOF_LONG"><CODE>SIZEOF_LONG</CODE></A> bytes available.
+<P>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>bytes</CODE> - bytes<DD><CODE>offset</CODE> - offset
+<DT><B>Returns:</B><DD>the long value</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="toLong(byte[], int, int)"><!-- --></A><H3>
+toLong</H3>
+<PRE>
+public static long <B>toLong</B>(byte[] bytes,
+ int offset,
+ int length)</PRE>
+<DL>
+<DD>Converts a byte array to a long value.
+<P>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>bytes</CODE> - array of bytes<DD><CODE>offset</CODE> - offset into array<DD><CODE>length</CODE> - length of data (must be <A HREF="../../../../org/apache/hama/util/Bytes.html#SIZEOF_LONG"><CODE>SIZEOF_LONG</CODE></A>)
+<DT><B>Returns:</B><DD>the long value
+<DT><B>Throws:</B>
+<DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if length is not <A HREF="../../../../org/apache/hama/util/Bytes.html#SIZEOF_LONG"><CODE>SIZEOF_LONG</CODE></A> or
+ if there's not enough room in the array at the offset indicated.</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="putLong(byte[], int, long)"><!-- --></A><H3>
+putLong</H3>
+<PRE>
+public static int <B>putLong</B>(byte[] bytes,
+ int offset,
+ long val)</PRE>
+<DL>
+<DD>Put a long value out to the specified byte array position.
+<P>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>bytes</CODE> - the byte array<DD><CODE>offset</CODE> - position in the array<DD><CODE>val</CODE> - long to write out
+<DT><B>Returns:</B><DD>incremented offset
+<DT><B>Throws:</B>
+<DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if the byte array given doesn't have
+ enough room at the offset specified.</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="toFloat(byte[])"><!-- --></A><H3>
+toFloat</H3>
+<PRE>
+public static float <B>toFloat</B>(byte[] bytes)</PRE>
+<DL>
+<DD>Presumes float encoded as IEEE 754 floating-point "single format"
+<P>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>bytes</CODE> - byte array
+<DT><B>Returns:</B><DD>Float made from passed byte array.</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="toFloat(byte[], int)"><!-- --></A><H3>
+toFloat</H3>
+<PRE>
+public static float <B>toFloat</B>(byte[] bytes,
+ int offset)</PRE>
+<DL>
+<DD>Presumes float encoded as IEEE 754 floating-point "single format"
+<P>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>bytes</CODE> - array to convert<DD><CODE>offset</CODE> - offset into array
+<DT><B>Returns:</B><DD>Float made from passed byte array.</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="putFloat(byte[], int, float)"><!-- --></A><H3>
+putFloat</H3>
+<PRE>
+public static int <B>putFloat</B>(byte[] bytes,
+ int offset,
+ float f)</PRE>
+<DL>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>bytes</CODE> - byte array<DD><CODE>offset</CODE> - offset to write to<DD><CODE>f</CODE> - float value
+<DT><B>Returns:</B><DD>New offset in <code>bytes</code></DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="toBytes(float)"><!-- --></A><H3>
+toBytes</H3>
+<PRE>
+public static byte[] <B>toBytes</B>(float f)</PRE>
+<DL>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>f</CODE> - float value
+<DT><B>Returns:</B><DD>the float represented as byte []</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="toDouble(byte[])"><!-- --></A><H3>
+toDouble</H3>
+<PRE>
+public static double <B>toDouble</B>(byte[] bytes)</PRE>
+<DL>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>bytes</CODE> - byte array
+<DT><B>Returns:</B><DD>Return double made from passed bytes.</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="toDouble(byte[], int)"><!-- --></A><H3>
+toDouble</H3>
+<PRE>
+public static double <B>toDouble</B>(byte[] bytes,
+ int offset)</PRE>
+<DL>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>bytes</CODE> - byte array<DD><CODE>offset</CODE> - offset where double is
+<DT><B>Returns:</B><DD>Return double made from passed bytes.</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="putDouble(byte[], int, double)"><!-- --></A><H3>
+putDouble</H3>
+<PRE>
+public static int <B>putDouble</B>(byte[] bytes,
+ int offset,
+ double d)</PRE>
+<DL>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>bytes</CODE> - byte array<DD><CODE>offset</CODE> - offset to write to<DD><CODE>d</CODE> - value
+<DT><B>Returns:</B><DD>New offset into array <code>bytes</code></DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="toBytes(double)"><!-- --></A><H3>
+toBytes</H3>
+<PRE>
+public static byte[] <B>toBytes</B>(double d)</PRE>
+<DL>
+<DD>Serialize a double as the IEEE 754 double format output. The resultant
+ array will be 8 bytes long.
+<P>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>d</CODE> - value
+<DT><B>Returns:</B><DD>the double represented as byte []</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="toBytes(int)"><!-- --></A><H3>
+toBytes</H3>
+<PRE>
+public static byte[] <B>toBytes</B>(int val)</PRE>
+<DL>
+<DD>Convert an int value to a byte array
+<P>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>val</CODE> - value
+<DT><B>Returns:</B><DD>the byte array</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="toInt(byte[])"><!-- --></A><H3>
+toInt</H3>
+<PRE>
+public static int <B>toInt</B>(byte[] bytes)</PRE>
+<DL>
+<DD>Converts a byte array to an int value
+<P>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>bytes</CODE> - byte array
+<DT><B>Returns:</B><DD>the int value</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="toInt(byte[], int)"><!-- --></A><H3>
+toInt</H3>
+<PRE>
+public static int <B>toInt</B>(byte[] bytes,
+ int offset)</PRE>
+<DL>
+<DD>Converts a byte array to an int value
+<P>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>bytes</CODE> - byte array<DD><CODE>offset</CODE> - offset into array
+<DT><B>Returns:</B><DD>the int value</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="toInt(byte[], int, int)"><!-- --></A><H3>
+toInt</H3>
+<PRE>
+public static int <B>toInt</B>(byte[] bytes,
+ int offset,
+ int length)</PRE>
+<DL>
+<DD>Converts a byte array to an int value
+<P>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>bytes</CODE> - byte array<DD><CODE>offset</CODE> - offset into array<DD><CODE>length</CODE> - length of int (has to be <A HREF="../../../../org/apache/hama/util/Bytes.html#SIZEOF_INT"><CODE>SIZEOF_INT</CODE></A>)
+<DT><B>Returns:</B><DD>the int value
+<DT><B>Throws:</B>
+<DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if length is not <A HREF="../../../../org/apache/hama/util/Bytes.html#SIZEOF_INT"><CODE>SIZEOF_INT</CODE></A> or if
+ there's not enough room in the array at the offset indicated.</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="putInt(byte[], int, int)"><!-- --></A><H3>
+putInt</H3>
+<PRE>
+public static int <B>putInt</B>(byte[] bytes,
+ int offset,
+ int val)</PRE>
+<DL>
+<DD>Put an int value out to the specified byte array position.
+<P>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>bytes</CODE> - the byte array<DD><CODE>offset</CODE> - position in the array<DD><CODE>val</CODE> - int to write out
+<DT><B>Returns:</B><DD>incremented offset
+<DT><B>Throws:</B>
+<DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if the byte array given doesn't have
+ enough room at the offset specified.</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="toBytes(short)"><!-- --></A><H3>
+toBytes</H3>
+<PRE>
+public static byte[] <B>toBytes</B>(short val)</PRE>
+<DL>
+<DD>Convert a short value to a byte array of <A HREF="../../../../org/apache/hama/util/Bytes.html#SIZEOF_SHORT"><CODE>SIZEOF_SHORT</CODE></A> bytes long.
+<P>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>val</CODE> - value
+<DT><B>Returns:</B><DD>the byte array</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="toShort(byte[])"><!-- --></A><H3>
+toShort</H3>
+<PRE>
+public static short <B>toShort</B>(byte[] bytes)</PRE>
+<DL>
+<DD>Converts a byte array to a short value
+<P>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>bytes</CODE> - byte array
+<DT><B>Returns:</B><DD>the short value</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="toShort(byte[], int)"><!-- --></A><H3>
+toShort</H3>
+<PRE>
+public static short <B>toShort</B>(byte[] bytes,
+ int offset)</PRE>
+<DL>
+<DD>Converts a byte array to a short value
+<P>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>bytes</CODE> - byte array<DD><CODE>offset</CODE> - offset into array
+<DT><B>Returns:</B><DD>the short value</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="toShort(byte[], int, int)"><!-- --></A><H3>
+toShort</H3>
+<PRE>
+public static short <B>toShort</B>(byte[] bytes,
+ int offset,
+ int length)</PRE>
+<DL>
+<DD>Converts a byte array to a short value
+<P>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>bytes</CODE> - byte array<DD><CODE>offset</CODE> - offset into array<DD><CODE>length</CODE> - length, has to be <A HREF="../../../../org/apache/hama/util/Bytes.html#SIZEOF_SHORT"><CODE>SIZEOF_SHORT</CODE></A>
+<DT><B>Returns:</B><DD>the short value
+<DT><B>Throws:</B>
+<DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if length is not <A HREF="../../../../org/apache/hama/util/Bytes.html#SIZEOF_SHORT"><CODE>SIZEOF_SHORT</CODE></A> or
+ if there's not enough room in the array at the offset indicated.</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="putShort(byte[], int, short)"><!-- --></A><H3>
+putShort</H3>
+<PRE>
+public static int <B>putShort</B>(byte[] bytes,
+ int offset,
+ short val)</PRE>
+<DL>
+<DD>Put a short value out to the specified byte array position.
+<P>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>bytes</CODE> - the byte array<DD><CODE>offset</CODE> - position in the array<DD><CODE>val</CODE> - short to write out
+<DT><B>Returns:</B><DD>incremented offset
+<DT><B>Throws:</B>
+<DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if the byte array given doesn't have
+ enough room at the offset specified.</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="vintToBytes(long)"><!-- --></A><H3>
+vintToBytes</H3>
+<PRE>
+public static byte[] <B>vintToBytes</B>(long vint)</PRE>
+<DL>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>vint</CODE> - Integer to make a vint of.
+<DT><B>Returns:</B><DD>Vint as bytes array.</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="bytesToVint(byte[])"><!-- --></A><H3>
+bytesToVint</H3>
+<PRE>
+public static long <B>bytesToVint</B>(byte[] buffer)</PRE>
+<DL>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>buffer</CODE> - buffer to convert
+<DT><B>Returns:</B><DD>vint bytes as an integer.</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="readVLong(byte[], int)"><!-- --></A><H3>
+readVLong</H3>
+<PRE>
+public static long <B>readVLong</B>(byte[] buffer,
+ int offset)
+ throws <A HREF="http://download.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE>
+<DL>
+<DD>Reads a zero-compressed encoded long from input stream and returns it.
+<P>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>buffer</CODE> - Binary array<DD><CODE>offset</CODE> - Offset into array at which vint begins.
+<DT><B>Returns:</B><DD>deserialized long from stream.
+<DT><B>Throws:</B>
+<DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE> - e</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="compareTo(byte[], byte[])"><!-- --></A><H3>
+compareTo</H3>
+<PRE>
+public static int <B>compareTo</B>(byte[] left,
+ byte[] right)</PRE>
+<DL>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>left</CODE> - left operand<DD><CODE>right</CODE> - right operand
+<DT><B>Returns:</B><DD>0 if equal, < 0 if left is less than right, etc.</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="compareTo(byte[], int, int, byte[], int, int)"><!-- --></A><H3>
+compareTo</H3>
+<PRE>
+public static int <B>compareTo</B>(byte[] b1,
+ int s1,
+ int l1,
+ byte[] b2,
+ int s2,
+ int l2)</PRE>
+<DL>
+<DD>Lexographically compare two arrays.
+<P>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>b1</CODE> - left operand<DD><CODE>b2</CODE> - right operand<DD><CODE>s1</CODE> - Where to start comparing in the left buffer<DD><CODE>s2</CODE> - Where to start comparing in the right buffer<DD><CODE>l1</CODE> - How much to compare from the left buffer<DD><CODE>l2</CODE> - How much to compare from the right buffer
+<DT><B>Returns:</B><DD>0 if equal, < 0 if left is less than right, etc.</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="equals(byte[], byte[])"><!-- --></A><H3>
+equals</H3>
+<PRE>
+public static boolean <B>equals</B>(byte[] left,
+ byte[] right)</PRE>
+<DL>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>left</CODE> - left operand<DD><CODE>right</CODE> - right operand
+<DT><B>Returns:</B><DD>True if equal</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="hashCode(byte[])"><!-- --></A><H3>
+hashCode</H3>
+<PRE>
+public static int <B>hashCode</B>(byte[] b)</PRE>
+<DL>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>b</CODE> - bytes to hash
+<DT><B>Returns:</B><DD>Runs <CODE>WritableComparator.hashBytes(byte[], int)</CODE> on the
+ passed in array. This method is what
+ <CODE>Text</CODE> use calculating hash code.</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="hashCode(byte[], int)"><!-- --></A><H3>
+hashCode</H3>
+<PRE>
+public static int <B>hashCode</B>(byte[] b,
+ int length)</PRE>
+<DL>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>b</CODE> - value<DD><CODE>length</CODE> - length of the value
+<DT><B>Returns:</B><DD>Runs <CODE>WritableComparator.hashBytes(byte[], int)</CODE> on the
+ passed in array. This method is what
+ <CODE>Text</CODE> use calculating hash code.</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="mapKey(byte[])"><!-- --></A><H3>
+mapKey</H3>
+<PRE>
+public static <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</A> <B>mapKey</B>(byte[] b)</PRE>
+<DL>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>b</CODE> - bytes to hash
+<DT><B>Returns:</B><DD>A hash of <code>b</code> as an Integer that can be used as key in
+ Maps.</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="mapKey(byte[], int)"><!-- --></A><H3>
+mapKey</H3>
+<PRE>
+public static <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</A> <B>mapKey</B>(byte[] b,
+ int length)</PRE>
+<DL>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>b</CODE> - bytes to hash<DD><CODE>length</CODE> - length to hash
+<DT><B>Returns:</B><DD>A hash of <code>b</code> as an Integer that can be used as key in
+ Maps.</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="add(byte[], byte[])"><!-- --></A><H3>
+add</H3>
+<PRE>
+public static byte[] <B>add</B>(byte[] a,
+ byte[] b)</PRE>
+<DL>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>a</CODE> - lower half<DD><CODE>b</CODE> - upper half
+<DT><B>Returns:</B><DD>New array that has a in lower half and b in upper half.</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="add(byte[], byte[], byte[])"><!-- --></A><H3>
+add</H3>
+<PRE>
+public static byte[] <B>add</B>(byte[] a,
+ byte[] b,
+ byte[] c)</PRE>
+<DL>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>a</CODE> - first third<DD><CODE>b</CODE> - second third<DD><CODE>c</CODE> - third third
+<DT><B>Returns:</B><DD>New array made from a, b and c</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="head(byte[], int)"><!-- --></A><H3>
+head</H3>
+<PRE>
+public static byte[] <B>head</B>(byte[] a,
+ int length)</PRE>
+<DL>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>a</CODE> - array<DD><CODE>length</CODE> - amount of bytes to grab
+<DT><B>Returns:</B><DD>First <code>length</code> bytes from <code>a</code></DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="tail(byte[], int)"><!-- --></A><H3>
+tail</H3>
+<PRE>
+public static byte[] <B>tail</B>(byte[] a,
+ int length)</PRE>
+<DL>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>a</CODE> - array<DD><CODE>length</CODE> - amount of bytes to snarf
+<DT><B>Returns:</B><DD>Last <code>length</code> bytes from <code>a</code></DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="padHead(byte[], int)"><!-- --></A><H3>
+padHead</H3>
+<PRE>
+public static byte[] <B>padHead</B>(byte[] a,
+ int length)</PRE>
+<DL>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>a</CODE> - array<DD><CODE>length</CODE> - new array size
+<DT><B>Returns:</B><DD>Value in <code>a</code> plus <code>length</code> prepended 0 bytes</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="padTail(byte[], int)"><!-- --></A><H3>
+padTail</H3>
+<PRE>
+public static byte[] <B>padTail</B>(byte[] a,
+ int length)</PRE>
+<DL>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>a</CODE> - array<DD><CODE>length</CODE> - new array size
+<DT><B>Returns:</B><DD>Value in <code>a</code> plus <code>length</code> appended 0 bytes</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="split(byte[], byte[], int)"><!-- --></A><H3>
+split</H3>
+<PRE>
+public static byte[][] <B>split</B>(byte[] a,
+ byte[] b,
+ int num)</PRE>
+<DL>
+<DD>Split passed range. Expensive operation relatively. Uses BigInteger math.
+ Useful splitting ranges for MapReduce jobs.
+<P>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>a</CODE> - Beginning of range<DD><CODE>b</CODE> - End of range<DD><CODE>num</CODE> - Number of times to split range. Pass 1 if you want to split the
+ range in two; i.e. one split.
+<DT><B>Returns:</B><DD>Array of dividing values</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="toByteArrays(java.lang.String[])"><!-- --></A><H3>
+toByteArrays</H3>
+<PRE>
+public static byte[][] <B>toByteArrays</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[] t)</PRE>
+<DL>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>t</CODE> - operands
+<DT><B>Returns:</B><DD>Array of byte arrays made from passed array of Text</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="toByteArrays(java.lang.String)"><!-- --></A><H3>
+toByteArrays</H3>
+<PRE>
+public static byte[][] <B>toByteArrays</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> column)</PRE>
+<DL>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>column</CODE> - operand
+<DT><B>Returns:</B><DD>A byte array of a byte array where first and only entry is
+ <code>column</code></DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="toByteArrays(byte[])"><!-- --></A><H3>
+toByteArrays</H3>
+<PRE>
+public static byte[][] <B>toByteArrays</B>(byte[] column)</PRE>
+<DL>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>column</CODE> - operand
+<DT><B>Returns:</B><DD>A byte array of a byte array where first and only entry is
+ <code>column</code></DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="binarySearch(byte[][], byte[], int, int, org.apache.hadoop.io.RawComparator)"><!-- --></A><H3>
+binarySearch</H3>
+<PRE>
+public static int <B>binarySearch</B>(byte[][] arr,
+ byte[] key,
+ int offset,
+ int length,
+ org.apache.hadoop.io.RawComparator<byte[]> comparator)</PRE>
+<DL>
+<DD>Binary search for keys in indexes.
+<P>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>arr</CODE> - array of byte arrays to search for<DD><CODE>key</CODE> - the key you want to find<DD><CODE>offset</CODE> - the offset in the key you want to find<DD><CODE>length</CODE> - the length of the key<DD><CODE>comparator</CODE> - a comparator to compare.
+<DT><B>Returns:</B><DD>index of key</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="incrementBytes(byte[], long)"><!-- --></A><H3>
+incrementBytes</H3>
+<PRE>
+public static byte[] <B>incrementBytes</B>(byte[] value,
+ long amount)
+ throws <A HREF="http://download.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE>
+<DL>
+<DD>Bytewise binary increment/deincrement of long contained in byte array on
+ given amount.
+<P>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>value</CODE> - - array of bytes containing long (length <= SIZEOF_LONG)<DD><CODE>amount</CODE> - value will be incremented on (deincremented if negative)
+<DT><B>Returns:</B><DD>array of bytes containing incremented long (length == SIZEOF_LONG)
+<DT><B>Throws:</B>
+<DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE> - - if value.length > SIZEOF_LONG</DL>
+</DD>
+</DL>
+<!-- ========= END OF CLASS DATA ========= -->
+<HR>
+
+
+<!-- ======= START OF BOTTOM NAVBAR ====== -->
+<A NAME="navbar_bottom"><!-- --></A>
+<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_bottom_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+ <TR ALIGN="center" VALIGN="top">
+ <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
+ <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
+ <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
+ <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Bytes.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
+ <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
+ <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
+ <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
+ <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
+ </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+ PREV CLASS
+ <A HREF="../../../../org/apache/hama/util/Bytes.ByteArrayComparator.html" title="class in org.apache.hama.util"><B>NEXT CLASS</B></A></FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+ <A HREF="../../../../index.html?org/apache/hama/util/Bytes.html" target="_top"><B>FRAMES</B></A>
+ <A HREF="Bytes.html" target="_top"><B>NO FRAMES</B></A>
+ <SCRIPT type="text/javascript">
+ <!--
+ if(window==top) {
+ document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
+ }
+ //-->
+</SCRIPT>
+<NOSCRIPT>
+ <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+
+</FONT></TD>
+</TR>
+<TR>
+<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
+ SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
+<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
+DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_bottom"></A>
+<!-- ======== END OF BOTTOM NAVBAR ======= -->
+
+<HR>
+Copyright © 2011 The Apache Software Foundation
+</BODY>
+</HTML>