- java.lang.Object
-
- swim.db.STreeList
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int index, Value newValue)
void
add(int index, Value newValue, Object key)
boolean
add(Value newValue)
boolean
add(Value newValue, Object key)
boolean
addAll(int index, Collection<? extends Value> newValues)
boolean
addAll(Collection<? extends Value> newValues)
void
clear()
Chunk
commit(Commit commit)
void
commitAsync(Commit commit)
boolean
contains(Object value)
boolean
containsAll(Collection<?> values)
Database
database()
Cursor<Value>
depthIterator(int maxDepth)
protected void
didFail(StoreException error)
void
drop(int lower)
Cursor<Map.Entry<Object,Value>>
entryIterator()
Value
get(int index)
Value
get(int index, Object key)
Map.Entry<Object,Value>
getEntry(int index)
Map.Entry<Object,Value>
getEntry(int index, Object key)
protected Value
identify(Value value)
int
indexOf(Object object)
boolean
isEmpty()
boolean
isResident()
STreeList
isResident(boolean isResident)
boolean
isTransient()
STreeList
isTransient(boolean isTransient)
Cursor<Value>
iterator()
Cursor<Object>
keyIterator()
int
lastIndexOf(Object object)
Cursor<Value>
listIterator()
Cursor<Value>
listIterator(int index)
STreeList
load()
void
move(int fromIndex, int toIndex)
void
move(int fromIndex, int toIndex, Object key)
Value
name()
Value
remove(int index)
Value
remove(int index, Object key)
boolean
remove(Object value)
boolean
removeAll(Collection<?> values)
boolean
retainAll(Collection<?> values)
Value
set(int index, Value newValue)
Value
set(int index, Value newValue, Object key)
StoreSettings
settings()
void
setTreeDelegate(TreeDelegate treeDelegate)
int
size()
STreeListView
snapshot()
long
span()
List<Value>
subList(int fromIndex, int toIndex)
void
take(int upper)
Object[]
toArray()
<T> T[]
toArray(T[] array)
STree
tree()
TreeDelegate
treeDelegate()
long
treeSize()
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:
containsAll
in interfaceCollection<Value>
- Specified by:
containsAll
in interfaceList<Value>
-
lastIndexOf
public int lastIndexOf(Object object)
- Specified by:
lastIndexOf
in 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:
listIterator
in interfaceList<Value>
-
listIterator
public Cursor<Value> listIterator(int index)
- Specified by:
listIterator
in interfaceList<Value>
-
keyIterator
public Cursor<Object> keyIterator()
- Specified by:
keyIterator
in interfaceKeyedList<Value>
-
entryIterator
public Cursor<Map.Entry<Object,Value>> entryIterator()
- Specified by:
entryIterator
in interfaceKeyedList<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
-
-