Module swim.db
Package swim.db

Class QTreeMap<S>

java.lang.Object
swim.db.QTreeMap<S>
All Implemented Interfaces:
Iterable<swim.spatial.SpatialMap.Entry<swim.structure.Value,S,swim.structure.Value>>, swim.spatial.SpatialMap<swim.structure.Value,S,swim.structure.Value>

public class QTreeMap<S> extends Object implements swim.spatial.SpatialMap<swim.structure.Value,S,swim.structure.Value>
  • Constructor Details

    • QTreeMap

      public QTreeMap(Trunk<QTree> trunk, swim.math.Z2Form<S> shapeForm)
  • Method Details

    • trunk

      public final Trunk<QTree> trunk()
    • settings

      public final StoreSettings settings()
    • database

      public final Database database()
    • name

      public final swim.structure.Value name()
    • tree

      public final QTree tree()
    • treeDelegate

      public final TreeDelegate treeDelegate()
    • setTreeDelegate

      public void setTreeDelegate(TreeDelegate treeDelegate)
    • shapeForm

      public swim.math.Z2Form<S> shapeForm()
    • isResident

      public boolean isResident()
    • isResident

      public QTreeMap<S> isResident(boolean isResident)
    • isTransient

      public boolean isTransient()
    • isTransient

      public QTreeMap<S> isTransient(boolean isTransient)
    • keyForm

      public <K> swim.spatial.SpatialValueMap<K,S,swim.structure.Value> keyForm(swim.structure.Form<K> keyForm)
    • keyClass

      public <K> swim.spatial.SpatialValueMap<K,S,swim.structure.Value> keyClass(Class<K> keyClass)
    • valueForm

      public <V> swim.spatial.SpatialValueMap<swim.structure.Value,S,V> valueForm(swim.structure.Form<V> valueForm)
    • valueClass

      public <V> swim.spatial.SpatialValueMap<swim.structure.Value,S,V> valueClass(Class<V> valueClass)
    • snapshot

      public QTreeMapView<S> snapshot()
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface swim.spatial.SpatialMap<swim.structure.Value,S,swim.structure.Value>
    • size

      public int size()
      Specified by:
      size in interface swim.spatial.SpatialMap<swim.structure.Value,S,swim.structure.Value>
    • span

      public long span()
    • treeSize

      public long treeSize()
    • containsKey

      public boolean containsKey(swim.structure.Value key, S shape)
      Specified by:
      containsKey in interface swim.spatial.SpatialMap<swim.structure.Value,S,swim.structure.Value>
    • containsKey

      public boolean containsKey(Object key)
      Specified by:
      containsKey in interface swim.spatial.SpatialMap<swim.structure.Value,S,swim.structure.Value>
    • containsValue

      public boolean containsValue(Object value)
      Specified by:
      containsValue in interface swim.spatial.SpatialMap<swim.structure.Value,S,swim.structure.Value>
    • get

      public swim.structure.Value get(Object key)
      Specified by:
      get in interface swim.spatial.SpatialMap<swim.structure.Value,S,swim.structure.Value>
    • get

      public swim.structure.Value get(swim.structure.Value key, S shape)
      Specified by:
      get in interface swim.spatial.SpatialMap<swim.structure.Value,S,swim.structure.Value>
    • put

      public swim.structure.Value put(swim.structure.Value key, S shape, swim.structure.Value newValue)
      Specified by:
      put in interface swim.spatial.SpatialMap<swim.structure.Value,S,swim.structure.Value>
    • move

      public swim.structure.Value move(swim.structure.Value key, S oldShape, S newShape, swim.structure.Value newValue)
      Specified by:
      move in interface swim.spatial.SpatialMap<swim.structure.Value,S,swim.structure.Value>
    • remove

      public swim.structure.Value remove(swim.structure.Value key, S shape)
      Specified by:
      remove in interface swim.spatial.SpatialMap<swim.structure.Value,S,swim.structure.Value>
    • clear

      public void clear()
      Specified by:
      clear in interface swim.spatial.SpatialMap<swim.structure.Value,S,swim.structure.Value>
    • iterator

      public swim.util.Cursor<swim.spatial.SpatialMap.Entry<swim.structure.Value,S,swim.structure.Value>> iterator(S shape)
      Specified by:
      iterator in interface swim.spatial.SpatialMap<swim.structure.Value,S,swim.structure.Value>
    • iterator

      public swim.util.Cursor<swim.spatial.SpatialMap.Entry<swim.structure.Value,S,swim.structure.Value>> iterator()
      Specified by:
      iterator in interface Iterable<S>
    • keyIterator

      public swim.util.Cursor<swim.structure.Value> keyIterator()
      Specified by:
      keyIterator in interface swim.spatial.SpatialMap<swim.structure.Value,S,swim.structure.Value>
    • valueIterator

      public swim.util.Cursor<swim.structure.Value> valueIterator()
      Specified by:
      valueIterator in interface swim.spatial.SpatialMap<swim.structure.Value,S,swim.structure.Value>
    • depthValueIterator

      public swim.util.Cursor<swim.structure.Value> depthValueIterator(int maxDepth)
    • didFail

      protected void didFail(StoreException error)
    • load

      public QTreeMap<S> load()
    • commitAsync

      public void commitAsync(Commit commit)
    • commit

      public Chunk commit(Commit commit) throws InterruptedException
      Throws:
      InterruptedException