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 String
baseName()
boolean
close()
void
commitAsync
(Commit commit) final Database
database()
boolean
delete()
void
deletePost
(int post) protected void
didClose()
Lifecycle callback invoked upon entering the closed state.protected void
didOpen()
Lifecycle callback invoked upon entering the opened state.final File
final boolean
final boolean
int
int
protected void
onClose()
Lifecycle callback invoked to actually close the store.protected void
onOpen()
Lifecycle callback invoked to actually open the store.boolean
open()
openPageLoader
(TreeDelegate treeDelegate, boolean isResident) protected Zone
openZone()
openZone
(int zoneId) final HashGenCacheSet<Page>
final long
size()
final Stage
stage()
final StoreContext
protected void
Lifecycle callback invoked upon entering the closing state.protected void
willOpen()
Lifecycle callback invoked upon entering the opening state.zone()
zone
(int zoneId) protected File
zoneFile
(int zone) final String
-
Constructor Details
-
FileStore
-
FileStore
-
FileStore
-
FileStore
-
FileStore
-
FileStore
-
-
Method Details
-
storeContext
- Specified by:
storeContext
in classStore
-
database
-
directory
-
baseName
-
zoneFileExt
-
stage
-
pageCache
-
size
public final long size() -
isCommitting
public final boolean isCommitting()- Specified by:
isCommitting
in classStore
-
isCompacting
public final boolean isCompacting()- Specified by:
isCompacting
in 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:
oldestZoneId
in classStore
-
newestZoneId
public int newestZoneId()- Specified by:
newestZoneId
in classStore
-
zone
-
zone
-
openZone
-
openZone
-
deletePost
public void deletePost(int post) - Specified by:
deletePost
in classStore
-
delete
public boolean delete() -
openDatabase
- Specified by:
openDatabase
in classStore
-
openPageLoader
- Specified by:
openPageLoader
in classStore
-
commitAsync
- Specified by:
commitAsync
in classStore
-
shiftZone
-
zoneFile
-
zoneFiles
-