Module swim.db
Package swim.db

Class Database


  • public class Database
    extends Object
    • Method Detail

      • store

        public Store store()
      • stage

        public Stage stage()
      • 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()
      • isCompacting

        public boolean isCompacting()
      • open

        public boolean open()
      • willOpen

        protected void willOpen()
        Lifecycle callback invoked upon entering the opening state.
      • onOpen

        protected void onOpen()
        Lifecycle callback invoked to actually open the database.
      • didOpen

        protected void didOpen()
        Lifecycle callback invoked upon entering the opened state.
      • close

        public boolean close()
      • willClose

        protected void willClose()
        Lifecycle callback invoked upon entering the closing state.
      • onClose

        protected void onClose()
        Lifecycle callback invoked to actually close the database.
      • didClose

        protected void didClose()
        Lifecycle callback invoked upon entering the closed state.
      • openTrunk

        public <T extends TreeTrunk<T> openTrunk​(Value name,
                                                   TreeType treeType,
                                                   boolean isResident,
                                                   boolean isTransient)
      • openBTreeTrunk

        public Trunk<BTree> openBTreeTrunk​(Value name,
                                           boolean isResident,
                                           boolean isTransient)
      • openBTreeMap

        public BTreeMap openBTreeMap​(Value name,
                                     boolean isResident,
                                     boolean isTransient)
      • openQTreeTrunk

        public Trunk<QTree> openQTreeTrunk​(Value name,
                                           boolean isResident,
                                           boolean isTransient)
      • openQTreeMap

        public <S> QTreeMap<S> openQTreeMap​(Value name,
                                            Z2Form<S> shapeForm,
                                            boolean isResident,
                                            boolean isTransient)
      • openSTreeTrunk

        public Trunk<STree> openSTreeTrunk​(Value name,
                                           boolean isResident,
                                           boolean isTransient)
      • openSTreeList

        public STreeList openSTreeList​(Value name,
                                       boolean isResident,
                                       boolean isTransient)
      • removeTree

        public void removeTree​(Value name)
      • commitAsync

        public void commitAsync​(Commit commit)
      • shiftZone

        public void shiftZone()
      • commitChunk

        public Chunk commitChunk​(Commit commit,
                                 int zone,
                                 long base)
      • 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)