Class PageCache<ATTR extends Any>
java.lang.Object
io.deephaven.util.datastructures.intrusive.IntrusiveSoftLRU<PageCache.IntrusivePage<ATTR>>
io.deephaven.parquet.table.pagestore.PageCache<ATTR>
A cache for
IntrusivePages
. This data structure stores pages as soft
references
and maintains them as an LRU cache. External references to cached pages should be held via
weak references
so that as memory pressure builds the pages can be evicted from the cache.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
PageCache.IntrusivePage<ATTR extends Any>
Intrusive data structure for page caching.Nested classes/interfaces inherited from class io.deephaven.util.datastructures.intrusive.IntrusiveSoftLRU
IntrusiveSoftLRU.Adapter<T>, IntrusiveSoftLRU.Node<T extends IntrusiveSoftLRU.Node<T>>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncastAttr()
static <ATTR extends Any>
WeakReference<PageCache.IntrusivePage<ATTR>>Methods inherited from class io.deephaven.util.datastructures.intrusive.IntrusiveSoftLRU
clear, touch
-
Constructor Details
-
PageCache
public PageCache(int initialCapacity, int maxCapacity)
-
-
Method Details
-
getNullPage
- Returns:
- The null page sentinel
-
castAttr
-