| java.lang.Object com.quadcap.sql.index.Comparator com.quadcap.sql.Key
Key | public class Key extends Comparator (Code) | | Micro-optimized (-;) key serialization and comparison. This class
is designed to eliminate copies and allocations during key comparison
and serialization operations.
author: Stan Bailes |
Constructor Summary | |
public | Key(int cnt) | public | Key(boolean[] asc) |
Method Summary | |
public void | checkKey(byte[] buf, int off, int len) | public int | compare(byte[] a, byte[] b) | final public int | compare(byte[] a, int aoff, int alen, byte[] b, int boff, int blen) | final int | compare2(byte[] a, int aoff, int alen, byte[] b, int boff, int blen) | public boolean | compareNulls(byte[] a, byte[] b) | public int | getKeyLen(byte[] a, int aoff) | public static void | main(String[] args) | public static byte[] | makeKey(Tuple tuple, Row row, int[] map, long rowNum, boolean doRowNum) | public static byte[] | makeKey(Row row) | public static byte[] | makeRandomKey() | public static void | test1() | public String | toString(byte[] key, int off, int xlen) | public static String | toStringHelper(byte[] key) | public static String | toStringHelper(byte[] key, int off, int xlen) |
COMPOUND | final public static int COMPOUND(Code) | | |
INTEGER | final public static int INTEGER(Code) | | |
NULL | final public static int NULL(Code) | | |
STRING | final public static int STRING(Code) | | |
paranoid | final static boolean paranoid(Code) | | |
Key | public Key(boolean[] asc)(Code) | | |
checkKey | public void checkKey(byte[] buf, int off, int len)(Code) | | |
compare | public int compare(byte[] a, byte[] b)(Code) | | |
compare | final public int compare(byte[] a, int aoff, int alen, byte[] b, int boff, int blen)(Code) | | |
compare2 | final int compare2(byte[] a, int aoff, int alen, byte[] b, int boff, int blen)(Code) | | |
compareNulls | public boolean compareNulls(byte[] a, byte[] b)(Code) | | Null comparison for GROUP BY
|
getKeyLen | public int getKeyLen(byte[] a, int aoff)(Code) | | |
toString | public String toString(byte[] key, int off, int xlen)(Code) | | |
toStringHelper | public static String toStringHelper(byte[] key)(Code) | | |
toStringHelper | public static String toStringHelper(byte[] key, int off, int xlen)(Code) | | |
Methods inherited from com.quadcap.sql.index.Comparator | public int compare(byte[] a, int aoff, int alen, byte[] b, int boff, int blen)(Code)(Java Doc) public int compare(byte[] a, byte[] b)(Code)(Java Doc) public String toString(byte[] key, int off, int len)(Code)(Java Doc)
|
|
|