Uses of Class
org.apache.hadoop.hbase.nio.ByteBuff
Package
Description
Provides implementations of
HFile
and HFile
BlockCache
.-
Uses of org.apache.hadoop.hbase.nio.ByteBuff in org.apache.hadoop.hbase.codec
Modifier and TypeFieldDescriptionprotected final org.apache.hadoop.hbase.nio.ByteBuff
KeyValueCodec.ByteBuffKeyValueDecoder.buf
Modifier and TypeMethodDescriptionorg.apache.hadoop.hbase.codec.Codec.Decoder
CellCodec.getDecoder
(org.apache.hadoop.hbase.nio.ByteBuff buf) org.apache.hadoop.hbase.codec.Codec.Decoder
CellCodecWithTags.getDecoder
(org.apache.hadoop.hbase.nio.ByteBuff buf) org.apache.hadoop.hbase.codec.Codec.Decoder
Codec.getDecoder
(org.apache.hadoop.hbase.nio.ByteBuff buf) org.apache.hadoop.hbase.codec.Codec.Decoder
KeyValueCodec.getDecoder
(org.apache.hadoop.hbase.nio.ByteBuff buf) org.apache.hadoop.hbase.codec.Codec.Decoder
KeyValueCodecWithTags.getDecoder
(org.apache.hadoop.hbase.nio.ByteBuff buf) org.apache.hadoop.hbase.codec.Codec.Decoder
MessageCodec.getDecoder
(org.apache.hadoop.hbase.nio.ByteBuff buf) ModifierConstructorDescriptionByteBuffKeyValueDecoder
(org.apache.hadoop.hbase.nio.ByteBuff buf) ByteBuffKeyValueDecoder
(org.apache.hadoop.hbase.nio.ByteBuff buf) -
Uses of org.apache.hadoop.hbase.nio.ByteBuff in org.apache.hadoop.hbase.io
Modifier and TypeMethodDescriptionorg.apache.hadoop.hbase.nio.ByteBuff
ByteBuffAllocator.allocate
(int size) Allocate size bytes from the ByteBufAllocator, Note to call therelease()
if no need any more, otherwise the memory leak happen in NIO ByteBuffer pool.Modifier and TypeMethodDescriptionvoid
ByteArrayOutputStream.toByteBuff
(org.apache.hadoop.hbase.nio.ByteBuff buff) int
TagCompressionContext.uncompressTags
(org.apache.hadoop.hbase.nio.ByteBuff src, byte[] dest, int offset, int length) Uncompress tags from the input ByteBuffer and writes to the destination array.ModifierConstructorDescriptionByteBuffInputStream
(org.apache.hadoop.hbase.nio.ByteBuff buf) -
Uses of org.apache.hadoop.hbase.nio.ByteBuff in org.apache.hadoop.hbase.io.encoding
Modifier and TypeMethodDescriptionorg.apache.hadoop.hbase.ExtendedCell
CopyKeyDataBlockEncoder.getFirstKeyCellInBlock
(org.apache.hadoop.hbase.nio.ByteBuff block) org.apache.hadoop.hbase.ExtendedCell
DataBlockEncoder.getFirstKeyCellInBlock
(org.apache.hadoop.hbase.nio.ByteBuff block) Return first key in block as a cell.org.apache.hadoop.hbase.ExtendedCell
DiffKeyDeltaEncoder.getFirstKeyCellInBlock
(org.apache.hadoop.hbase.nio.ByteBuff block) org.apache.hadoop.hbase.ExtendedCell
FastDiffDeltaEncoder.getFirstKeyCellInBlock
(org.apache.hadoop.hbase.nio.ByteBuff block) org.apache.hadoop.hbase.ExtendedCell
PrefixKeyDeltaEncoder.getFirstKeyCellInBlock
(org.apache.hadoop.hbase.nio.ByteBuff block) org.apache.hadoop.hbase.ExtendedCell
RowIndexCodecV1.getFirstKeyCellInBlock
(org.apache.hadoop.hbase.nio.ByteBuff block) void
HFileBlockDecodingContext.prepareDecoding
(int onDiskSizeWithoutHeader, int uncompressedSizeWithoutHeader, org.apache.hadoop.hbase.nio.ByteBuff blockBufferWithoutHeader, org.apache.hadoop.hbase.nio.ByteBuff onDiskBlock) Perform all actions that need to be done before the encoder's real decoding process.void
HFileBlockDefaultDecodingContext.prepareDecoding
(int onDiskSizeWithoutHeader, int uncompressedSizeWithoutHeader, org.apache.hadoop.hbase.nio.ByteBuff blockBufferWithoutHeader, org.apache.hadoop.hbase.nio.ByteBuff onDiskBlock) void
DataBlockEncoder.EncodedSeeker.setCurrentBuffer
(org.apache.hadoop.hbase.nio.ByteBuff buffer) Set on which buffer there will be done seeking.void
RowIndexSeekerV1.setCurrentBuffer
(org.apache.hadoop.hbase.nio.ByteBuff buffer) -
Uses of org.apache.hadoop.hbase.nio.ByteBuff in org.apache.hadoop.hbase.io.hfile
Modifier and TypeMethodDescriptionorg.apache.hadoop.hbase.nio.ByteBuff
HFileBlock.getBufferReadOnly()
Returns a read-only duplicate of the buffer this block stores internally ready to be read.org.apache.hadoop.hbase.nio.ByteBuff
HFileBlock.getBufferWithoutHeader()
Returns a buffer that does not include the header and checksum.Modifier and TypeMethodDescriptionboolean
CompoundBloomFilter.contains
(byte[] key, int keyOffset, int keyLength, org.apache.hadoop.hbase.nio.ByteBuff bloom) boolean
CompoundBloomFilter.contains
(org.apache.hadoop.hbase.Cell keyCell, org.apache.hadoop.hbase.nio.ByteBuff bloom, org.apache.hadoop.hbase.regionserver.BloomType type) T
CacheableDeserializer.deserialize
(org.apache.hadoop.hbase.nio.ByteBuff b, org.apache.hadoop.hbase.io.ByteBuffAllocator allocator) org.apache.hadoop.hbase.io.hfile.HFileBlock
HFileBlock.BlockDeserializer.deserialize
(org.apache.hadoop.hbase.nio.ByteBuff buf, org.apache.hadoop.hbase.io.ByteBuffAllocator alloc) static org.apache.hadoop.hbase.io.hfile.BlockType
BlockType.read
(org.apache.hadoop.hbase.nio.ByteBuff buf) org.apache.hadoop.hbase.io.hfile.HFileBlockBuilder
HFileBlockBuilder.withByteBuff
(org.apache.hadoop.hbase.nio.ByteBuff buf) void
BlockType.write
(org.apache.hadoop.hbase.nio.ByteBuff buf) ModifierConstructorDescriptionHFileBlock
(org.apache.hadoop.hbase.io.hfile.BlockType blockType, int onDiskSizeWithoutHeader, int uncompressedSizeWithoutHeader, long prevBlockOffset, org.apache.hadoop.hbase.nio.ByteBuff buf, boolean fillHeader, long offset, int nextBlockOnDiskSize, int onDiskDataSizeWithHeader, org.apache.hadoop.hbase.io.hfile.HFileContext fileContext, org.apache.hadoop.hbase.io.ByteBuffAllocator allocator) Creates a newHFile
block from the given fields. -
Uses of org.apache.hadoop.hbase.nio.ByteBuff in org.apache.hadoop.hbase.io.util
Modifier and TypeMethodDescriptionstatic boolean
BlockIOUtils.preadWithExtra
(org.apache.hadoop.hbase.nio.ByteBuff buff, org.apache.hadoop.fs.FSDataInputStream dis, long position, int necessaryLen, int extraLen) Read from an input stream at leastnecessaryLen
and if possible,extraLen
also if available.static boolean
BlockIOUtils.preadWithExtra
(org.apache.hadoop.hbase.nio.ByteBuff buff, org.apache.hadoop.fs.FSDataInputStream dis, long position, int necessaryLen, int extraLen, boolean readAllBytes) Read from an input stream at leastnecessaryLen
and if possible,extraLen
also if available.static void
BlockIOUtils.readFully
(org.apache.hadoop.hbase.nio.ByteBuff buf, org.apache.hadoop.fs.FSDataInputStream dis, int length) Read length bytes into ByteBuffers directly.static void
BlockIOUtils.readFullyWithHeapBuffer
(InputStream in, org.apache.hadoop.hbase.nio.ByteBuff out, int length) Copying bytes from InputStream toByteBuff
by using an temporary heap byte[] (default size is 1024 now).static int
StreamUtils.readRawVarint32
(org.apache.hadoop.hbase.nio.ByteBuff input) static boolean
BlockIOUtils.readWithExtra
(org.apache.hadoop.hbase.nio.ByteBuff buf, org.apache.hadoop.fs.FSDataInputStream dis, int necessaryLen, int extraLen) Read bytes into ByteBuffers directly, those buffers either contains the extraLen bytes or only contains necessaryLen bytes, which depends on how much bytes do the last time we read. -
Uses of org.apache.hadoop.hbase.nio.ByteBuff in org.apache.hadoop.hbase.nio
Modifier and TypeClassDescriptionclass
org.apache.hadoop.hbase.nio.MultiByteBuff
Provides a unified view of all the underlying ByteBuffers and will look as if a bigger sequential buffer.class
org.apache.hadoop.hbase.nio.SingleByteBuff
An implementation of ByteBuff where a single BB backs the BBI.Modifier and TypeMethodDescriptionabstract org.apache.hadoop.hbase.nio.ByteBuff
ByteBuff.duplicate()
Returns an ByteBuff which is a duplicate version of this ByteBuff.abstract org.apache.hadoop.hbase.nio.ByteBuff
ByteBuff.limit
(int limit) Marks the limit of this ByteBuffabstract org.apache.hadoop.hbase.nio.ByteBuff
ByteBuff.mark()
Marks the current position of the ByteBuffabstract org.apache.hadoop.hbase.nio.ByteBuff
ByteBuff.moveBack
(int len) Jumps back the current position of this ByteBuff by specified length.abstract org.apache.hadoop.hbase.nio.ByteBuff
ByteBuff.position
(int position) Sets this ByteBuff's position to the given value.abstract org.apache.hadoop.hbase.nio.ByteBuff
ByteBuff.put
(byte b) Writes a byte to this ByteBuff at the current position and increments the positionabstract org.apache.hadoop.hbase.nio.ByteBuff
ByteBuff.put
(byte[] src) Copies from the given byte[] to this ByteBuffabstract org.apache.hadoop.hbase.nio.ByteBuff
ByteBuff.put
(byte[] src, int offset, int length) Copies from the given byte[] to this ByteBuffabstract org.apache.hadoop.hbase.nio.ByteBuff
ByteBuff.put
(int index, byte b) Writes a byte to this ByteBuff at the given indexabstract org.apache.hadoop.hbase.nio.ByteBuff
ByteBuff.put
(int offset, org.apache.hadoop.hbase.nio.ByteBuff src, int srcOffset, int length) Copies the contents from the src ByteBuff to this ByteBuff.abstract org.apache.hadoop.hbase.nio.ByteBuff
ByteBuff.putInt
(int value) Writes an int to this ByteBuff at its current position.abstract org.apache.hadoop.hbase.nio.ByteBuff
ByteBuff.putLong
(long value) Writes a long to this ByteBuff at its current position.abstract org.apache.hadoop.hbase.nio.ByteBuff
ByteBuff.reset()
Similar toByteBuffer
.reset(), ensures that this ByteBuff is reset back to last marked position.abstract org.apache.hadoop.hbase.nio.ByteBuff
ByteBuff.rewind()
Rewinds this ByteBuff and the position is set to 0abstract org.apache.hadoop.hbase.nio.ByteBuff
ByteBuff.skip
(int len) Jumps the current position of this ByteBuff by specified length.abstract org.apache.hadoop.hbase.nio.ByteBuff
ByteBuff.slice()
Returns an ByteBuff which is a sliced version of this ByteBuff.org.apache.hadoop.hbase.nio.ByteBuff
ByteBuff.touch()
Calling this method in strategic locations where ByteBuffs are referenced may help diagnose potential buffer leaks.org.apache.hadoop.hbase.nio.ByteBuff
ByteBuff.touch
(Object hint) static org.apache.hadoop.hbase.nio.ByteBuff
ByteBuff.wrap
(ByteBuffer buffer) static org.apache.hadoop.hbase.nio.ByteBuff
ByteBuff.wrap
(ByteBuffer[] buffers) static org.apache.hadoop.hbase.nio.ByteBuff
ByteBuff.wrap
(ByteBuffer[] buffers, org.apache.hadoop.hbase.io.ByteBuffAllocator.Recycler recycler) static org.apache.hadoop.hbase.nio.ByteBuff
ByteBuff.wrap
(ByteBuffer[] buffers, org.apache.hadoop.hbase.nio.RefCnt refCnt) In theory, the upstream should never construct an ByteBuff by passing an given refCnt, so please don't use this public method in other place.static org.apache.hadoop.hbase.nio.ByteBuff
ByteBuff.wrap
(List<ByteBuffer> buffers) static org.apache.hadoop.hbase.nio.ByteBuff
ByteBuff.wrap
(List<ByteBuffer> buffers, org.apache.hadoop.hbase.io.ByteBuffAllocator.Recycler recycler) Modifier and TypeMethodDescriptionstatic int
ByteBuff.compareTo
(org.apache.hadoop.hbase.nio.ByteBuff buf1, int o1, int len1, org.apache.hadoop.hbase.nio.ByteBuff buf2, int o2, int len2) Compares two ByteBuffsabstract org.apache.hadoop.hbase.nio.ByteBuff
ByteBuff.put
(int offset, org.apache.hadoop.hbase.nio.ByteBuff src, int srcOffset, int length) Copies the contents from the src ByteBuff to this ByteBuff.org.apache.hadoop.hbase.nio.MultiByteBuff
MultiByteBuff.put
(int destOffset, org.apache.hadoop.hbase.nio.ByteBuff src, int srcOffset, int length) Copies from a src BB to this MBB.org.apache.hadoop.hbase.nio.SingleByteBuff
SingleByteBuff.put
(int offset, org.apache.hadoop.hbase.nio.ByteBuff src, int srcOffset, int length) static int
ByteBuff.readCompressedInt
(org.apache.hadoop.hbase.nio.ByteBuff buf) Read integer from ByteBuff coded in 7 bits and increment position.static long
ByteBuff.readLong
(org.apache.hadoop.hbase.nio.ByteBuff in, int fitInBytes) Read long which was written to fitInBytes bytes and increment position. -
Uses of org.apache.hadoop.hbase.nio.ByteBuff in org.apache.hadoop.hbase.regionserver.wal
Modifier and TypeMethodDescriptionorg.apache.hadoop.hbase.codec.Codec.Decoder
WALCellCodec.getDecoder
(org.apache.hadoop.hbase.nio.ByteBuff buf) -
Uses of org.apache.hadoop.hbase.nio.ByteBuff in org.apache.hadoop.hbase.util
Modifier and TypeMethodDescriptionboolean
BloomFilter.contains
(byte[] buf, int offset, int length, org.apache.hadoop.hbase.nio.ByteBuff bloom) Check if the specified key is contained in the bloom filter.boolean
BloomFilter.contains
(org.apache.hadoop.hbase.Cell keyCell, org.apache.hadoop.hbase.nio.ByteBuff bloom, org.apache.hadoop.hbase.regionserver.BloomType type) Check if the specified key is contained in the bloom filter.static boolean
BloomFilterUtil.contains
(byte[] buf, int offset, int length, org.apache.hadoop.hbase.nio.ByteBuff bloomBuf, int bloomOffset, int bloomSize, org.apache.hadoop.hbase.util.Hash hash, int hashCount) static boolean
BloomFilterUtil.contains
(org.apache.hadoop.hbase.Cell cell, org.apache.hadoop.hbase.nio.ByteBuff bloomBuf, int bloomOffset, int bloomSize, org.apache.hadoop.hbase.util.Hash hash, int hashCount, org.apache.hadoop.hbase.regionserver.BloomType type) int
ByteBufferArray.read
(long offset, org.apache.hadoop.hbase.nio.ByteBuff dst) Transfers bytes from this buffers array into the given destinationByteBuff
static long
ByteBufferUtils.readVLong
(org.apache.hadoop.hbase.nio.ByteBuff buf) Similar toWritableUtils.readVLong(java.io.DataInput)
but reads from aByteBuff
.int
ByteBufferArray.write
(long offset, org.apache.hadoop.hbase.nio.ByteBuff src) Transfers bytes from the given sourceByteBuff
into this buffer array