- All Implemented Interfaces:
BunchMap
An implementation of BunchMap that does open-addressed hashing.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.jena.mem.HashCommon
HashCommon.NotifyEmpty -
Field Summary
Fields inherited from class org.apache.jena.mem.HashCommon
capacity -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clear this map: all entries are removed.Answer the TripleBunch associated withkey, ornullif there isn't one.getOrSet(Object key, Function<Object, TripleBunch> setter) Get thekeyand return the value found there; if nothing, calculate thevalueand insert.iterator()voidput(Object key, TripleBunch value) Associatekeyandvalue.longsize()The number of items in the bunch.Methods inherited from class org.apache.jena.mem.HashCommon
getItemForTestingAt, keyIterator, keyIterator, keySpliterator, removeMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.jena.mem.BunchMap
keyIterator, remove
-
Constructor Details
-
HashedBunchMap
public HashedBunchMap()
-
-
Method Details
-
clear
public void clear()Clear this map: all entries are removed. The keys and value array elements are set to null (so the values may be garbage-collected). -
size
public long size()Description copied from interface:BunchMapThe number of items in the bunch. -
get
Description copied from interface:BunchMapAnswer the TripleBunch associated withkey, ornullif there isn't one. -
put
Description copied from interface:BunchMapAssociatekeyandvalue. Any existing association ofkeyis lost.geton this key will now deliver this value. -
getOrSet
Description copied from interface:BunchMapGet thekeyand return the value found there; if nothing, calculate thevalueand insert. Return the value now the slot. -
iterator
-
spliterator
- Specified by:
spliteratorin interfaceBunchMap
-