Package org.apache.hadoop.hbase.io.hfile
Class LruAdaptiveBlockCache.BlockBucket
java.lang.Object
org.apache.hadoop.hbase.io.hfile.LruAdaptiveBlockCache.BlockBucket
- All Implemented Interfaces:
Comparable<LruAdaptiveBlockCache.BlockBucket>
- Enclosing class:
- LruAdaptiveBlockCache
private class LruAdaptiveBlockCache.BlockBucket
extends Object
implements Comparable<LruAdaptiveBlockCache.BlockBucket>
Used to group blocks into priority buckets. There will be a BlockBucket for each priority
(single, multi, memory). Once bucketed, the eviction algorithm takes the appropriate number of
elements out of each according to configuration parameters and their relatives sizes.
-
Field Summary
Modifier and TypeFieldDescriptionprivate final long
private final String
private final LruCachedBlockQueue
private long
-
Constructor Summary
-
Method Summary
-
Field Details
-
name
-
queue
-
totalSize
-
bucketSize
-
-
Constructor Details
-
BlockBucket
-
-
Method Details
-
add
-
free
-
overflow
-
totalSize
-
compareTo
- Specified by:
compareTo
in interfaceComparable<LruAdaptiveBlockCache.BlockBucket>
-
equals
-
hashCode
-
toString
-