|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.amazon.carbonado.raw.KeyDecoder
public class KeyDecoder
A very low-level class that decodes key components encoded by methods of
KeyEncoder.
DataDecoder| Constructor Summary | |
|---|---|
KeyDecoder()
|
|
| Method Summary | |
|---|---|
static int |
decode(byte[] src,
int srcOffset,
BigDecimal[] valueRef)
Decodes the given BigDecimal as originally encoded for ascending order. |
static int |
decode(byte[] src,
int srcOffset,
BigInteger[] valueRef)
Decodes the given BigInteger as originally encoded for ascending order. |
static int |
decode(byte[] src,
int srcOffset,
byte[][] valueRef)
Decodes the given byte array as originally encoded for ascending order. |
static boolean |
decodeBooleanDesc(byte[] src,
int srcOffset)
Decodes a boolean from exactly 1 byte, as encoded for descending order. |
static Boolean |
decodeBooleanObjDesc(byte[] src,
int srcOffset)
Decodes a Boolean object from exactly 1 byte, as encoded for descending order. |
static byte |
decodeByteDesc(byte[] src,
int srcOffset)
Decodes a signed byte from exactly 1 byte, as encoded for descending order. |
static Byte |
decodeByteObjDesc(byte[] src,
int srcOffset)
Decodes a signed Byte object from exactly 1 or 2 bytes, as encoded for descending order. |
static Character |
decodeCharacterObjDesc(byte[] src,
int srcOffset)
Decodes a Character object from exactly 1 or 3 bytes, as encoded for descending order. |
static char |
decodeCharDesc(byte[] src,
int srcOffset)
Decodes a char from exactly 2 bytes, as encoded for descending order. |
static int |
decodeDesc(byte[] src,
int srcOffset,
BigDecimal[] valueRef)
Decodes the given BigDecimal as originally encoded for descending order. |
static int |
decodeDesc(byte[] src,
int srcOffset,
BigInteger[] valueRef)
Decodes the given BigInteger as originally encoded for descending order. |
static int |
decodeDesc(byte[] src,
int srcOffset,
byte[][] valueRef)
Decodes the given byte array as originally encoded for descending order. |
static double |
decodeDoubleDesc(byte[] src,
int srcOffset)
Decodes a double from exactly 8 bytes, as encoded for descending order. |
static Double |
decodeDoubleObjDesc(byte[] src,
int srcOffset)
Decodes a Double object from exactly 8 bytes. |
static float |
decodeFloatDesc(byte[] src,
int srcOffset)
Decodes a float from exactly 4 bytes, as encoded for descending order. |
static Float |
decodeFloatObjDesc(byte[] src,
int srcOffset)
Decodes a Float object from exactly 4 bytes. |
static int |
decodeIntDesc(byte[] src,
int srcOffset)
Decodes a signed integer from exactly 4 bytes, as encoded for descending order. |
static Integer |
decodeIntegerObjDesc(byte[] src,
int srcOffset)
Decodes a signed Integer object from exactly 1 or 5 bytes, as encoded for descending order. |
static long |
decodeLongDesc(byte[] src,
int srcOffset)
Decodes a signed long from exactly 8 bytes, as encoded for descending order. |
static Long |
decodeLongObjDesc(byte[] src,
int srcOffset)
Decodes a signed Long object from exactly 1 or 9 bytes, as encoded for descending order. |
static short |
decodeShortDesc(byte[] src,
int srcOffset)
Decodes a signed short from exactly 2 bytes, as encoded for descending order. |
static Short |
decodeShortObjDesc(byte[] src,
int srcOffset)
Decodes a signed Short object from exactly 1 or 3 bytes, as encoded for descending order. |
static byte[] |
decodeSingleDesc(byte[] src)
Decodes the given byte array which was encoded by KeyEncoder.encodeSingleDesc(byte[]). |
static byte[] |
decodeSingleDesc(byte[] src,
int prefixPadding,
int suffixPadding)
Decodes the given byte array which was encoded by KeyEncoder.encodeSingleDesc(byte[]). |
static byte[] |
decodeSingleNullableDesc(byte[] src)
Decodes the given byte array which was encoded by KeyEncoder.encodeSingleNullableDesc(byte[]). |
static byte[] |
decodeSingleNullableDesc(byte[] src,
int prefixPadding,
int suffixPadding)
Decodes the given byte array which was encoded by KeyEncoder.encodeSingleNullableDesc(byte[]). |
static int |
decodeString(byte[] src,
int srcOffset,
String[] valueRef)
Decodes an encoded string from the given byte array. |
static int |
decodeStringDesc(byte[] src,
int srcOffset,
String[] valueRef)
Decodes an encoded string from the given byte array as originally encoded for descending order. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public KeyDecoder()
| Method Detail |
|---|
public static int decodeIntDesc(byte[] src,
int srcOffset)
throws CorruptEncodingException
src - source of encoded bytessrcOffset - offset into source array
CorruptEncodingException
public static Integer decodeIntegerObjDesc(byte[] src,
int srcOffset)
throws CorruptEncodingException
src - source of encoded bytessrcOffset - offset into source array
CorruptEncodingException
public static long decodeLongDesc(byte[] src,
int srcOffset)
throws CorruptEncodingException
src - source of encoded bytessrcOffset - offset into source array
CorruptEncodingException
public static Long decodeLongObjDesc(byte[] src,
int srcOffset)
throws CorruptEncodingException
src - source of encoded bytessrcOffset - offset into source array
CorruptEncodingException
public static byte decodeByteDesc(byte[] src,
int srcOffset)
throws CorruptEncodingException
src - source of encoded bytessrcOffset - offset into source array
CorruptEncodingException
public static Byte decodeByteObjDesc(byte[] src,
int srcOffset)
throws CorruptEncodingException
src - source of encoded bytessrcOffset - offset into source array
CorruptEncodingException
public static short decodeShortDesc(byte[] src,
int srcOffset)
throws CorruptEncodingException
src - source of encoded bytessrcOffset - offset into source array
CorruptEncodingException
public static Short decodeShortObjDesc(byte[] src,
int srcOffset)
throws CorruptEncodingException
src - source of encoded bytessrcOffset - offset into source array
CorruptEncodingException
public static char decodeCharDesc(byte[] src,
int srcOffset)
throws CorruptEncodingException
src - source of encoded bytessrcOffset - offset into source array
CorruptEncodingException
public static Character decodeCharacterObjDesc(byte[] src,
int srcOffset)
throws CorruptEncodingException
src - source of encoded bytessrcOffset - offset into source array
CorruptEncodingException
public static boolean decodeBooleanDesc(byte[] src,
int srcOffset)
throws CorruptEncodingException
src - source of encoded bytessrcOffset - offset into source array
CorruptEncodingException
public static Boolean decodeBooleanObjDesc(byte[] src,
int srcOffset)
throws CorruptEncodingException
src - source of encoded bytessrcOffset - offset into source array
CorruptEncodingException
public static float decodeFloatDesc(byte[] src,
int srcOffset)
throws CorruptEncodingException
src - source of encoded bytessrcOffset - offset into source array
CorruptEncodingException
public static Float decodeFloatObjDesc(byte[] src,
int srcOffset)
throws CorruptEncodingException
src - source of encoded bytessrcOffset - offset into source array
CorruptEncodingException
public static double decodeDoubleDesc(byte[] src,
int srcOffset)
throws CorruptEncodingException
src - source of encoded bytessrcOffset - offset into source array
CorruptEncodingException
public static Double decodeDoubleObjDesc(byte[] src,
int srcOffset)
throws CorruptEncodingException
src - source of encoded bytessrcOffset - offset into source array
CorruptEncodingException
public static int decode(byte[] src,
int srcOffset,
BigInteger[] valueRef)
throws CorruptEncodingException
src - source of encoded datasrcOffset - offset into encoded datavalueRef - decoded BigInteger is stored in element 0, which may be null
CorruptEncodingException - if source data is corrupt
public static int decodeDesc(byte[] src,
int srcOffset,
BigInteger[] valueRef)
throws CorruptEncodingException
src - source of encoded datasrcOffset - offset into encoded datavalueRef - decoded BigInteger is stored in element 0, which may be null
CorruptEncodingException - if source data is corrupt
public static int decode(byte[] src,
int srcOffset,
BigDecimal[] valueRef)
throws CorruptEncodingException
src - source of encoded datasrcOffset - offset into encoded datavalueRef - decoded BigDecimal is stored in element 0, which may be null
CorruptEncodingException - if source data is corrupt
public static int decodeDesc(byte[] src,
int srcOffset,
BigDecimal[] valueRef)
throws CorruptEncodingException
src - source of encoded datasrcOffset - offset into encoded datavalueRef - decoded BigDecimal is stored in element 0, which may be null
CorruptEncodingException - if source data is corrupt
public static int decode(byte[] src,
int srcOffset,
byte[][] valueRef)
throws CorruptEncodingException
src - source of encoded datasrcOffset - offset into encoded datavalueRef - decoded byte array is stored in element 0, which may be null
CorruptEncodingException - if source data is corrupt
public static int decodeDesc(byte[] src,
int srcOffset,
byte[][] valueRef)
throws CorruptEncodingException
src - source of encoded datasrcOffset - offset into encoded datavalueRef - decoded byte array is stored in element 0, which may be null
CorruptEncodingException - if source data is corrupt
public static int decodeString(byte[] src,
int srcOffset,
String[] valueRef)
throws CorruptEncodingException
src - source of encoded datasrcOffset - offset into encoded datavalueRef - decoded string is stored in element 0, which may be null
CorruptEncodingException - if source data is corrupt
public static int decodeStringDesc(byte[] src,
int srcOffset,
String[] valueRef)
throws CorruptEncodingException
src - source of encoded datasrcOffset - offset into encoded datavalueRef - decoded string is stored in element 0, which may be null
CorruptEncodingException - if source data is corrupt
public static byte[] decodeSingleDesc(byte[] src)
throws CorruptEncodingException
KeyEncoder.encodeSingleDesc(byte[]). Always returns a new byte array instance.
CorruptEncodingException
public static byte[] decodeSingleDesc(byte[] src,
int prefixPadding,
int suffixPadding)
throws CorruptEncodingException
KeyEncoder.encodeSingleDesc(byte[]). Always returns a new byte array instance.
prefixPadding - amount of extra bytes to skip from start of encoded byte arraysuffixPadding - amount of extra bytes to skip at end of encoded byte array
CorruptEncodingException
public static byte[] decodeSingleNullableDesc(byte[] src)
throws CorruptEncodingException
KeyEncoder.encodeSingleNullableDesc(byte[]). Always returns a new byte array
instance.
CorruptEncodingException
public static byte[] decodeSingleNullableDesc(byte[] src,
int prefixPadding,
int suffixPadding)
throws CorruptEncodingException
KeyEncoder.encodeSingleNullableDesc(byte[]). Always returns a new byte array
instance.
prefixPadding - amount of extra bytes to skip from start of encoded byte arraysuffixPadding - amount of extra bytes to skip at end of encoded byte array
CorruptEncodingException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||