- java.lang.Object
- 
- swim.db.Store
- 
- swim.db.FileStore
 
 
- 
 public class FileStore extends Store 
- 
- 
Constructor SummaryConstructors Constructor Description FileStore(File directory, String baseName, Stage stage)FileStore(File basePath, Stage stage)FileStore(String basePath, Stage stage)FileStore(StoreContext context, File directory, String baseName, Stage stage)FileStore(StoreContext context, File basePath, Stage stage)FileStore(StoreContext context, String basePath, Stage stage)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description StringbaseName()booleanclose()voidcommitAsync(Commit commit)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.Filedirectory()booleanisCommitting()booleanisCompacting()intnewestZoneId()intoldestZoneId()protected voidonClose()Lifecycle callback invoked to actually close the store.protected voidonOpen()Lifecycle callback invoked to actually open the store.booleanopen()DatabaseopenDatabase()PageLoaderopenPageLoader(TreeDelegate treeDelegate, boolean isResident)protected ZoneopenZone()FileZoneopenZone(int zoneId)HashGenCacheSet<Page>pageCache()FileZoneshiftZone()longsize()Stagestage()StoreContextstoreContext()protected voidwillClose()Lifecycle callback invoked upon entering the closing state.protected voidwillOpen()Lifecycle callback invoked upon entering the opening state.FileZonezone()FileZonezone(int zoneId)protected FilezoneFile(int zone)StringzoneFileExt()protected TreeMap<Integer,File>zoneFiles()
 
- 
- 
- 
Constructor Detail- 
FileStorepublic FileStore(StoreContext context, File directory, String baseName, Stage stage) 
 - 
FileStorepublic FileStore(StoreContext context, File basePath, Stage stage) 
 - 
FileStorepublic FileStore(StoreContext context, String basePath, Stage stage) 
 
- 
 - 
Method Detail- 
storeContextpublic final StoreContext storeContext() - Specified by:
- storeContextin class- Store
 
 - 
directorypublic final File directory() 
 - 
baseNamepublic final String baseName() 
 - 
zoneFileExtpublic final String zoneFileExt() 
 - 
pageCachepublic final HashGenCacheSet<Page> pageCache() 
 - 
isCommittingpublic final boolean isCommitting() - Specified by:
- isCommittingin class- Store
 
 - 
isCompactingpublic final boolean isCompacting() - Specified by:
- isCompactingin class- Store
 
 - 
willOpenprotected void willOpen() Lifecycle callback invoked upon entering the opening state.
 - 
onOpenprotected void onOpen() Lifecycle callback invoked to actually open the store.
 - 
didOpenprotected void didOpen() Lifecycle callback invoked upon entering the opened state.
 - 
willCloseprotected void willClose() Lifecycle callback invoked upon entering the closing state.
 - 
onCloseprotected void onClose() Lifecycle callback invoked to actually close the store.
 - 
didCloseprotected void didClose() Lifecycle callback invoked upon entering the closed state.
 - 
oldestZoneIdpublic int oldestZoneId() - Specified by:
- oldestZoneIdin class- Store
 
 - 
newestZoneIdpublic int newestZoneId() - Specified by:
- newestZoneIdin class- Store
 
 - 
openZoneprotected Zone openZone() 
 - 
deletePostpublic void deletePost(int post) - Specified by:
- deletePostin class- Store
 
 - 
deletepublic boolean delete() 
 - 
openDatabasepublic Database openDatabase() - Specified by:
- openDatabasein class- Store
 
 - 
openPageLoaderpublic PageLoader openPageLoader(TreeDelegate treeDelegate, boolean isResident) - Specified by:
- openPageLoaderin class- Store
 
 - 
commitAsyncpublic void commitAsync(Commit commit) - Specified by:
- commitAsyncin class- Store
 
 - 
zoneFileprotected File zoneFile(int zone) 
 
- 
 
-