Terracotta-OSS / offheap-store

A library that provides a set of map and cache implementations that store data outside of the normal Java heap
Apache License 2.0
90 stars 46 forks source link

Open up some more of OffHeapHashMap #23

Closed cschanck closed 8 years ago

cschanck commented 8 years ago

OffHeapHashMap is the base class for all the hash map functionality int he offheap-store package, and this class traditionally has a lot of protected members in order to expose very low-level functionality.

I opened up some more bits and bobs, in order to faciliate other interesting usage. One slight nub was that I had to a conditionallyShrink(), which is identical to shrink() (just a passthru) because other classes overrode shrink().

Members (methods and fields) were only moved from privcate to protected. Two methods were added, conditionallyShrink() and keyForEntry().

terracotta-org commented 8 years ago

Can one of the admins verify this patch?

cschanck commented 8 years ago

Apologize for the import deltas, I didn't realize IntelliJ has done that.