org.apache.jute
Class Utils
java.lang.Object
org.apache.jute.Utils
public class Utils
- extends Object
Various utility functions for Hadoop record I/O runtime.
Method Summary |
static boolean |
bufEquals(byte[] onearray,
byte[] twoarray)
equals function that actually compares two buffers. |
static int |
compareBytes(byte[] b1,
int off1,
int len1,
byte[] b2,
int off2,
int len2)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
bufEquals
public static boolean bufEquals(byte[] onearray,
byte[] twoarray)
- equals function that actually compares two buffers.
- Parameters:
onearray
- First buffertwoarray
- Second buffer
- Returns:
- true if one and two contain exactly the same content, else false.
compareBytes
public static int compareBytes(byte[] b1,
int off1,
int len1,
byte[] b2,
int off2,
int len2)