Module swim.db
Package swim.db

Class STreeList

java.lang.Object
swim.db.STreeList
All Implemented Interfaces:
Iterable<swim.structure.Value>, Collection<swim.structure.Value>, List<swim.structure.Value>, swim.util.KeyedList<swim.structure.Value>

public class STreeList extends Object implements swim.util.KeyedList<swim.structure.Value>
  • Constructor Details

    • STreeList

      public STreeList(Trunk<STree> trunk)
  • Method Details

    • trunk

      public final Trunk<STree> trunk()
    • settings

      public final StoreSettings settings()
    • database

      public final Database database()
    • name

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

      public final STree tree()
    • treeDelegate

      public final TreeDelegate treeDelegate()
    • setTreeDelegate

      public void setTreeDelegate(TreeDelegate treeDelegate)
    • isResident

      public boolean isResident()
    • isResident

      public STreeList isResident(boolean isResident)
    • isTransient

      public boolean isTransient()
    • isTransient

      public STreeList isTransient(boolean isTransient)
    • valueForm

      public <V> swim.structure.collections.ValueList<V> valueForm(swim.structure.Form<V> valueForm)
    • valueClass

      public <V> swim.structure.collections.ValueList<V> valueClass(Class<V> valueClass)
    • snapshot

      public STreeListView snapshot()
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface Collection<swim.structure.Value>
      Specified by:
      isEmpty in interface List<swim.structure.Value>
    • size

      public int size()
      Specified by:
      size in interface Collection<swim.structure.Value>
      Specified by:
      size in interface List<swim.structure.Value>
    • span

      public long span()
    • treeSize

      public long treeSize()
    • contains

      public boolean contains(Object value)
      Specified by:
      contains in interface Collection<swim.structure.Value>
      Specified by:
      contains in interface List<swim.structure.Value>
    • containsAll

      public boolean containsAll(Collection<?> values)
      Specified by:
      containsAll in interface Collection<swim.structure.Value>
      Specified by:
      containsAll in interface List<swim.structure.Value>
    • indexOf

      public int indexOf(Object object)
      Specified by:
      indexOf in interface List<swim.structure.Value>
    • lastIndexOf

      public int lastIndexOf(Object object)
      Specified by:
      lastIndexOf in interface List<swim.structure.Value>
    • get

      public swim.structure.Value get(int index)
      Specified by:
      get in interface List<swim.structure.Value>
    • get

      public swim.structure.Value get(int index, Object key)
      Specified by:
      get in interface swim.util.KeyedList<swim.structure.Value>
    • getEntry

      public Map.Entry<Object,swim.structure.Value> getEntry(int index)
      Specified by:
      getEntry in interface swim.util.KeyedList<swim.structure.Value>
    • getEntry

      public Map.Entry<Object,swim.structure.Value> getEntry(int index, Object key)
      Specified by:
      getEntry in interface swim.util.KeyedList<swim.structure.Value>
    • set

      public swim.structure.Value set(int index, swim.structure.Value newValue)
      Specified by:
      set in interface List<swim.structure.Value>
    • set

      public swim.structure.Value set(int index, swim.structure.Value newValue, Object key)
      Specified by:
      set in interface swim.util.KeyedList<swim.structure.Value>
    • add

      public boolean add(swim.structure.Value newValue)
      Specified by:
      add in interface Collection<swim.structure.Value>
      Specified by:
      add in interface List<swim.structure.Value>
    • add

      public boolean add(swim.structure.Value newValue, Object key)
      Specified by:
      add in interface swim.util.KeyedList<swim.structure.Value>
    • addAll

      public boolean addAll(Collection<? extends swim.structure.Value> newValues)
      Specified by:
      addAll in interface Collection<swim.structure.Value>
      Specified by:
      addAll in interface List<swim.structure.Value>
    • add

      public void add(int index, swim.structure.Value newValue)
      Specified by:
      add in interface List<swim.structure.Value>
    • add

      public void add(int index, swim.structure.Value newValue, Object key)
      Specified by:
      add in interface swim.util.KeyedList<swim.structure.Value>
    • addAll

      public boolean addAll(int index, Collection<? extends swim.structure.Value> newValues)
      Specified by:
      addAll in interface List<swim.structure.Value>
    • remove

      public swim.structure.Value remove(int index)
      Specified by:
      remove in interface List<swim.structure.Value>
    • remove

      public swim.structure.Value remove(int index, Object key)
      Specified by:
      remove in interface swim.util.KeyedList<swim.structure.Value>
    • remove

      public boolean remove(Object value)
      Specified by:
      remove in interface Collection<swim.structure.Value>
      Specified by:
      remove in interface List<swim.structure.Value>
    • removeAll

      public boolean removeAll(Collection<?> values)
      Specified by:
      removeAll in interface Collection<swim.structure.Value>
      Specified by:
      removeAll in interface List<swim.structure.Value>
    • retainAll

      public boolean retainAll(Collection<?> values)
      Specified by:
      retainAll in interface Collection<swim.structure.Value>
      Specified by:
      retainAll in interface List<swim.structure.Value>
    • move

      public void move(int fromIndex, int toIndex)
      Specified by:
      move in interface swim.util.KeyedList<swim.structure.Value>
    • move

      public void move(int fromIndex, int toIndex, Object key)
      Specified by:
      move in interface swim.util.KeyedList<swim.structure.Value>
    • drop

      public void drop(int lower)
    • take

      public void take(int upper)
    • clear

      public void clear()
      Specified by:
      clear in interface Collection<swim.structure.Value>
      Specified by:
      clear in interface List<swim.structure.Value>
    • toArray

      public Object[] toArray()
      Specified by:
      toArray in interface Collection<swim.structure.Value>
      Specified by:
      toArray in interface List<swim.structure.Value>
    • toArray

      public <T> T[] toArray(T[] array)
      Specified by:
      toArray in interface Collection<swim.structure.Value>
      Specified by:
      toArray in interface List<swim.structure.Value>
    • iterator

      public swim.util.Cursor<swim.structure.Value> iterator()
      Specified by:
      iterator in interface Collection<swim.structure.Value>
      Specified by:
      iterator in interface Iterable<swim.structure.Value>
      Specified by:
      iterator in interface List<swim.structure.Value>
    • listIterator

      public swim.util.Cursor<swim.structure.Value> listIterator()
      Specified by:
      listIterator in interface List<swim.structure.Value>
    • listIterator

      public swim.util.Cursor<swim.structure.Value> listIterator(int index)
      Specified by:
      listIterator in interface List<swim.structure.Value>
    • keyIterator

      public swim.util.Cursor<Object> keyIterator()
      Specified by:
      keyIterator in interface swim.util.KeyedList<swim.structure.Value>
    • entryIterator

      public swim.util.Cursor<Map.Entry<Object,swim.structure.Value>> entryIterator()
      Specified by:
      entryIterator in interface swim.util.KeyedList<swim.structure.Value>
    • depthIterator

      public swim.util.Cursor<swim.structure.Value> depthIterator(int maxDepth)
    • subList

      public List<swim.structure.Value> subList(int fromIndex, int toIndex)
      Specified by:
      subList in interface List<swim.structure.Value>
    • identify

      protected swim.structure.Value identify(swim.structure.Value value)
    • didFail

      protected void didFail(StoreException error)
    • load

      public STreeList load()
    • commitAsync

      public void commitAsync(Commit commit)
    • commit

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