Package | Description |
---|---|
org.apache.hadoop.hbase.types |
This package provides the definition and implementation of HBase's
extensible data type API.
|
org.apache.hadoop.hbase.util |
Modifier and Type | Field and Description |
---|---|
protected PositionedByteRange |
StructIterator.src |
Modifier and Type | Method and Description |
---|---|
Long |
OrderedInt64.decode(PositionedByteRange src) |
byte[] |
OrderedBlobVar.decode(PositionedByteRange src) |
Double |
OrderedFloat64.decode(PositionedByteRange src) |
Double |
RawDouble.decode(PositionedByteRange src) |
Object[] |
Struct.decode(PositionedByteRange src) |
String |
OrderedString.decode(PositionedByteRange src) |
T |
TerminatedWrapper.decode(PositionedByteRange src) |
Long |
RawLong.decode(PositionedByteRange src) |
Integer |
RawInteger.decode(PositionedByteRange src) |
Byte |
RawByte.decode(PositionedByteRange src) |
Byte |
OrderedInt8.decode(PositionedByteRange src) |
T |
DataType.decode(PositionedByteRange src)
Read an instance of
T from the buffer src . |
Float |
RawFloat.decode(PositionedByteRange src) |
Float |
OrderedFloat32.decode(PositionedByteRange src) |
Integer |
OrderedInt32.decode(PositionedByteRange src) |
byte[] |
RawBytes.decode(PositionedByteRange src) |
String |
RawString.decode(PositionedByteRange src) |
Number |
OrderedNumeric.decode(PositionedByteRange src) |
T |
FixedLengthWrapper.decode(PositionedByteRange src) |
Short |
OrderedInt16.decode(PositionedByteRange src) |
Short |
RawShort.decode(PositionedByteRange src) |
byte[] |
OrderedBlob.decode(PositionedByteRange src) |
Object |
Struct.decode(PositionedByteRange src,
int index)
Read the field at
index . |
byte[] |
RawBytesTerminated.decode(PositionedByteRange src,
int length)
Read a
byte[] from the buffer src . |
byte[] |
RawBytes.decode(PositionedByteRange src,
int length)
Read a
byte[] from the buffer src . |
byte[] |
RawBytesFixedLength.decode(PositionedByteRange src,
int length)
Read a
byte[] from the buffer src . |
A |
Union2.decodeA(PositionedByteRange src)
Read an instance of the first type parameter from buffer
src . |
B |
Union2.decodeB(PositionedByteRange src)
Read an instance of the second type parameter from buffer
src . |
byte |
OrderedInt8.decodeByte(PositionedByteRange src)
Read a
byte value from the buffer src . |
C |
Union3.decodeC(PositionedByteRange src)
Read an instance of the third type parameter from buffer
src . |
D |
Union4.decodeD(PositionedByteRange src)
Read an instance of the fourth type parameter from buffer
src . |
double |
OrderedFloat64.decodeDouble(PositionedByteRange src)
Read a
double value from the buffer src . |
double |
OrderedNumeric.decodeDouble(PositionedByteRange src)
Read a
double value from the buffer src . |
float |
OrderedFloat32.decodeFloat(PositionedByteRange dst)
Read a
float value from the buffer dst . |
int |
OrderedInt32.decodeInt(PositionedByteRange src)
Read an
int value from the buffer src . |
long |
OrderedInt64.decodeLong(PositionedByteRange src)
Read a
long value from the buffer src . |
long |
OrderedNumeric.decodeLong(PositionedByteRange src)
Read a
long value from the buffer src . |
short |
OrderedInt16.decodeShort(PositionedByteRange src)
Read a
short value from the buffer src . |
int |
RawByte.encode(PositionedByteRange dst,
Byte val) |
int |
OrderedInt8.encode(PositionedByteRange dst,
Byte val) |
int |
OrderedBlobVar.encode(PositionedByteRange dst,
byte[] val) |
int |
RawBytes.encode(PositionedByteRange dst,
byte[] val) |
int |
OrderedBlob.encode(PositionedByteRange dst,
byte[] val) |
int |
OrderedBlobVar.encode(PositionedByteRange dst,
byte[] val,
int voff,
int vlen)
Write a subset of
val to buff . |
int |
RawBytesTerminated.encode(PositionedByteRange dst,
byte[] val,
int voff,
int vlen)
Write
val into dst , respecting offset and
length . |
int |
RawBytes.encode(PositionedByteRange dst,
byte[] val,
int voff,
int vlen)
Write
val into dst , respecting voff and vlen . |
int |
RawBytesFixedLength.encode(PositionedByteRange dst,
byte[] val,
int voff,
int vlen)
Write
val into buff , respecting offset and
length . |
int |
OrderedBlob.encode(PositionedByteRange dst,
byte[] val,
int voff,
int vlen)
Write a subset of
val to dst . |
int |
OrderedFloat64.encode(PositionedByteRange dst,
Double val) |
int |
RawDouble.encode(PositionedByteRange dst,
Double val) |
int |
RawFloat.encode(PositionedByteRange dst,
Float val) |
int |
OrderedFloat32.encode(PositionedByteRange dst,
Float val) |
int |
RawInteger.encode(PositionedByteRange dst,
Integer val) |
int |
OrderedInt32.encode(PositionedByteRange dst,
Integer val) |
int |
OrderedInt64.encode(PositionedByteRange dst,
Long val) |
int |
RawLong.encode(PositionedByteRange dst,
Long val) |
int |
OrderedNumeric.encode(PositionedByteRange dst,
Number val) |
int |
Struct.encode(PositionedByteRange dst,
Object[] val) |
int |
OrderedInt16.encode(PositionedByteRange dst,
Short val) |
int |
RawShort.encode(PositionedByteRange dst,
Short val) |
int |
OrderedString.encode(PositionedByteRange dst,
String val) |
int |
RawString.encode(PositionedByteRange dst,
String val) |
int |
TerminatedWrapper.encode(PositionedByteRange dst,
T val)
Write instance
val into buffer dst . |
int |
DataType.encode(PositionedByteRange dst,
T val)
Write instance
val into buffer dst . |
int |
FixedLengthWrapper.encode(PositionedByteRange dst,
T val) |
int |
OrderedInt8.encodeByte(PositionedByteRange dst,
byte val)
Write instance
val into buffer dst . |
int |
OrderedFloat64.encodeDouble(PositionedByteRange dst,
double val)
Write instance
val into buffer dst . |
int |
OrderedNumeric.encodeDouble(PositionedByteRange dst,
double val)
Write instance
val into buffer dst . |
int |
OrderedFloat32.encodeFloat(PositionedByteRange dst,
float val)
Write instance
val into buffer buff . |
int |
OrderedInt32.encodeInt(PositionedByteRange dst,
int val)
Write instance
val into buffer dst . |
int |
OrderedInt64.encodeLong(PositionedByteRange dst,
long val)
Write instance
val into buffer dst . |
int |
OrderedNumeric.encodeLong(PositionedByteRange dst,
long val)
Write instance
val into buffer dst . |
int |
OrderedInt16.encodeShort(PositionedByteRange dst,
short val)
Write instance
val into buffer dst . |
static com.google.protobuf.CodedInputStream |
PBType.inputStreamFromByteRange(PositionedByteRange src)
Create a
CodedInputStream from a PositionedByteRange . |
StructIterator |
Struct.iterator(PositionedByteRange src)
Retrieve an
Iterator over the values encoded in src . |
static com.google.protobuf.CodedOutputStream |
PBType.outputStreamFromByteRange(PositionedByteRange dst)
Create a
CodedOutputStream from a PositionedByteRange . |
int |
RawDouble.skip(PositionedByteRange src) |
int |
Struct.skip(PositionedByteRange src) |
int |
TerminatedWrapper.skip(PositionedByteRange src)
Skip
src 's position forward over one encoded value. |
int |
RawLong.skip(PositionedByteRange src) |
int |
RawInteger.skip(PositionedByteRange src) |
int |
RawByte.skip(PositionedByteRange src) |
int |
DataType.skip(PositionedByteRange src)
Skip
src 's position forward over one encoded value. |
int |
RawFloat.skip(PositionedByteRange src) |
int |
RawBytes.skip(PositionedByteRange src) |
int |
RawString.skip(PositionedByteRange src) |
int |
FixedLengthWrapper.skip(PositionedByteRange src) |
int |
RawShort.skip(PositionedByteRange src) |
int |
OrderedBytesBase.skip(PositionedByteRange src) |
protected int |
TerminatedWrapper.terminatorPosition(PositionedByteRange src)
Return the position at which
term begins within src ,
or -1 if term is not found. |
Constructor and Description |
---|
StructIterator(PositionedByteRange src,
DataType[] types)
Construct
StructIterator over the values encoded in src
using the specified types definition. |
Modifier and Type | Class and Description |
---|---|
class |
org.apache.hadoop.hbase.util.AbstractPositionedByteRange
Extends the basic
SimpleByteRange implementation with position
support. |
class |
SimplePositionedByteRange
Extends the basic
SimpleMutableByteRange implementation with position
support and it is a readonly version. |
class |
SimplePositionedMutableByteRange
Extends the basic
AbstractPositionedByteRange implementation with
position support and it is a mutable version. |
Modifier and Type | Method and Description |
---|---|
PositionedByteRange |
SimplePositionedByteRange.deepCopy() |
PositionedByteRange |
PositionedByteRange.deepCopy() |
PositionedByteRange |
SimplePositionedMutableByteRange.deepCopy() |
PositionedByteRange |
PositionedByteRange.get(byte[] dst)
Fill
dst with bytes from the range, starting from position . |
PositionedByteRange |
PositionedByteRange.get(byte[] dst,
int offset,
int length)
Fill
dst with bytes from the range, starting from the current
position . |
PositionedByteRange |
SimplePositionedByteRange.get(int index,
byte[] dst) |
PositionedByteRange |
PositionedByteRange.get(int index,
byte[] dst) |
PositionedByteRange |
SimplePositionedMutableByteRange.get(int index,
byte[] dst) |
PositionedByteRange |
SimplePositionedByteRange.get(int index,
byte[] dst,
int offset,
int length) |
PositionedByteRange |
PositionedByteRange.get(int index,
byte[] dst,
int offset,
int length) |
PositionedByteRange |
SimplePositionedMutableByteRange.get(int index,
byte[] dst,
int offset,
int length) |
PositionedByteRange |
SimplePositionedByteRange.put(byte val) |
PositionedByteRange |
PositionedByteRange.put(byte val)
Store
val at the next position in this range. |
PositionedByteRange |
SimplePositionedMutableByteRange.put(byte val) |
PositionedByteRange |
SimplePositionedByteRange.put(byte[] val) |
PositionedByteRange |
PositionedByteRange.put(byte[] val)
Store the content of
val in this range, starting at the next position. |
PositionedByteRange |
SimplePositionedMutableByteRange.put(byte[] val) |
PositionedByteRange |
SimplePositionedByteRange.put(byte[] val,
int offset,
int length) |
PositionedByteRange |
PositionedByteRange.put(byte[] val,
int offset,
int length)
Store
length bytes from val into this range. |
PositionedByteRange |
SimplePositionedMutableByteRange.put(byte[] val,
int offset,
int length) |
PositionedByteRange |
SimplePositionedByteRange.put(int index,
byte val) |
PositionedByteRange |
PositionedByteRange.put(int index,
byte val) |
PositionedByteRange |
SimplePositionedMutableByteRange.put(int index,
byte val) |
PositionedByteRange |
SimplePositionedByteRange.put(int index,
byte[] val) |
PositionedByteRange |
PositionedByteRange.put(int index,
byte[] val) |
PositionedByteRange |
SimplePositionedMutableByteRange.put(int index,
byte[] val) |
PositionedByteRange |
SimplePositionedByteRange.put(int index,
byte[] val,
int offset,
int length) |
PositionedByteRange |
PositionedByteRange.put(int index,
byte[] val,
int offset,
int length) |
PositionedByteRange |
SimplePositionedMutableByteRange.put(int index,
byte[] val,
int offset,
int length) |
PositionedByteRange |
SimplePositionedByteRange.putInt(int val) |
PositionedByteRange |
PositionedByteRange.putInt(int val)
Store int
val at the next position in this range. |
PositionedByteRange |
SimplePositionedMutableByteRange.putInt(int val) |
PositionedByteRange |
SimplePositionedByteRange.putInt(int index,
int val) |
PositionedByteRange |
PositionedByteRange.putInt(int index,
int val) |
PositionedByteRange |
SimplePositionedMutableByteRange.putInt(int index,
int val) |
PositionedByteRange |
SimplePositionedByteRange.putLong(int index,
long val) |
PositionedByteRange |
PositionedByteRange.putLong(int index,
long val) |
PositionedByteRange |
SimplePositionedMutableByteRange.putLong(int index,
long val) |
PositionedByteRange |
SimplePositionedByteRange.putLong(long val) |
PositionedByteRange |
PositionedByteRange.putLong(long val)
Store long
val at the next position in this range. |
PositionedByteRange |
SimplePositionedMutableByteRange.putLong(long val) |
PositionedByteRange |
SimplePositionedByteRange.putShort(int index,
short val) |
PositionedByteRange |
PositionedByteRange.putShort(int index,
short val) |
PositionedByteRange |
SimplePositionedMutableByteRange.putShort(int index,
short val) |
PositionedByteRange |
SimplePositionedByteRange.putShort(short val) |
PositionedByteRange |
PositionedByteRange.putShort(short val)
Store short
val at the next position in this range. |
PositionedByteRange |
SimplePositionedMutableByteRange.putShort(short val) |
PositionedByteRange |
SimplePositionedByteRange.set(byte[] bytes) |
PositionedByteRange |
PositionedByteRange.set(byte[] bytes) |
PositionedByteRange |
SimplePositionedMutableByteRange.set(byte[] bytes) |
PositionedByteRange |
SimplePositionedByteRange.set(byte[] bytes,
int offset,
int length) |
PositionedByteRange |
PositionedByteRange.set(byte[] bytes,
int offset,
int length) |
PositionedByteRange |
SimplePositionedMutableByteRange.set(byte[] bytes,
int offset,
int length) |
PositionedByteRange |
SimplePositionedByteRange.set(int capacity) |
PositionedByteRange |
PositionedByteRange.set(int capacity) |
PositionedByteRange |
SimplePositionedMutableByteRange.set(int capacity) |
PositionedByteRange |
PositionedByteRange.setLength(int length) |
PositionedByteRange |
SimplePositionedMutableByteRange.setLength(int length)
Update the length of this range.
|
PositionedByteRange |
SimplePositionedByteRange.setLimit(int limit) |
PositionedByteRange |
PositionedByteRange.setLimit(int limit)
Limits the byte range upto a specified value.
|
PositionedByteRange |
PositionedByteRange.setOffset(int offset) |
PositionedByteRange |
SimplePositionedMutableByteRange.setOffset(int offset)
Update the beginning of this range.
|
PositionedByteRange |
PositionedByteRange.setPosition(int position)
Update the
position index. |
PositionedByteRange |
SimplePositionedByteRange.shallowCopy() |
PositionedByteRange |
PositionedByteRange.shallowCopy() |
PositionedByteRange |
SimplePositionedMutableByteRange.shallowCopy() |
PositionedByteRange |
SimplePositionedByteRange.shallowCopySubRange(int innerOffset,
int copyLength) |
PositionedByteRange |
PositionedByteRange.shallowCopySubRange(int innerOffset,
int copyLength) |
PositionedByteRange |
SimplePositionedMutableByteRange.shallowCopySubRange(int innerOffset,
int copyLength) |
PositionedByteRange |
SimplePositionedByteRange.unset() |
PositionedByteRange |
PositionedByteRange.unset() |
PositionedByteRange |
SimplePositionedMutableByteRange.unset() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
OrderedBytes.decodeBlobCopy(PositionedByteRange src)
Decode a Blob value, byte-for-byte copy.
|
static byte[] |
OrderedBytes.decodeBlobVar(PositionedByteRange src)
Decode a blob value that was encoded using BlobVar encoding.
|
static float |
OrderedBytes.decodeFloat32(PositionedByteRange src)
Decode a 32-bit floating point value using the fixed-length encoding.
|
static double |
OrderedBytes.decodeFloat64(PositionedByteRange src)
Decode a 64-bit floating point value using the fixed-length encoding.
|
static short |
OrderedBytes.decodeInt16(PositionedByteRange src)
Decode an
int16 value. |
static int |
OrderedBytes.decodeInt32(PositionedByteRange src)
Decode an
int32 value. |
static long |
OrderedBytes.decodeInt64(PositionedByteRange src)
Decode an
int64 value. |
static byte |
OrderedBytes.decodeInt8(PositionedByteRange src)
Decode an
int8 value. |
static BigDecimal |
OrderedBytes.decodeNumericAsBigDecimal(PositionedByteRange src)
Decode a
BigDecimal value from the variable-length encoding. |
static double |
OrderedBytes.decodeNumericAsDouble(PositionedByteRange src)
Decode a primitive
double value from the Numeric encoding. |
static long |
OrderedBytes.decodeNumericAsLong(PositionedByteRange src)
Decode a primitive
long value from the Numeric encoding. |
static String |
OrderedBytes.decodeString(PositionedByteRange src)
Decode a String value.
|
static int |
OrderedBytes.encodeBlobCopy(PositionedByteRange dst,
byte[] val,
int voff,
int vlen,
Order ord)
Encode a Blob value as a byte-for-byte copy.
|
static int |
OrderedBytes.encodeBlobCopy(PositionedByteRange dst,
byte[] val,
Order ord)
Encode a Blob value as a byte-for-byte copy.
|
static int |
OrderedBytes.encodeBlobVar(PositionedByteRange dst,
byte[] val,
int voff,
int vlen,
Order ord)
Encode a Blob value using a modified varint encoding scheme.
|
static int |
OrderedBytes.encodeBlobVar(PositionedByteRange dst,
byte[] val,
Order ord)
Encode a blob value using a modified varint encoding scheme.
|
static int |
OrderedBytes.encodeFloat32(PositionedByteRange dst,
float val,
Order ord)
Encode a 32-bit floating point value using the fixed-length encoding.
|
static int |
OrderedBytes.encodeFloat64(PositionedByteRange dst,
double val,
Order ord)
Encode a 64-bit floating point value using the fixed-length encoding.
|
static int |
OrderedBytes.encodeInt16(PositionedByteRange dst,
short val,
Order ord)
Encode an
int16 value using the fixed-length encoding. |
static int |
OrderedBytes.encodeInt32(PositionedByteRange dst,
int val,
Order ord)
Encode an
int32 value using the fixed-length encoding. |
static int |
OrderedBytes.encodeInt64(PositionedByteRange dst,
long val,
Order ord)
Encode an
int64 value using the fixed-length encoding. |
static int |
OrderedBytes.encodeInt8(PositionedByteRange dst,
byte val,
Order ord)
Encode an
int8 value using the fixed-length encoding. |
static int |
OrderedBytes.encodeNull(PositionedByteRange dst,
Order ord)
Encode a null value.
|
static int |
OrderedBytes.encodeNumeric(PositionedByteRange dst,
BigDecimal val,
Order ord)
Encode a numerical value using the variable-length encoding.
|
static int |
OrderedBytes.encodeNumeric(PositionedByteRange dst,
double val,
Order ord)
Encode a numerical value using the variable-length encoding.
|
static int |
OrderedBytes.encodeNumeric(PositionedByteRange dst,
long val,
Order ord)
Encode a numerical value using the variable-length encoding.
|
static int |
OrderedBytes.encodeString(PositionedByteRange dst,
String val,
Order ord)
Encode a String value.
|
static boolean |
OrderedBytes.isBlobCopy(PositionedByteRange src)
Return true when the next encoded value in
src uses BlobCopy
encoding, false otherwise. |
static boolean |
OrderedBytes.isBlobVar(PositionedByteRange src)
Return true when the next encoded value in
src uses BlobVar
encoding, false otherwise. |
static boolean |
OrderedBytes.isEncodedValue(PositionedByteRange src)
Returns true when
src appears to be positioned an encoded value,
false otherwise. |
static boolean |
OrderedBytes.isFixedFloat32(PositionedByteRange src)
Return true when the next encoded value in
src uses fixed-width
Float32 encoding, false otherwise. |
static boolean |
OrderedBytes.isFixedFloat64(PositionedByteRange src)
Return true when the next encoded value in
src uses fixed-width
Float64 encoding, false otherwise. |
static boolean |
OrderedBytes.isFixedInt16(PositionedByteRange src)
Return true when the next encoded value in
src uses fixed-width
Int16 encoding, false otherwise. |
static boolean |
OrderedBytes.isFixedInt32(PositionedByteRange src)
Return true when the next encoded value in
src uses fixed-width
Int32 encoding, false otherwise. |
static boolean |
OrderedBytes.isFixedInt64(PositionedByteRange src)
Return true when the next encoded value in
src uses fixed-width
Int64 encoding, false otherwise. |
static boolean |
OrderedBytes.isFixedInt8(PositionedByteRange src)
Return true when the next encoded value in
src uses fixed-width
Int8 encoding, false otherwise. |
static boolean |
OrderedBytes.isNull(PositionedByteRange src)
Return true when the next encoded value in
src is null, false
otherwise. |
static boolean |
OrderedBytes.isNumeric(PositionedByteRange src)
Return true when the next encoded value in
src uses Numeric
encoding, false otherwise. |
static boolean |
OrderedBytes.isNumericInfinite(PositionedByteRange src)
Return true when the next encoded value in
src uses Numeric
encoding and is Infinite , false otherwise. |
static boolean |
OrderedBytes.isNumericNaN(PositionedByteRange src)
Return true when the next encoded value in
src uses Numeric
encoding and is NaN , false otherwise. |
static boolean |
OrderedBytes.isNumericZero(PositionedByteRange src)
Return true when the next encoded value in
src uses Numeric
encoding and is 0 , false otherwise. |
static boolean |
OrderedBytes.isText(PositionedByteRange src)
Return true when the next encoded value in
src uses Text encoding,
false otherwise. |
static int |
OrderedBytes.length(PositionedByteRange buff)
Return the number of encoded entries remaining in
buff . |
static int |
OrderedBytes.skip(PositionedByteRange src)
Skip
buff 's position forward over one encoded value. |
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.