public class DefaultSpectrumKeyRawComparator extends Object implements org.apache.hadoop.io.RawComparator<SpectrumKey>
| Constructor and Description |
|---|
DefaultSpectrumKeyRawComparator() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(byte[] b1,
int s1,
int l1,
byte[] b2,
int s2,
int l2) |
int |
compare(SpectrumKey o1,
SpectrumKey o2) |
static double |
readDouble(byte[] bytes,
int start)
Parse a double from a byte array.
|
static int |
readInt(byte[] bytes,
int start)
Parse an integer from a byte array.
|
static long |
readLong(byte[] bytes,
int start)
Parse a long from a byte array.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequalspublic int compare(SpectrumKey o1, SpectrumKey o2)
compare in interface Comparator<SpectrumKey>public int compare(byte[] b1,
int s1,
int l1,
byte[] b2,
int s2,
int l2)
compare in interface org.apache.hadoop.io.RawComparator<SpectrumKey>public static int readInt(byte[] bytes,
int start)
public static double readDouble(byte[] bytes,
int start)
public static long readLong(byte[] bytes,
int start)
Copyright © 2016. All Rights Reserved.