- java.lang.Object
-
- swim.db.STreeList
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int index, Value newValue)voidadd(int index, Value newValue, Object key)booleanadd(Value newValue)booleanadd(Value newValue, Object key)booleanaddAll(int index, Collection<? extends Value> newValues)booleanaddAll(Collection<? extends Value> newValues)voidclear()Chunkcommit(Commit commit)voidcommitAsync(Commit commit)booleancontains(Object value)booleancontainsAll(Collection<?> values)Databasedatabase()Cursor<Value>depthIterator(int maxDepth)protected voiddidFail(StoreException error)voiddrop(int lower)Cursor<Map.Entry<Object,Value>>entryIterator()Valueget(int index)Valueget(int index, Object key)Map.Entry<Object,Value>getEntry(int index)Map.Entry<Object,Value>getEntry(int index, Object key)protected Valueidentify(Value value)intindexOf(Object object)booleanisEmpty()booleanisResident()STreeListisResident(boolean isResident)booleanisTransient()STreeListisTransient(boolean isTransient)Cursor<Value>iterator()Cursor<Object>keyIterator()intlastIndexOf(Object object)Cursor<Value>listIterator()Cursor<Value>listIterator(int index)STreeListload()voidloadAsync(Cont<STreeList> cont)voidmove(int fromIndex, int toIndex)voidmove(int fromIndex, int toIndex, Object key)Valuename()Valueremove(int index)Valueremove(int index, Object key)booleanremove(Object value)booleanremoveAll(Collection<?> values)booleanretainAll(Collection<?> values)Valueset(int index, Value newValue)Valueset(int index, Value newValue, Object key)StoreSettingssettings()voidsetTreeDelegate(TreeDelegate treeDelegate)intsize()STreeListViewsnapshot()longspan()List<Value>subList(int fromIndex, int toIndex)voidtake(int upper)Object[]toArray()<T> T[]toArray(T[] array)STreetree()TreeDelegatetreeDelegate()longtreeSize()Trunk<STree>trunk()<V> ValueList<V>valueClass(Class<V> valueClass)<V> ValueList<V>valueForm(Form<V> valueForm)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
equals, hashCode, replaceAll, sort, spliterator
-
-
-
-
Method Detail
-
settings
public final StoreSettings settings()
-
database
public final Database database()
-
name
public final 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)
-
snapshot
public STreeListView snapshot()
-
isEmpty
public boolean isEmpty()
-
size
public int size()
-
span
public long span()
-
treeSize
public long treeSize()
-
contains
public boolean contains(Object value)
-
containsAll
public boolean containsAll(Collection<?> values)
- Specified by:
containsAllin interfaceCollection<Value>- Specified by:
containsAllin interfaceList<Value>
-
lastIndexOf
public int lastIndexOf(Object object)
- Specified by:
lastIndexOfin interfaceList<Value>
-
add
public boolean add(Value newValue)
-
addAll
public boolean addAll(Collection<? extends Value> newValues)
-
addAll
public boolean addAll(int index, Collection<? extends Value> newValues)
-
remove
public boolean remove(Object value)
-
removeAll
public boolean removeAll(Collection<?> values)
-
retainAll
public boolean retainAll(Collection<?> values)
-
move
public void move(int fromIndex, int toIndex, Object key)
-
drop
public void drop(int lower)
-
take
public void take(int upper)
-
clear
public void clear()
-
toArray
public Object[] toArray()
-
toArray
public <T> T[] toArray(T[] array)
-
listIterator
public Cursor<Value> listIterator()
- Specified by:
listIteratorin interfaceList<Value>
-
listIterator
public Cursor<Value> listIterator(int index)
- Specified by:
listIteratorin interfaceList<Value>
-
keyIterator
public Cursor<Object> keyIterator()
- Specified by:
keyIteratorin interfaceKeyedList<Value>
-
entryIterator
public Cursor<Map.Entry<Object,Value>> entryIterator()
- Specified by:
entryIteratorin interfaceKeyedList<Value>
-
didFail
protected void didFail(StoreException error)
-
load
public STreeList load() throws InterruptedException
- Throws:
InterruptedException
-
commitAsync
public void commitAsync(Commit commit)
-
commit
public Chunk commit(Commit commit) throws InterruptedException
- Throws:
InterruptedException
-
-