public class KeyDecoder
extends java.lang.Object
KeyEncoder.DataDecoder| Constructor and Description |
|---|
KeyDecoder() |
| Modifier and Type | Method and Description |
|---|---|
static int |
decode(byte[] src,
int srcOffset,
java.math.BigDecimal[] valueRef)
Decodes the given BigDecimal as originally encoded for ascending order.
|
static int |
decode(byte[] src,
int srcOffset,
java.math.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 java.lang.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 java.lang.Byte |
decodeByteObjDesc(byte[] src,
int srcOffset)
Decodes a signed Byte object from exactly 1 or 2 bytes, as encoded for
descending order.
|
static java.lang.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,
java.math.BigDecimal[] valueRef)
Decodes the given BigDecimal as originally encoded for descending order.
|
static int |
decodeDesc(byte[] src,
int srcOffset,
java.math.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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,
java.lang.String[] valueRef)
Decodes an encoded string from the given byte array.
|
static int |
decodeStringDesc(byte[] src,
int srcOffset,
java.lang.String[] valueRef)
Decodes an encoded string from the given byte array as originally
encoded for descending order.
|
public static int decodeIntDesc(byte[] src,
int srcOffset)
throws CorruptEncodingException
src - source of encoded bytessrcOffset - offset into source arrayCorruptEncodingExceptionpublic static java.lang.Integer decodeIntegerObjDesc(byte[] src,
int srcOffset)
throws CorruptEncodingException
src - source of encoded bytessrcOffset - offset into source arrayCorruptEncodingExceptionpublic static long decodeLongDesc(byte[] src,
int srcOffset)
throws CorruptEncodingException
src - source of encoded bytessrcOffset - offset into source arrayCorruptEncodingExceptionpublic static java.lang.Long decodeLongObjDesc(byte[] src,
int srcOffset)
throws CorruptEncodingException
src - source of encoded bytessrcOffset - offset into source arrayCorruptEncodingExceptionpublic static byte decodeByteDesc(byte[] src,
int srcOffset)
throws CorruptEncodingException
src - source of encoded bytessrcOffset - offset into source arrayCorruptEncodingExceptionpublic static java.lang.Byte decodeByteObjDesc(byte[] src,
int srcOffset)
throws CorruptEncodingException
src - source of encoded bytessrcOffset - offset into source arrayCorruptEncodingExceptionpublic static short decodeShortDesc(byte[] src,
int srcOffset)
throws CorruptEncodingException
src - source of encoded bytessrcOffset - offset into source arrayCorruptEncodingExceptionpublic static java.lang.Short decodeShortObjDesc(byte[] src,
int srcOffset)
throws CorruptEncodingException
src - source of encoded bytessrcOffset - offset into source arrayCorruptEncodingExceptionpublic static char decodeCharDesc(byte[] src,
int srcOffset)
throws CorruptEncodingException
src - source of encoded bytessrcOffset - offset into source arrayCorruptEncodingExceptionpublic static java.lang.Character decodeCharacterObjDesc(byte[] src,
int srcOffset)
throws CorruptEncodingException
src - source of encoded bytessrcOffset - offset into source arrayCorruptEncodingExceptionpublic static boolean decodeBooleanDesc(byte[] src,
int srcOffset)
throws CorruptEncodingException
src - source of encoded bytessrcOffset - offset into source arrayCorruptEncodingExceptionpublic static java.lang.Boolean decodeBooleanObjDesc(byte[] src,
int srcOffset)
throws CorruptEncodingException
src - source of encoded bytessrcOffset - offset into source arrayCorruptEncodingExceptionpublic static float decodeFloatDesc(byte[] src,
int srcOffset)
throws CorruptEncodingException
src - source of encoded bytessrcOffset - offset into source arrayCorruptEncodingExceptionpublic static java.lang.Float decodeFloatObjDesc(byte[] src,
int srcOffset)
throws CorruptEncodingException
src - source of encoded bytessrcOffset - offset into source arrayCorruptEncodingExceptionpublic static double decodeDoubleDesc(byte[] src,
int srcOffset)
throws CorruptEncodingException
src - source of encoded bytessrcOffset - offset into source arrayCorruptEncodingExceptionpublic static java.lang.Double decodeDoubleObjDesc(byte[] src,
int srcOffset)
throws CorruptEncodingException
src - source of encoded bytessrcOffset - offset into source arrayCorruptEncodingExceptionpublic static int decode(byte[] src,
int srcOffset,
java.math.BigInteger[] valueRef)
throws CorruptEncodingException
src - source of encoded datasrcOffset - offset into encoded datavalueRef - decoded BigInteger is stored in element 0, which may be nullCorruptEncodingException - if source data is corruptpublic static int decodeDesc(byte[] src,
int srcOffset,
java.math.BigInteger[] valueRef)
throws CorruptEncodingException
src - source of encoded datasrcOffset - offset into encoded datavalueRef - decoded BigInteger is stored in element 0, which may be nullCorruptEncodingException - if source data is corruptpublic static int decode(byte[] src,
int srcOffset,
java.math.BigDecimal[] valueRef)
throws CorruptEncodingException
src - source of encoded datasrcOffset - offset into encoded datavalueRef - decoded BigDecimal is stored in element 0, which may be nullCorruptEncodingException - if source data is corruptpublic static int decodeDesc(byte[] src,
int srcOffset,
java.math.BigDecimal[] valueRef)
throws CorruptEncodingException
src - source of encoded datasrcOffset - offset into encoded datavalueRef - decoded BigDecimal is stored in element 0, which may be nullCorruptEncodingException - if source data is corruptpublic 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 nullCorruptEncodingException - if source data is corruptpublic 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 nullCorruptEncodingException - if source data is corruptpublic static int decodeString(byte[] src,
int srcOffset,
java.lang.String[] valueRef)
throws CorruptEncodingException
src - source of encoded datasrcOffset - offset into encoded datavalueRef - decoded string is stored in element 0, which may be nullCorruptEncodingException - if source data is corruptpublic static int decodeStringDesc(byte[] src,
int srcOffset,
java.lang.String[] valueRef)
throws CorruptEncodingException
src - source of encoded datasrcOffset - offset into encoded datavalueRef - decoded string is stored in element 0, which may be nullCorruptEncodingException - if source data is corruptpublic static byte[] decodeSingleDesc(byte[] src)
throws CorruptEncodingException
KeyEncoder.encodeSingleDesc(byte[]). Always returns a new byte array instance.CorruptEncodingExceptionpublic 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 arrayCorruptEncodingExceptionpublic static byte[] decodeSingleNullableDesc(byte[] src)
throws CorruptEncodingException
KeyEncoder.encodeSingleNullableDesc(byte[]). Always returns a new byte array
instance.CorruptEncodingExceptionpublic 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 arrayCorruptEncodingExceptionCopyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.