Module swim.db
Package swim.db

Class StoreContext


  • public class StoreContext
    extends Object
    • Constructor Detail

      • StoreContext

        public StoreContext()
    • Method Detail

      • pageShouldSplit

        public boolean pageShouldSplit​(Store store,
                                       Database database,
                                       Page page)
      • pageShouldMerge

        public boolean pageShouldMerge​(Store store,
                                       Database database,
                                       Page page)
      • treeDidOpen

        public void treeDidOpen​(Store store,
                                Database database,
                                Tree tree)
      • treeDidClose

        public void treeDidClose​(Store store,
                                 Database database,
                                 Tree tree)
      • treeDidChange

        public void treeDidChange​(Store store,
                                  Database database,
                                  Tree newTree,
                                  Tree oldTree)
      • databaseWillOpen

        public void databaseWillOpen​(Store store,
                                     Database database)
      • databaseDidOpen

        public void databaseDidOpen​(Store store,
                                    Database database)
      • databaseWillClose

        public void databaseWillClose​(Store store,
                                      Database database)
      • databaseDidClose

        public void databaseDidClose​(Store store,
                                     Database database)
      • databaseDidCommit

        public void databaseDidCommit​(Store store,
                                      Database database,
                                      Chunk chunk)
      • databaseCommitDidFail

        public void databaseCommitDidFail​(Store store,
                                          Database database,
                                          Throwable error)
      • databaseWillCompact

        public void databaseWillCompact​(Store store,
                                        Database database,
                                        int post)
      • databaseDidCompact

        public void databaseDidCompact​(Store store,
                                       Database database,
                                       int post)
      • databaseCompactDidFail

        public void databaseCompactDidFail​(Store store,
                                           Database database,
                                           Throwable error)
      • databaseDidShiftZone

        public void databaseDidShiftZone​(Store store,
                                         Database database,
                                         Zone newZone)
      • databaseDidDeleteZone

        public void databaseDidDeleteZone​(Store store,
                                          Database database,
                                          int zoneId)
      • autoCommit

        public static boolean autoCommit​(Database database,
                                         long minCommitSize,
                                         long minCommitInterval,
                                         Commit commit)
      • autoCommitShifted

        public static Commit autoCommitShifted​(Store store,
                                               long maxZoneSize,
                                               Commit commit)