- java.lang.Object
-
- swim.db.Database
-
public class Database extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidcloseAsync(swim.concurrent.Cont<Database> cont)voidcloseTrunk(swim.structure.Value name)Chunkcommit(Commit commit)voidcommitAsync(Commit commit)ChunkcommitChunk(Commit commit, int zone, long base)Storecompact(Compact compact)voidcompactAsync(Compact compact)DatabaseDelegatedatabaseDelegate()voiddatabaseDidCloseTrunk(Trunk<?> trunk)voiddatabaseDidCreateTrunk(Trunk<?> trunk)voiddatabaseDidOpenTrunk(Trunk<?> trunk)voiddatabaseDidUpdateTrunk(Trunk<?> trunk, Tree newTree, Tree oldTree, long newVersion)longdiffSize()voidevacuate(int post)voidevacuateAsync(int post, swim.concurrent.Cont<Database> cont)Germgerm()Iterator<MetaLeaf>leafs()Databaseopen()voidopenAsync(swim.concurrent.Cont<Database> cont)BTreeMapopenBTreeMap(String name)BTreeMapopenBTreeMap(swim.structure.Value name)BTreeMapopenBTreeMap(swim.structure.Value name, boolean isResident, boolean isTransient)Trunk<BTree>openBTreeTrunk(swim.structure.Value name, boolean isResident, boolean isTransient)<S> QTreeMap<S>openQTreeMap(String name, swim.math.Z2Form<S> shapeForm)<S> QTreeMap<S>openQTreeMap(swim.structure.Value name, swim.math.Z2Form<S> shapeForm)<S> QTreeMap<S>openQTreeMap(swim.structure.Value name, swim.math.Z2Form<S> shapeForm, boolean isResident, boolean isTransient)Trunk<QTree>openQTreeTrunk(swim.structure.Value name, boolean isResident, boolean isTransient)STreeListopenSTreeList(String name)STreeListopenSTreeList(swim.structure.Value name)STreeListopenSTreeList(swim.structure.Value name, boolean isResident, boolean isTransient)Trunk<STree>openSTreeTrunk(swim.structure.Value name, boolean isResident, boolean isTransient)<T extends Tree>
Trunk<T>openTrunk(swim.structure.Value name, TreeType treeType, boolean isResident, boolean isTransient)UTreeValueopenUTreeValue(String name)UTreeValueopenUTreeValue(swim.structure.Value name)intpost()voidremoveTree(swim.structure.Value name)voidsetDatabaseDelegate(DatabaseDelegate delegate)StoreSettingssettings()voidshiftZone()swim.concurrent.Stagestage()intstem()Storestore()longtreeCount()Iterator<MetaTree>trees()longtreeSize()inttrunkCount()voiduncommit(long version)longversion()
-
-
-
Method Detail
-
store
public Store store()
-
settings
public StoreSettings settings()
-
stage
public swim.concurrent.Stage stage()
-
databaseDelegate
public DatabaseDelegate databaseDelegate()
-
setDatabaseDelegate
public void setDatabaseDelegate(DatabaseDelegate delegate)
-
germ
public Germ germ()
-
stem
public int stem()
-
post
public int post()
-
version
public long version()
-
diffSize
public long diffSize()
-
treeSize
public long treeSize()
-
treeCount
public long treeCount()
-
trunkCount
public int trunkCount()
-
openAsync
public void openAsync(swim.concurrent.Cont<Database> cont)
-
open
public Database open() throws InterruptedException
- Throws:
InterruptedException
-
closeAsync
public void closeAsync(swim.concurrent.Cont<Database> cont)
-
close
public void close() throws InterruptedException- Throws:
InterruptedException
-
openTrunk
public <T extends Tree> Trunk<T> openTrunk(swim.structure.Value name, TreeType treeType, boolean isResident, boolean isTransient)
-
openBTreeTrunk
public Trunk<BTree> openBTreeTrunk(swim.structure.Value name, boolean isResident, boolean isTransient)
-
openBTreeMap
public BTreeMap openBTreeMap(swim.structure.Value name, boolean isResident, boolean isTransient)
-
openBTreeMap
public BTreeMap openBTreeMap(swim.structure.Value name)
-
openQTreeTrunk
public Trunk<QTree> openQTreeTrunk(swim.structure.Value name, boolean isResident, boolean isTransient)
-
openQTreeMap
public <S> QTreeMap<S> openQTreeMap(swim.structure.Value name, swim.math.Z2Form<S> shapeForm, boolean isResident, boolean isTransient)
-
openQTreeMap
public <S> QTreeMap<S> openQTreeMap(swim.structure.Value name, swim.math.Z2Form<S> shapeForm)
-
openSTreeTrunk
public Trunk<STree> openSTreeTrunk(swim.structure.Value name, boolean isResident, boolean isTransient)
-
openSTreeList
public STreeList openSTreeList(swim.structure.Value name, boolean isResident, boolean isTransient)
-
openSTreeList
public STreeList openSTreeList(swim.structure.Value name)
-
openUTreeValue
public UTreeValue openUTreeValue(swim.structure.Value name)
-
openUTreeValue
public UTreeValue openUTreeValue(String name)
-
closeTrunk
public void closeTrunk(swim.structure.Value name)
-
removeTree
public void removeTree(swim.structure.Value name)
-
commitAsync
public void commitAsync(Commit commit)
-
commit
public Chunk commit(Commit commit) throws InterruptedException
- Throws:
InterruptedException
-
compactAsync
public void compactAsync(Compact compact)
-
compact
public Store compact(Compact compact) throws InterruptedException
- Throws:
InterruptedException
-
evacuateAsync
public void evacuateAsync(int post, swim.concurrent.Cont<Database> cont)
-
evacuate
public void evacuate(int post)
-
shiftZone
public void shiftZone()
-
uncommit
public void uncommit(long version)
-
databaseDidCreateTrunk
public void databaseDidCreateTrunk(Trunk<?> trunk)
-
databaseDidOpenTrunk
public void databaseDidOpenTrunk(Trunk<?> trunk)
-
databaseDidUpdateTrunk
public void databaseDidUpdateTrunk(Trunk<?> trunk, Tree newTree, Tree oldTree, long newVersion)
-
databaseDidCloseTrunk
public void databaseDidCloseTrunk(Trunk<?> trunk)
-
-