public abstract class IndexRowKeyComponent
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static byte |
_NULL |
static byte |
ARRAY |
static byte |
BOOLEAN |
static byte |
BYTE |
static byte |
BYTE_ARRAY |
protected static double |
BYTE_ARRAY_DECODING_SIZE_RATIO |
protected static double |
BYTE_ARRAY_ENCODING_SIZE_RATIO |
static byte |
DATE |
protected boolean |
descendingOrder_ |
static byte |
DOUBLE |
static byte |
ERROR |
static byte |
FLOAT |
static byte |
INT |
protected boolean |
isDecoded_ |
static byte |
LONG |
static byte |
MAP |
protected static byte |
MARKER_SIZE |
static byte |
MISSING |
static byte |
NONE |
static byte |
NUMERIC |
protected int |
offset_ |
static byte |
ORIG_TYPE_ENCODING_SIZE |
protected java.lang.Byte |
separator_ |
static byte |
SHORT |
static byte |
STRING |
static byte |
TIME |
static byte |
TIMESTAMP |
protected byte |
type_ |
Constructor and Description |
---|
IndexRowKeyComponent(byte type,
boolean descendingOrder) |
Modifier and Type | Method and Description |
---|---|
int |
calculateEncodingSize(com.mapr.utils.ByteReader buf,
int offset) |
abstract int |
decode(com.mapr.utils.ByteReader buf,
int offset,
int bufSize,
org.apache.commons.lang.mutable.MutableInt origTypeOffset) |
int |
decode(com.mapr.utils.ByteReader buf,
int offset,
int bufSize,
org.apache.commons.lang.mutable.MutableInt origTypeOffset,
org.ojai.DocumentBuilder docBld) |
int |
decode(com.mapr.utils.ByteReader buf,
int offset,
int bufSize,
org.apache.commons.lang.mutable.MutableInt origTypeOffset,
org.ojai.DocumentBuilder docBld,
java.lang.String key) |
int |
decodeChildren(com.mapr.utils.ByteReader buf,
int offset,
int bufSize,
org.apache.commons.lang.mutable.MutableInt origTypeOffset,
org.ojai.DocumentBuilder docBld) |
abstract int |
encode(java.nio.ByteBuffer dst) |
int |
encodeOrigType(java.nio.ByteBuffer buf) |
protected int |
findIdx(com.mapr.utils.ByteReader buf,
int offset,
byte b) |
OArray |
getArray() |
boolean |
getBoolean() |
byte |
getByte() |
byte[] |
getByteArray() |
org.ojai.types.ODate |
getDate() |
double |
getDouble() |
int |
getEncodingSize() |
int |
getEncodingSizeEstimate() |
Error |
getError() |
java.lang.String |
getErrorMessage() |
float |
getFloat() |
int |
getFullEncodingSize() |
int |
getInt() |
long |
getLong() |
OMap |
getMap() |
abstract byte |
getMarker(boolean biggest) |
int |
getNextComponentOffset() |
int |
getOffset() |
byte |
getOrigType() |
int |
getOrigTypeEncodingSize() |
java.lang.Byte |
getSeparator() |
short |
getShort() |
java.lang.String |
getString() |
org.ojai.types.OTime |
getTime() |
org.ojai.types.OTimestamp |
getTimestamp() |
byte |
getType() |
boolean |
isDecoded() |
void |
setInt(int value) |
void |
setIsDecoded() |
void |
setLong(long value) |
void |
setOffset(int offset) |
void |
setOrigType(byte type) |
public static final byte NONE
public static final byte STRING
public static final byte MISSING
public static final byte BOOLEAN
public static final byte BYTE_ARRAY
public static final byte BYTE
public static final byte SHORT
public static final byte INT
public static final byte LONG
public static final byte FLOAT
public static final byte DOUBLE
public static final byte NUMERIC
public static final byte TIME
public static final byte TIMESTAMP
public static final byte DATE
public static final byte _NULL
public static final byte ERROR
public static final byte ARRAY
public static final byte MAP
public static final byte ORIG_TYPE_ENCODING_SIZE
protected static final double BYTE_ARRAY_ENCODING_SIZE_RATIO
protected static final double BYTE_ARRAY_DECODING_SIZE_RATIO
protected static final byte MARKER_SIZE
protected byte type_
protected boolean descendingOrder_
protected int offset_
protected java.lang.Byte separator_
protected boolean isDecoded_
public IndexRowKeyComponent(byte type, boolean descendingOrder)
public byte getType()
public void setOrigType(byte type)
public byte getOrigType()
public int encodeOrigType(java.nio.ByteBuffer buf)
public int getOrigTypeEncodingSize()
public void setOffset(int offset)
public int getOffset()
public void setIsDecoded()
public boolean isDecoded()
public java.lang.Byte getSeparator()
public int getEncodingSize()
public int getFullEncodingSize()
public int getNextComponentOffset()
public abstract byte getMarker(boolean biggest)
public abstract int encode(java.nio.ByteBuffer dst)
public int decode(com.mapr.utils.ByteReader buf, int offset, int bufSize, org.apache.commons.lang.mutable.MutableInt origTypeOffset, org.ojai.DocumentBuilder docBld, java.lang.String key)
public int decode(com.mapr.utils.ByteReader buf, int offset, int bufSize, org.apache.commons.lang.mutable.MutableInt origTypeOffset, org.ojai.DocumentBuilder docBld)
public abstract int decode(com.mapr.utils.ByteReader buf, int offset, int bufSize, org.apache.commons.lang.mutable.MutableInt origTypeOffset)
public int decodeChildren(com.mapr.utils.ByteReader buf, int offset, int bufSize, org.apache.commons.lang.mutable.MutableInt origTypeOffset, org.ojai.DocumentBuilder docBld)
public int calculateEncodingSize(com.mapr.utils.ByteReader buf, int offset)
public int getEncodingSizeEstimate()
public java.lang.String getString() throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
public boolean getBoolean()
public byte[] getByteArray()
public byte getByte()
public short getShort()
public void setInt(int value)
public int getInt()
public void setLong(long value)
public long getLong()
public float getFloat()
public double getDouble()
public org.ojai.types.OTime getTime()
public org.ojai.types.OTimestamp getTimestamp()
public org.ojai.types.ODate getDate()
public Error getError()
public java.lang.String getErrorMessage()
public OArray getArray()
public OMap getMap()
protected int findIdx(com.mapr.utils.ByteReader buf, int offset, byte b)