Package org.apache.hadoop.hbase.io.hfile
Class LruBlockCache.BlockBucket
java.lang.Object
org.apache.hadoop.hbase.io.hfile.LruBlockCache.BlockBucket
- All Implemented Interfaces:
Comparable<LruBlockCache.BlockBucket>
- Enclosing class:
- LruBlockCache
private class LruBlockCache.BlockBucket
extends Object
implements Comparable<LruBlockCache.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 long
private final String
private 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<LruBlockCache.BlockBucket>
-
equals
-
hashCode
-
toString
-