Uses of Interface
org.apache.hadoop.hbase.util.PositionedByteRange
Package
Description
This package provides the definition and implementation of HBase's
extensible data type API.
-
Uses of PositionedByteRange in org.apache.hadoop.hbase.types
Modifier and TypeMethodDescriptionDataType.decode
(PositionedByteRange src) Read an instance ofT
from the buffersrc
.FixedLengthWrapper.decode
(PositionedByteRange src) byte[]
OrderedBlob.decode
(PositionedByteRange src) byte[]
OrderedBlobVar.decode
(PositionedByteRange src) OrderedFloat32.decode
(PositionedByteRange src) OrderedFloat64.decode
(PositionedByteRange src) OrderedInt16.decode
(PositionedByteRange src) OrderedInt32.decode
(PositionedByteRange src) OrderedInt64.decode
(PositionedByteRange src) OrderedInt8.decode
(PositionedByteRange src) OrderedNumeric.decode
(PositionedByteRange src) OrderedString.decode
(PositionedByteRange src) org.apache.hadoop.hbase.example.protobuf.generated.CellMessage.Cell
PBCell.decode
(PositionedByteRange src) RawByte.decode
(PositionedByteRange src) byte[]
RawBytes.decode
(PositionedByteRange src) byte[]
RawBytes.decode
(PositionedByteRange src, int length) Read abyte[]
from the buffersrc
.byte[]
RawBytesFixedLength.decode
(PositionedByteRange src, int length) Read abyte[]
from the buffersrc
.byte[]
RawBytesTerminated.decode
(PositionedByteRange src, int length) Read abyte[]
from the buffersrc
.RawDouble.decode
(PositionedByteRange src) RawFloat.decode
(PositionedByteRange src) RawInteger.decode
(PositionedByteRange src) RawLong.decode
(PositionedByteRange src) RawShort.decode
(PositionedByteRange src) RawString.decode
(PositionedByteRange src) Object[]
Struct.decode
(PositionedByteRange src) Struct.decode
(PositionedByteRange src, int index) Read the field atindex
.TerminatedWrapper.decode
(PositionedByteRange src) Union2.decodeA
(PositionedByteRange src) Read an instance of the first type parameter from buffersrc
.Union2.decodeB
(PositionedByteRange src) Read an instance of the second type parameter from buffersrc
.byte
OrderedInt8.decodeByte
(PositionedByteRange src) Read abyte
value from the buffersrc
.Union3.decodeC
(PositionedByteRange src) Read an instance of the third type parameter from buffersrc
.Union4.decodeD
(PositionedByteRange src) Read an instance of the fourth type parameter from buffersrc
.double
OrderedFloat64.decodeDouble
(PositionedByteRange src) Read adouble
value from the buffersrc
.double
OrderedNumeric.decodeDouble
(PositionedByteRange src) Read adouble
value from the buffersrc
.float
OrderedFloat32.decodeFloat
(PositionedByteRange dst) Read afloat
value from the bufferdst
.int
OrderedInt32.decodeInt
(PositionedByteRange src) Read anint
value from the buffersrc
.long
OrderedInt64.decodeLong
(PositionedByteRange src) Read along
value from the buffersrc
.long
OrderedNumeric.decodeLong
(PositionedByteRange src) Read along
value from the buffersrc
.short
OrderedInt16.decodeShort
(PositionedByteRange src) Read ashort
value from the buffersrc
.int
DataType.encode
(PositionedByteRange dst, T val) Write instanceval
into bufferdst
.int
FixedLengthWrapper.encode
(PositionedByteRange dst, T val) int
OrderedBlob.encode
(PositionedByteRange dst, byte[] val) int
OrderedBlob.encode
(PositionedByteRange dst, byte[] val, int voff, int vlen) Write a subset ofval
todst
.int
OrderedBlobVar.encode
(PositionedByteRange dst, byte[] val) int
OrderedBlobVar.encode
(PositionedByteRange dst, byte[] val, int voff, int vlen) Write a subset ofval
todst
.int
OrderedFloat32.encode
(PositionedByteRange dst, Float val) int
OrderedFloat64.encode
(PositionedByteRange dst, Double val) int
OrderedInt16.encode
(PositionedByteRange dst, Short val) int
OrderedInt32.encode
(PositionedByteRange dst, Integer val) int
OrderedInt64.encode
(PositionedByteRange dst, Long val) int
OrderedInt8.encode
(PositionedByteRange dst, Byte val) int
OrderedNumeric.encode
(PositionedByteRange dst, Number val) int
OrderedString.encode
(PositionedByteRange dst, String val) int
PBCell.encode
(PositionedByteRange dst, org.apache.hadoop.hbase.example.protobuf.generated.CellMessage.Cell val) int
RawByte.encode
(PositionedByteRange dst, Byte val) int
RawBytes.encode
(PositionedByteRange dst, byte[] val) int
RawBytes.encode
(PositionedByteRange dst, byte[] val, int voff, int vlen) Writeval
intodst
, respectingvoff
andvlen
.int
RawBytesFixedLength.encode
(PositionedByteRange dst, byte[] val, int voff, int vlen) Writeval
intobuff
, respectingoffset
andlength
.int
RawBytesTerminated.encode
(PositionedByteRange dst, byte[] val, int voff, int vlen) Writeval
intodst
, respectingoffset
andlength
.int
RawDouble.encode
(PositionedByteRange dst, Double val) int
RawFloat.encode
(PositionedByteRange dst, Float val) int
RawInteger.encode
(PositionedByteRange dst, Integer val) int
RawLong.encode
(PositionedByteRange dst, Long val) int
RawShort.encode
(PositionedByteRange dst, Short val) int
RawString.encode
(PositionedByteRange dst, String val) int
Struct.encode
(PositionedByteRange dst, Object[] val) int
TerminatedWrapper.encode
(PositionedByteRange dst, T val) Write instanceval
into bufferdst
.int
OrderedInt8.encodeByte
(PositionedByteRange dst, byte val) Write instanceval
into bufferdst
.int
OrderedFloat64.encodeDouble
(PositionedByteRange dst, double val) Write instanceval
into bufferdst
.int
OrderedNumeric.encodeDouble
(PositionedByteRange dst, double val) Write instanceval
into bufferdst
.int
OrderedFloat32.encodeFloat
(PositionedByteRange dst, float val) Write instanceval
into bufferbuff
.int
OrderedInt32.encodeInt
(PositionedByteRange dst, int val) Write instanceval
into bufferdst
.int
OrderedInt64.encodeLong
(PositionedByteRange dst, long val) Write instanceval
into bufferdst
.int
OrderedNumeric.encodeLong
(PositionedByteRange dst, long val) Write instanceval
into bufferdst
.int
OrderedInt16.encodeShort
(PositionedByteRange dst, short val) Write instanceval
into bufferdst
.static org.apache.hbase.thirdparty.com.google.protobuf.CodedInputStream
PBType.inputStreamFromByteRange
(PositionedByteRange src) Create aCodedInputStream
from aPositionedByteRange
.Struct.iterator
(PositionedByteRange src) Retrieve anIterator
over the values encoded insrc
.static org.apache.hbase.thirdparty.com.google.protobuf.CodedOutputStream
PBType.outputStreamFromByteRange
(PositionedByteRange dst) Create aCodedOutputStream
from aPositionedByteRange
.int
DataType.skip
(PositionedByteRange src) Skipsrc
's position forward over one encoded value.int
FixedLengthWrapper.skip
(PositionedByteRange src) int
OrderedBytesBase.skip
(PositionedByteRange src) int
PBCell.skip
(PositionedByteRange src) int
RawByte.skip
(PositionedByteRange src) int
RawBytes.skip
(PositionedByteRange src) int
RawDouble.skip
(PositionedByteRange src) int
RawFloat.skip
(PositionedByteRange src) int
RawInteger.skip
(PositionedByteRange src) int
RawLong.skip
(PositionedByteRange src) int
RawShort.skip
(PositionedByteRange src) int
RawString.skip
(PositionedByteRange src) int
Struct.skip
(PositionedByteRange src) int
TerminatedWrapper.skip
(PositionedByteRange src) Skipsrc
's position forward over one encoded value.protected int
TerminatedWrapper.terminatorPosition
(PositionedByteRange src) Return the position at whichterm
begins withinsrc
, or-1
ifterm
is not found.ModifierConstructorDescriptionStructIterator
(PositionedByteRange src, DataType[] types) ConstructStructIterator
over the values encoded insrc
using the specifiedtypes
definition. -
Uses of PositionedByteRange in org.apache.hadoop.hbase.util
Modifier and TypeClassDescriptionclass
Extends the basicSimpleByteRange
implementation with position support.class
Extends the basicSimpleMutableByteRange
implementation with position support and it is a readonly version.class
Extends the basicAbstractPositionedByteRange
implementation with position support and it is a mutable version.Modifier and TypeMethodDescriptionPositionedByteRange.deepCopy()
SimplePositionedByteRange.deepCopy()
SimplePositionedMutableByteRange.deepCopy()
AbstractPositionedByteRange.get
(byte[] dst) AbstractPositionedByteRange.get
(byte[] dst, int offset, int length) AbstractPositionedByteRange.get
(int index, byte[] dst) AbstractPositionedByteRange.get
(int index, byte[] dst, int offset, int length) PositionedByteRange.get
(byte[] dst) Filldst
with bytes from the range, starting fromposition
.PositionedByteRange.get
(byte[] dst, int offset, int length) Filldst
with bytes from the range, starting from the currentposition
.PositionedByteRange.get
(int index, byte[] dst) PositionedByteRange.get
(int index, byte[] dst, int offset, int length) SimplePositionedByteRange.get
(int index, byte[] dst) SimplePositionedByteRange.get
(int index, byte[] dst, int offset, int length) SimplePositionedMutableByteRange.get
(int index, byte[] dst) SimplePositionedMutableByteRange.get
(int index, byte[] dst, int offset, int length) PositionedByteRange.put
(byte val) Storeval
at the next position in this range.PositionedByteRange.put
(byte[] val) Store the content ofval
in this range, starting at the next position.PositionedByteRange.put
(byte[] val, int offset, int length) Storelength
bytes fromval
into this range.PositionedByteRange.put
(int index, byte val) PositionedByteRange.put
(int index, byte[] val) PositionedByteRange.put
(int index, byte[] val, int offset, int length) SimplePositionedByteRange.put
(byte val) SimplePositionedByteRange.put
(byte[] val) SimplePositionedByteRange.put
(byte[] val, int offset, int length) SimplePositionedByteRange.put
(int index, byte val) SimplePositionedByteRange.put
(int index, byte[] val) SimplePositionedByteRange.put
(int index, byte[] val, int offset, int length) SimplePositionedMutableByteRange.put
(byte val) SimplePositionedMutableByteRange.put
(byte[] val) SimplePositionedMutableByteRange.put
(byte[] val, int offset, int length) SimplePositionedMutableByteRange.put
(int index, byte val) SimplePositionedMutableByteRange.put
(int index, byte[] val) SimplePositionedMutableByteRange.put
(int index, byte[] val, int offset, int length) PositionedByteRange.putInt
(int val) Store intval
at the next position in this range.PositionedByteRange.putInt
(int index, int val) SimplePositionedByteRange.putInt
(int val) SimplePositionedByteRange.putInt
(int index, int val) SimplePositionedMutableByteRange.putInt
(int val) SimplePositionedMutableByteRange.putInt
(int index, int val) PositionedByteRange.putLong
(int index, long val) PositionedByteRange.putLong
(long val) Store longval
at the next position in this range.SimplePositionedByteRange.putLong
(int index, long val) SimplePositionedByteRange.putLong
(long val) SimplePositionedMutableByteRange.putLong
(int index, long val) SimplePositionedMutableByteRange.putLong
(long val) PositionedByteRange.putShort
(int index, short val) PositionedByteRange.putShort
(short val) Store shortval
at the next position in this range.SimplePositionedByteRange.putShort
(int index, short val) SimplePositionedByteRange.putShort
(short val) SimplePositionedMutableByteRange.putShort
(int index, short val) SimplePositionedMutableByteRange.putShort
(short val) AbstractPositionedByteRange.set
(byte[] bytes) AbstractPositionedByteRange.set
(byte[] bytes, int offset, int length) AbstractPositionedByteRange.set
(int capacity) PositionedByteRange.set
(byte[] bytes) PositionedByteRange.set
(byte[] bytes, int offset, int length) PositionedByteRange.set
(int capacity) SimplePositionedByteRange.set
(byte[] bytes) SimplePositionedByteRange.set
(byte[] bytes, int offset, int length) SimplePositionedByteRange.set
(int capacity) SimplePositionedMutableByteRange.set
(byte[] bytes) SimplePositionedMutableByteRange.set
(byte[] bytes, int offset, int length) SimplePositionedMutableByteRange.set
(int capacity) AbstractPositionedByteRange.setLength
(int length) Update the length of this range.PositionedByteRange.setLength
(int length) SimplePositionedMutableByteRange.setLength
(int length) Update the length of this range.AbstractPositionedByteRange.setLimit
(int limit) PositionedByteRange.setLimit
(int limit) Limits the byte range upto a specified value.SimplePositionedByteRange.setLimit
(int limit) AbstractPositionedByteRange.setOffset
(int offset) Update the beginning of this range.PositionedByteRange.setOffset
(int offset) SimplePositionedMutableByteRange.setOffset
(int offset) Update the beginning of this range.AbstractPositionedByteRange.setPosition
(int position) PositionedByteRange.setPosition
(int position) Update theposition
index.PositionedByteRange.shallowCopy()
SimplePositionedByteRange.shallowCopy()
SimplePositionedMutableByteRange.shallowCopy()
PositionedByteRange.shallowCopySubRange
(int innerOffset, int copyLength) SimplePositionedByteRange.shallowCopySubRange
(int innerOffset, int copyLength) SimplePositionedMutableByteRange.shallowCopySubRange
(int innerOffset, int copyLength) PositionedByteRange.unset()
SimplePositionedByteRange.unset()
SimplePositionedMutableByteRange.unset()
Modifier and TypeMethodDescriptionstatic 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 anint16
value.static int
OrderedBytes.decodeInt32
(PositionedByteRange src) Decode anint32
value.static long
OrderedBytes.decodeInt64
(PositionedByteRange src) Decode anint64
value.static byte
OrderedBytes.decodeInt8
(PositionedByteRange src) Decode anint8
value.static BigDecimal
OrderedBytes.decodeNumericAsBigDecimal
(PositionedByteRange src) Decode aBigDecimal
value from the variable-length encoding.static double
OrderedBytes.decodeNumericAsDouble
(PositionedByteRange src) Decode a primitivedouble
value from the Numeric encoding.static long
OrderedBytes.decodeNumericAsLong
(PositionedByteRange src) Decode a primitivelong
value from the Numeric encoding.private static BigDecimal
OrderedBytes.decodeNumericValue
(PositionedByteRange src) Decode aBigDecimal
fromsrc
.private static BigDecimal
OrderedBytes.decodeSignificand
(PositionedByteRange src, int e, boolean comp) Read significand digits fromsrc
according to the magnitude ofe
.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 anint16
value using the fixed-length encoding.static int
OrderedBytes.encodeInt32
(PositionedByteRange dst, int val, Order ord) Encode anint32
value using the fixed-length encoding.static int
OrderedBytes.encodeInt64
(PositionedByteRange dst, long val, Order ord) Encode anint64
value using the fixed-length encoding.static int
OrderedBytes.encodeInt8
(PositionedByteRange dst, byte val, Order ord) Encode anint8
value using the fixed-length encoding.static int
OrderedBytes.encodeNull
(PositionedByteRange dst, Order ord) Encode a null value.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.encodeNumeric
(PositionedByteRange dst, BigDecimal val, Order ord) Encode a numerical value using the variable-length encoding.private static int
OrderedBytes.encodeNumericLarge
(PositionedByteRange dst, BigDecimal val) Encode the large magnitude floating point numberval
using the key encoding.private static int
OrderedBytes.encodeNumericSmall
(PositionedByteRange dst, BigDecimal val) Encode the small magnitude floating point numberval
using the key encoding.static int
OrderedBytes.encodeString
(PositionedByteRange dst, String val, Order ord) Encode a String value.private static void
OrderedBytes.encodeToCentimal
(PositionedByteRange dst, BigDecimal val) Encode a value val in [0.01, 1.0) into Centimals.(package private) static long
OrderedBytes.getVaruint64
(PositionedByteRange src, boolean comp) Decode a sequence of bytes insrc
as a varuint64.static boolean
OrderedBytes.isBlobCopy
(PositionedByteRange src) Return true when the next encoded value insrc
uses BlobCopy encoding, false otherwise.static boolean
OrderedBytes.isBlobVar
(PositionedByteRange src) Return true when the next encoded value insrc
uses BlobVar encoding, false otherwise.static boolean
OrderedBytes.isEncodedValue
(PositionedByteRange src) Returns true whensrc
appears to be positioned an encoded value, false otherwise.static boolean
OrderedBytes.isFixedFloat32
(PositionedByteRange src) Return true when the next encoded value insrc
uses fixed-width Float32 encoding, false otherwise.static boolean
OrderedBytes.isFixedFloat64
(PositionedByteRange src) Return true when the next encoded value insrc
uses fixed-width Float64 encoding, false otherwise.static boolean
OrderedBytes.isFixedInt16
(PositionedByteRange src) Return true when the next encoded value insrc
uses fixed-width Int16 encoding, false otherwise.static boolean
OrderedBytes.isFixedInt32
(PositionedByteRange src) Return true when the next encoded value insrc
uses fixed-width Int32 encoding, false otherwise.static boolean
OrderedBytes.isFixedInt64
(PositionedByteRange src) Return true when the next encoded value insrc
uses fixed-width Int64 encoding, false otherwise.static boolean
OrderedBytes.isFixedInt8
(PositionedByteRange src) Return true when the next encoded value insrc
uses fixed-width Int8 encoding, false otherwise.static boolean
OrderedBytes.isNull
(PositionedByteRange src) Return true when the next encoded value insrc
is null, false otherwise.static boolean
OrderedBytes.isNumeric
(PositionedByteRange src) Return true when the next encoded value insrc
uses Numeric encoding, false otherwise.static boolean
OrderedBytes.isNumericInfinite
(PositionedByteRange src) Return true when the next encoded value insrc
uses Numeric encoding and isInfinite
, false otherwise.static boolean
OrderedBytes.isNumericNaN
(PositionedByteRange src) Return true when the next encoded value insrc
uses Numeric encoding and isNaN
, false otherwise.static boolean
OrderedBytes.isNumericZero
(PositionedByteRange src) Return true when the next encoded value insrc
uses Numeric encoding and is0
, false otherwise.static boolean
OrderedBytes.isText
(PositionedByteRange src) Return true when the next encoded value insrc
uses Text encoding, false otherwise.static int
OrderedBytes.length
(PositionedByteRange buff) Return the number of encoded entries remaining inbuff
.(package private) static int
OrderedBytes.lengthVaruint64
(PositionedByteRange src, boolean comp) Inspectsrc
for an encoded varuint64 for its length in bytes.private static int
OrderedBytes.putUint32
(PositionedByteRange dst, int val) Write a 32-bit unsigned integer todst
as 4 big-endian bytes.(package private) static int
OrderedBytes.putVaruint64
(PositionedByteRange dst, long val, boolean comp) Encode an unsigned 64-bit unsigned integerval
intodst
.static int
OrderedBytes.skip
(PositionedByteRange src) Skipbuff
's position forward over one encoded value.private static int
OrderedBytes.skipSignificand
(PositionedByteRange src, boolean comp) Skipsrc
over the significand bytes.(package private) static int
OrderedBytes.skipVaruint64
(PositionedByteRange src, boolean cmp) Skipsrc
over the encoded varuint64.