org.apache.hadoop.record
Class Utils

java.lang.Object
  extended by org.apache.hadoop.record.Utils

public class Utils
extends Object

Various utility functions for Hadooop record I/O runtime.

Author:
Milind Bhandarkar

Field Summary
static byte[] hexchars
           
 
Method Summary
static boolean bufEquals(ByteArrayOutputStream one, ByteArrayOutputStream two)
          equals function that actually compares two buffers.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hexchars

public static final byte[] hexchars
Method Detail

bufEquals

public static boolean bufEquals(ByteArrayOutputStream one,
                                ByteArrayOutputStream two)
equals function that actually compares two buffers.

Parameters:
one - First buffer
two - Second buffer
Returns:
true if one and two contain exactly the same content, else false.


Copyright © 2006 The Apache Software Foundation