- java.lang.Object
-
- swim.db.StoreContext
-
public class StoreContext extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected StoreSettings
settings
-
Constructor Summary
Constructors Constructor Description StoreContext()
StoreContext(StoreSettings settings)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
autoCommit(Database database, long minCommitSize, long minCommitInterval, Commit commit)
static Commit
autoCommitShifted(Store store, long maxZoneSize, Commit commit)
void
databaseCommitDidFail(Store store, Database database, Throwable error)
void
databaseCompactDidFail(Store store, Database database, Throwable error)
void
databaseDidClose(Store store, Database database)
void
databaseDidCommit(Store store, Database database, Chunk chunk)
void
databaseDidCompact(Store store, Database database, int post)
void
databaseDidDeleteZone(Store store, Database database, int zoneId)
void
databaseDidOpen(Store store, Database database)
void
databaseDidShiftZone(Store store, Database database, Zone newZone)
void
databaseWillClose(Store store, Database database)
Commit
databaseWillCommit(Store store, Database database, Commit commit)
void
databaseWillCompact(Store store, Database database, int post)
void
databaseWillOpen(Store store, Database database)
void
hitPage(Store store, Database database, Page page)
boolean
pageShouldMerge(Store store, Database database, Page page)
boolean
pageShouldSplit(Store store, Database database, Page page)
StoreSettings
settings()
void
treeDidChange(Store store, Database database, Tree newTree, Tree oldTree)
void
treeDidClose(Store store, Database database, Tree tree)
void
treeDidOpen(Store store, Database database, Tree tree)
-
-
-
Field Detail
-
settings
protected final StoreSettings settings
-
-
Constructor Detail
-
StoreContext
public StoreContext(StoreSettings settings)
-
StoreContext
public StoreContext()
-
-
Method Detail
-
settings
public final StoreSettings settings()
-
treeDidChange
public void treeDidChange(Store store, Database database, Tree newTree, Tree oldTree)
-
databaseCommitDidFail
public void databaseCommitDidFail(Store store, Database database, Throwable error)
-
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)
-
-