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>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(int index, swim.structure.Value newValue) voidbooleanadd(swim.structure.Value newValue) booleanbooleanaddAll(int index, Collection<? extends swim.structure.Value> newValues) booleanaddAll(Collection<? extends swim.structure.Value> newValues) voidclear()voidcommitAsync(Commit commit) booleanbooleancontainsAll(Collection<?> values) final Databasedatabase()swim.util.Cursor<swim.structure.Value>depthIterator(int maxDepth) protected voiddidFail(StoreException error) voiddrop(int lower) swim.structure.Valueget(int index) swim.structure.ValuegetEntry(int index) protected swim.structure.Valueidentify(swim.structure.Value value) intbooleanisEmpty()booleanisResident(boolean isResident) booleanisTransient(boolean isTransient) swim.util.Cursor<swim.structure.Value>iterator()swim.util.Cursor<Object>intlastIndexOf(Object object) swim.util.Cursor<swim.structure.Value>swim.util.Cursor<swim.structure.Value>listIterator(int index) load()voidmove(int fromIndex, int toIndex) voidfinal swim.structure.Valuename()swim.structure.Valueremove(int index) swim.structure.ValuebooleanbooleanremoveAll(Collection<?> values) booleanretainAll(Collection<?> values) swim.structure.Valueset(int index, swim.structure.Value newValue) swim.structure.Valuefinal StoreSettingssettings()voidsetTreeDelegate(TreeDelegate treeDelegate) intsize()snapshot()longspan()List<swim.structure.Value>subList(int fromIndex, int toIndex) voidtake(int upper) Object[]toArray()<T> T[]toArray(T[] array) final STreetree()final TreeDelegatelongtreeSize()trunk()<V> swim.structure.collections.ValueList<V>valueClass(Class<V> valueClass) <V> swim.structure.collections.ValueList<V>valueForm(swim.structure.Form<V> valueForm) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
equals, hashCode, replaceAll, sort, spliterator
-
Constructor Details
-
STreeList
-
-
Method Details
-
trunk
-
settings
-
database
-
name
public final swim.structure.Value name() -
tree
-
treeDelegate
-
setTreeDelegate
-
isResident
public boolean isResident() -
isResident
-
isTransient
public boolean isTransient() -
isTransient
-
valueForm
public <V> swim.structure.collections.ValueList<V> valueForm(swim.structure.Form<V> valueForm) -
valueClass
-
snapshot
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<swim.structure.Value>- Specified by:
isEmptyin interfaceList<swim.structure.Value>
-
size
public int size()- Specified by:
sizein interfaceCollection<swim.structure.Value>- Specified by:
sizein interfaceList<swim.structure.Value>
-
span
public long span() -
treeSize
public long treeSize() -
contains
- Specified by:
containsin interfaceCollection<swim.structure.Value>- Specified by:
containsin interfaceList<swim.structure.Value>
-
containsAll
- Specified by:
containsAllin interfaceCollection<swim.structure.Value>- Specified by:
containsAllin interfaceList<swim.structure.Value>
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<swim.structure.Value>
-
get
public swim.structure.Value get(int index) -
get
- Specified by:
getin interfaceswim.util.KeyedList<swim.structure.Value>
-
getEntry
- Specified by:
getEntryin interfaceswim.util.KeyedList<swim.structure.Value>
-
getEntry
- Specified by:
getEntryin interfaceswim.util.KeyedList<swim.structure.Value>
-
set
public swim.structure.Value set(int index, swim.structure.Value newValue) -
set
- Specified by:
setin interfaceswim.util.KeyedList<swim.structure.Value>
-
add
public boolean add(swim.structure.Value newValue) - Specified by:
addin interfaceCollection<swim.structure.Value>- Specified by:
addin interfaceList<swim.structure.Value>
-
add
- Specified by:
addin interfaceswim.util.KeyedList<swim.structure.Value>
-
addAll
- Specified by:
addAllin interfaceCollection<swim.structure.Value>- Specified by:
addAllin interfaceList<swim.structure.Value>
-
add
public void add(int index, swim.structure.Value newValue) -
add
- Specified by:
addin interfaceswim.util.KeyedList<swim.structure.Value>
-
addAll
-
remove
public swim.structure.Value remove(int index) -
remove
- Specified by:
removein interfaceswim.util.KeyedList<swim.structure.Value>
-
remove
- Specified by:
removein interfaceCollection<swim.structure.Value>- Specified by:
removein interfaceList<swim.structure.Value>
-
removeAll
- Specified by:
removeAllin interfaceCollection<swim.structure.Value>- Specified by:
removeAllin interfaceList<swim.structure.Value>
-
retainAll
- Specified by:
retainAllin interfaceCollection<swim.structure.Value>- Specified by:
retainAllin interfaceList<swim.structure.Value>
-
move
public void move(int fromIndex, int toIndex) - Specified by:
movein interfaceswim.util.KeyedList<swim.structure.Value>
-
move
- Specified by:
movein interfaceswim.util.KeyedList<swim.structure.Value>
-
drop
public void drop(int lower) -
take
public void take(int upper) -
clear
public void clear()- Specified by:
clearin interfaceCollection<swim.structure.Value>- Specified by:
clearin interfaceList<swim.structure.Value>
-
toArray
- Specified by:
toArrayin interfaceCollection<swim.structure.Value>- Specified by:
toArrayin interfaceList<swim.structure.Value>
-
toArray
public <T> T[] toArray(T[] array) - Specified by:
toArrayin interfaceCollection<swim.structure.Value>- Specified by:
toArrayin interfaceList<swim.structure.Value>
-
iterator
public swim.util.Cursor<swim.structure.Value> iterator() -
listIterator
public swim.util.Cursor<swim.structure.Value> listIterator()- Specified by:
listIteratorin interfaceList<swim.structure.Value>
-
listIterator
public swim.util.Cursor<swim.structure.Value> listIterator(int index) - Specified by:
listIteratorin interfaceList<swim.structure.Value>
-
keyIterator
- Specified by:
keyIteratorin interfaceswim.util.KeyedList<swim.structure.Value>
-
entryIterator
- Specified by:
entryIteratorin interfaceswim.util.KeyedList<swim.structure.Value>
-
depthIterator
public swim.util.Cursor<swim.structure.Value> depthIterator(int maxDepth) -
subList
-
identify
protected swim.structure.Value identify(swim.structure.Value value) -
didFail
-
load
-
commitAsync
-
commit
- Throws:
InterruptedException
-