Package org.apache.hadoop.hbase.io.util
Class LRUDictionary.BidirectionalLRUMap
java.lang.Object
org.apache.hadoop.hbase.io.util.LRUDictionary.BidirectionalLRUMap
- Enclosing class:
- LRUDictionary
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static class
private static class
private static class
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private LRUDictionary.BidirectionalLRUMap.Node[]
private int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
clear()
private short
findIdx
(byte[] array, int offset, int length) private short
findIdx
(ByteBuffer buf, int offset, int length) private byte[]
get
(short idx) private void
private short
put
(byte[] array, int offset, int length, boolean copy) private short
putInternal
(byte[] stored) private void
-
Field Details
-
currSize
-
head
-
tail
-
nodeToIndex
-
indexToNode
-
initSize
-
-
Constructor Details
-
BidirectionalLRUMap
-
-
Method Details
-
put
-
putInternal
-
findIdx
-
findIdx
-
get
-
moveToHead
-
setHead
-
clear
-