java.lang.Object
swim.db.Store
swim.db.FileStore
-
Constructor Summary
ConstructorsConstructorDescriptionFileStore(StoreContext context, File directory, String baseName, Stage stage) FileStore(StoreContext context, File basePath, Stage stage) FileStore(StoreContext context, String basePath, Stage stage) -
Method Summary
Modifier and TypeMethodDescriptionfinal StringbaseName()booleanclose()voidcommitAsync(Commit commit) final Databasedatabase()booleandelete()voiddeletePost(int post) protected voiddidClose()Lifecycle callback invoked upon entering the closed state.protected voiddidOpen()Lifecycle callback invoked upon entering the opened state.final Filefinal booleanfinal booleanintintprotected voidonClose()Lifecycle callback invoked to actually close the store.protected voidonOpen()Lifecycle callback invoked to actually open the store.booleanopen()openPageLoader(TreeDelegate treeDelegate, boolean isResident) protected ZoneopenZone()openZone(int zoneId) final HashGenCacheSet<Page>final longsize()final Stagestage()final StoreContextprotected voidLifecycle callback invoked upon entering the closing state.protected voidwillOpen()Lifecycle callback invoked upon entering the opening state.zone()zone(int zoneId) protected FilezoneFile(int zone) final String
-
Constructor Details
-
FileStore
-
FileStore
-
FileStore
-
FileStore
-
FileStore
-
FileStore
-
-
Method Details
-
storeContext
- Specified by:
storeContextin classStore
-
database
-
directory
-
baseName
-
zoneFileExt
-
stage
-
pageCache
-
size
public final long size() -
isCommitting
public final boolean isCommitting()- Specified by:
isCommittingin classStore
-
isCompacting
public final boolean isCompacting()- Specified by:
isCompactingin classStore
-
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 store. -
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 store. -
didClose
protected void didClose()Lifecycle callback invoked upon entering the closed state. -
oldestZoneId
public int oldestZoneId()- Specified by:
oldestZoneIdin classStore
-
newestZoneId
public int newestZoneId()- Specified by:
newestZoneIdin classStore
-
zone
-
zone
-
openZone
-
openZone
-
deletePost
public void deletePost(int post) - Specified by:
deletePostin classStore
-
delete
public boolean delete() -
openDatabase
- Specified by:
openDatabasein classStore
-
openPageLoader
- Specified by:
openPageLoaderin classStore
-
commitAsync
- Specified by:
commitAsyncin classStore
-
shiftZone
-
zoneFile
-
zoneFiles
-