private static class TestByteBufferIOEngine.MockBucketEntry extends Object
BucketEntry so that we can set an arbitrary offset.| Modifier and Type | Class and Description |
|---|---|
(package private) static interface |
org.apache.hadoop.hbase.io.hfile.bucket.BucketEntry.BucketEntryHandler<T> |
| Modifier and Type | Field and Description |
|---|---|
(package private) org.apache.hadoop.hbase.io.ByteBuffAllocator |
allocator |
(package private) static Comparator<org.apache.hadoop.hbase.io.hfile.bucket.BucketEntry> |
COMPARATOR |
(package private) byte |
deserializerIndex |
(package private) AtomicBoolean |
markedAsEvicted |
private long |
off |
| Constructor and Description |
|---|
MockBucketEntry(long offset,
int length,
org.apache.hadoop.hbase.io.ByteBuffAllocator allocator) |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
access(long arg0) |
(package private) org.apache.hadoop.hbase.io.hfile.CacheableDeserializer<org.apache.hadoop.hbase.io.hfile.Cacheable> |
deserializerReference() |
(package private) long |
getAccessCounter() |
(package private) long |
getCachedTime() |
int |
getLength() |
org.apache.hadoop.hbase.io.hfile.BlockPriority |
getPriority() |
(package private) boolean |
isRpcRef() |
(package private) boolean |
markAsEvicted() |
(package private) long |
offset() |
int |
refCnt() |
boolean |
release() |
org.apache.hadoop.hbase.io.hfile.bucket.BucketEntry |
retain() |
(package private) void |
setDeserializerReference(org.apache.hadoop.hbase.io.hfile.CacheableDeserializer<org.apache.hadoop.hbase.io.hfile.Cacheable> arg0) |
(package private) <T> T |
withWriteLock(org.apache.hadoop.hbase.util.IdReadWriteLock<Long> arg0,
org.apache.hadoop.hbase.io.hfile.bucket.BucketEntry.BucketEntryHandler<T> arg1) |
(package private) org.apache.hadoop.hbase.io.hfile.Cacheable |
wrapAsCacheable(org.apache.hadoop.hbase.nio.ByteBuff arg0) |
(package private) org.apache.hadoop.hbase.io.hfile.Cacheable |
wrapAsCacheable(ByteBuffer[] arg0) |
private long off
static final Comparator<org.apache.hadoop.hbase.io.hfile.bucket.BucketEntry> COMPARATOR
byte deserializerIndex
final AtomicBoolean markedAsEvicted
final org.apache.hadoop.hbase.io.ByteBuffAllocator allocator
MockBucketEntry(long offset, int length, org.apache.hadoop.hbase.io.ByteBuffAllocator allocator)
long offset()
public int getLength()
org.apache.hadoop.hbase.io.hfile.CacheableDeserializer<org.apache.hadoop.hbase.io.hfile.Cacheable> deserializerReference()
void setDeserializerReference(org.apache.hadoop.hbase.io.hfile.CacheableDeserializer<org.apache.hadoop.hbase.io.hfile.Cacheable> arg0)
long getAccessCounter()
void access(long arg0)
public org.apache.hadoop.hbase.io.hfile.BlockPriority getPriority()
long getCachedTime()
boolean markAsEvicted()
boolean isRpcRef()
org.apache.hadoop.hbase.io.hfile.Cacheable wrapAsCacheable(ByteBuffer[] arg0) throws IOException
IOExceptionorg.apache.hadoop.hbase.io.hfile.Cacheable wrapAsCacheable(org.apache.hadoop.hbase.nio.ByteBuff arg0) throws IOException
IOException<T> T withWriteLock(org.apache.hadoop.hbase.util.IdReadWriteLock<Long> arg0, org.apache.hadoop.hbase.io.hfile.bucket.BucketEntry.BucketEntryHandler<T> arg1)
public int refCnt()
refCnt in interface org.apache.hbase.thirdparty.io.netty.util.ReferenceCountedpublic org.apache.hadoop.hbase.io.hfile.bucket.BucketEntry retain()
retain in interface org.apache.hbase.thirdparty.io.netty.util.ReferenceCountedpublic boolean release()
release in interface org.apache.hbase.thirdparty.io.netty.util.ReferenceCountedCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.