Modifier and Type | Class and Description |
---|---|
private static class | |
private static class |
Modifier and Type | Field and Description |
---|---|
private static final ThreadLocal | |
private static final ThreadLocal |
Access | Constructor and Description |
---|---|
private |
Modifier and Type | Method and Description |
---|---|
public static int | |
public static int | |
private static int | |
public static int | |
public static int | Returns: The number of bytes written to the buffer, 1.Encode a boolean to the byte array at the given position. |
public static int | Returns: Returns the number of bytes written to the buffer, 8.Encode a double to the byte array at the given position. |
public static int | Returns: Returns the number of bytes written to the buffer, 4.Encode a float to the byte array at the given position. |
public static int | Returns: The number of bytes written to the buffer, between 1 and 5.Encode an integer to the byte array at the given position. |
public static int | Returns: The number of bytes written to the buffer, between 1 and 10.Encode a long to the byte array at the given position. |
private static int | |
public static int | |
private static int | |
public static int |
DECODERS | back to summary |
---|---|
private static final ThreadLocal<BinaryData. |
HASH_DATA | back to summary |
---|---|
private static final ThreadLocal<BinaryData. |
BinaryData | back to summary |
---|---|
private BinaryData() |
compare | back to summary |
---|---|
public static int compare(byte[] b1, int s1, byte[] b2, int s2, Schema schema) Compare binary encoded data. If equal, return zero. If greater-than, return
1, if less than return -1. Order is consistent with that of
|
compare | back to summary |
---|---|
public static int compare(byte[] b1, int s1, int l1, byte[] b2, int s2, int l2, Schema schema) Compare binary encoded data. If equal, return zero. If greater-than, return
1, if less than return -1. Order is consistent with that of
|
compare | back to summary |
---|---|
private static int compare(BinaryData. If equal, return the number of bytes consumed. If greater than, return GT, if less than, return LT. |
compareBytes | back to summary |
---|---|
public static int compareBytes(byte[] b1, int s1, int l1, byte[] b2, int s2, int l2) Lexicographically compare bytes. If equal, return zero. If greater-than, return a positive value, if less than return a negative value. |
encodeBoolean | back to summary |
---|---|
public static int encodeBoolean(boolean b, byte[] buf, int pos) Encode a boolean to the byte array at the given position. Will throw IndexOutOfBounds if the position is not valid.
|
encodeDouble | back to summary |
---|---|
public static int encodeDouble(double d, byte[] buf, int pos) Encode a double to the byte array at the given position. Will throw IndexOutOfBounds if it overflows. Users should ensure that there are at least 8 bytes left in the buffer before calling this method.
|
encodeFloat | back to summary |
---|---|
public static int encodeFloat(float f, byte[] buf, int pos) Encode a float to the byte array at the given position. Will throw IndexOutOfBounds if it overflows. Users should ensure that there are at least 4 bytes left in the buffer before calling this method.
|
encodeInt | back to summary |
---|---|
public static int encodeInt(int n, byte[] buf, int pos) Encode an integer to the byte array at the given position. Will throw IndexOutOfBounds if it overflows. Users should ensure that there are at least 5 bytes left in the buffer before calling this method.
|
encodeLong | back to summary |
---|---|
public static int encodeLong(long n, byte[] buf, int pos) Encode a long to the byte array at the given position. Will throw IndexOutOfBounds if it overflows. Users should ensure that there are at least 10 bytes left in the buffer before calling this method.
|
hashBytes | back to summary |
---|---|
private static int hashBytes(int init, BinaryData. |
hashCode | back to summary |
---|---|
public static int hashCode(byte[] bytes, int start, int length, Schema schema) Hash binary encoded data. Consistent with
|
hashCode | back to summary |
---|---|
private static int hashCode(BinaryData. |
skipLong | back to summary |
---|---|
public static int skipLong(final byte[] bytes, int start) Skip a binary-encoded long, returning the position after it. |
Modifier and Type | Field and Description |
---|---|
private final BinaryDecoder | |
private final BinaryDecoder |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
public void | |
public void |
d1 | back to summary |
---|---|
private final BinaryDecoder d1 |
d2 | back to summary |
---|---|
private final BinaryDecoder d2 |
Decoders | back to summary |
---|---|
public Decoders() |
clear | back to summary |
---|---|
public void clear() |
set | back to summary |
---|---|
public void set(byte[] data1, int off1, int len1, byte[] data2, int off2, int len2) |
Modifier and Type | Field and Description |
---|---|
private final BinaryDecoder |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
public void |
decoder | back to summary |
---|---|
private final BinaryDecoder decoder |
HashData | back to summary |
---|---|
public HashData() |
set | back to summary |
---|---|
public void set(byte[] bytes, int start, int len) |