I don't think using an array will work well for a map key.  The hashCode() and 
equals() functions for an array come from Object and therefore do not consider 
the array elements.   Could use `List<String>` as the key and construct the 
list using Arrays.asList(options) which efficiently wraps an array.  List 
created in this way have hashCode() and equals() based on the list elements.

Could use a Guava cache instead instead of using a ConcurrentHashMap .  Then 
the cache could be configured with an age.

[ Full content available at: https://github.com/apache/accumulo/pull/645 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to