Package org.apache.jena.mem
package org.apache.jena.mem
Various memory-based implementations of interfaces,
specifically GraphMem for memory-based Graphs.
-
ClassDescriptionAn ArrayBunch implements TripleBunch with a linear search of a short-ish array of Triples.A pruned (and slightly stewed) version of Map, containing just those operations required by NodeToTriplesMaps.Deprecated.This implementation of GraphMem will be replaced by a new implementation at Jena 4.6.0.GraphMemBase - a common base class for GraphMem and SmallGraphMem.GraphTripleStore - the underlying triple-indexed triple store for GraphMem et al, ripped out from the heart of GraphMem as part of simplifying the reification code.HashCommon<Key>Shared stuff for our hashing implementations: does the base work for hashing and growth sizes.A hashed structure may become empty as a side-effect of a .remove on one of its iterators: a container can request notification of this by passing a
NotifyEmpty
object in when the iterator is constructed, and itsemptied
method is called when the bunch becomes empty.An implementation of BunchMap that does open-addressed hashing.NodeToTriplesMap: a map from nodes to sets of triples.A base class for in-memory graphsHelper class for listObjects.An iterator wrapper for NodeToTriplesMap iterators which ensures that a .remove on the base iterator is copied to the other two maps of this GraphMem.A WrappedIterator which remembers the last object next'ed in a protected instance variable, so that subclasses have access to it during .remove.A bunch of triples - a stripped-down set with specialized methods.An implementation of BunchMap that delegates to a [Hashed]Map.