Module swim.db
Package swim.db

Class QTreeMapView<S>

java.lang.Object
swim.db.QTreeMapView<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 QTreeMapView<S> extends Object implements swim.spatial.SpatialMap<swim.structure.Value,S,swim.structure.Value>
  • Nested Class Summary

    Nested classes/interfaces inherited from interface swim.spatial.SpatialMap

    swim.spatial.SpatialMap.Entry<K extends Object,S extends Object,V extends Object>, swim.spatial.SpatialMap.SimpleEntry<K extends Object,S extends Object,V extends Object>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final swim.math.Z2Form<S>
     
    protected final QTree
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    QTreeMapView(QTree tree, swim.math.Z2Form<S> shapeForm)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    boolean
     
    boolean
    containsKey(swim.structure.Value key, S shape)
     
    boolean
     
    swim.structure.Value
    get(Object key)
     
    swim.structure.Value
    get(swim.structure.Value key, S shape)
     
     
    boolean
     
    boolean
     
    boolean
     
    swim.util.Cursor<swim.spatial.SpatialMap.Entry<swim.structure.Value,S,swim.structure.Value>>
     
    swim.util.Cursor<swim.spatial.SpatialMap.Entry<swim.structure.Value,S,swim.structure.Value>>
    iterator(S shape)
     
    <K> swim.spatial.SpatialValueMap<K,S,swim.structure.Value>
    keyClass(Class<K> keyClass)
     
    <K> swim.spatial.SpatialValueMap<K,S,swim.structure.Value>
    keyForm(swim.structure.Form<K> keyForm)
     
    swim.util.Cursor<swim.structure.Value>
     
     
    swim.structure.Value
    move(swim.structure.Value key, S oldShape, S newShape, swim.structure.Value newValue)
     
    swim.structure.Value
    put(swim.structure.Value key, S shape, swim.structure.Value newValue)
     
    swim.structure.Value
    remove(swim.structure.Value key, S shape)
     
    swim.math.Z2Form<S>
     
    int
     
    <V> swim.spatial.SpatialValueMap<swim.structure.Value,S,V>
    valueClass(Class<V> valueClass)
     
    <V> swim.spatial.SpatialValueMap<swim.structure.Value,S,V>
    valueForm(swim.structure.Form<V> valueForm)
     
    swim.util.Cursor<swim.structure.Value>
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface java.lang.Iterable

    forEach, spliterator
  • Field Details

    • tree

      protected final QTree tree
    • shapeForm

      protected final swim.math.Z2Form<S> shapeForm
  • Constructor Details

    • QTreeMapView

      public QTreeMapView(QTree tree, swim.math.Z2Form<S> shapeForm)
  • Method Details

    • getTree

      public QTree getTree()
    • shapeForm

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

      public QTreeMapView<S> load()
    • isResident

      public boolean isResident()
    • isTransient

      public 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)
    • 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>
    • 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 value)
      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>