public class NumericComponent extends IndexRowKeyComponent
_NULL, ARRAY, BOOLEAN, BYTE, BYTE_ARRAY, BYTE_ARRAY_DECODING_SIZE_RATIO, BYTE_ARRAY_ENCODING_SIZE_RATIO, DATE, descendingOrder_, DOUBLE, ERROR, FLOAT, INT, isDecoded_, LONG, MAP, MARKER_SIZE, MISSING, NONE, NUMERIC, offset_, ORIG_TYPE_ENCODING_SIZE, separator_, SHORT, STRING, TIME, TIMESTAMP, type_| Modifier and Type | Method and Description |
|---|---|
int |
calculateEncodingSize(com.mapr.utils.ByteReader buf,
int offset) |
int |
decode(com.mapr.utils.ByteReader buf,
int offset,
int bufSize,
org.apache.commons.lang.mutable.MutableInt origTypeIndex) |
int |
encode(java.nio.ByteBuffer buf) |
byte |
getByte() |
double |
getDouble() |
int |
getEncodingSize() |
int |
getEncodingSizeEstimate() |
short |
getExponent() |
float |
getFloat() |
int |
getInt() |
boolean |
getIsInfinity() |
boolean |
getIsNaN() |
boolean |
getIsNegative() |
boolean |
getIsZero() |
long |
getLong() |
long |
getMantissa() |
byte |
getMarker(boolean biggest) |
byte |
getOrigType() |
short |
getShort() |
void |
setOrigType(byte type) |
decode, decode, decodeChildren, encodeOrigType, findIdx, getArray, getBoolean, getByteArray, getDate, getError, getErrorMessage, getFullEncodingSize, getMap, getNextComponentOffset, getOffset, getOrigTypeEncodingSize, getSeparator, getString, getTime, getTimestamp, getType, isDecoded, setInt, setIsDecoded, setLong, setOffsetpublic byte getMarker(boolean biggest)
getMarker in class IndexRowKeyComponentpublic int calculateEncodingSize(com.mapr.utils.ByteReader buf,
int offset)
calculateEncodingSize in class IndexRowKeyComponentpublic void setOrigType(byte type)
setOrigType in class IndexRowKeyComponentpublic byte getOrigType()
getOrigType in class IndexRowKeyComponentpublic int encode(java.nio.ByteBuffer buf)
encode in class IndexRowKeyComponentpublic int decode(com.mapr.utils.ByteReader buf,
int offset,
int bufSize,
org.apache.commons.lang.mutable.MutableInt origTypeIndex)
decode in class IndexRowKeyComponentpublic int getEncodingSize()
getEncodingSize in class IndexRowKeyComponentpublic int getEncodingSizeEstimate()
getEncodingSizeEstimate in class IndexRowKeyComponentpublic boolean getIsNegative()
public boolean getIsInfinity()
public boolean getIsNaN()
public boolean getIsZero()
public short getExponent()
public long getMantissa()
public byte getByte()
getByte in class IndexRowKeyComponentpublic short getShort()
getShort in class IndexRowKeyComponentpublic int getInt()
getInt in class IndexRowKeyComponentpublic long getLong()
getLong in class IndexRowKeyComponentpublic float getFloat()
getFloat in class IndexRowKeyComponentpublic double getDouble()
getDouble in class IndexRowKeyComponent