- java.lang.Object
-
- swim.db.Store
-
- swim.db.FileStore
-
public class FileStore extends Store
-
-
Constructor Summary
Constructors 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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringbaseName()voidclose()voidcloseAsync(Cont<Store> cont)voidcommitAsync(Commit commit)voidcompactAsync(Compact compact)Databasedatabase()booleandelete()Filedirectory()booleanisCommitting()booleanisCompacting()FileStoreopen()voidopenAsync(Cont<Store> cont)voidopenDatabaseAsync(Cont<Database> cont)PageLoaderopenPageLoader(TreeDelegate treeDelegate, boolean isResident)FileZoneopenZone(int zoneId)voidopenZoneAsync(int zoneId, Cont<Zone> cont)HashGenCacheSet<Page>pageCache()FileZoneshiftZone()longsize()Stagestage()StoreContextstoreContext()FileZonezone()FileZonezone(int zoneId)protected FilezoneFile(int zone)StringzoneFileExt()protected TreeMap<Integer,File>zoneFiles()-
Methods inherited from class swim.db.Store
openDatabase, settings
-
-
-
-
Constructor Detail
-
FileStore
public FileStore(StoreContext context, File directory, String baseName, Stage stage)
-
FileStore
public FileStore(StoreContext context, File basePath, Stage stage)
-
FileStore
public FileStore(StoreContext context, String basePath, Stage stage)
-
-
Method Detail
-
storeContext
public final StoreContext storeContext()
- Specified by:
storeContextin classStore
-
directory
public final File directory()
-
baseName
public final String baseName()
-
zoneFileExt
public final String zoneFileExt()
-
pageCache
public final HashGenCacheSet<Page> pageCache()
-
isCommitting
public final boolean isCommitting()
- Specified by:
isCommittingin classStore
-
isCompacting
public final boolean isCompacting()
- Specified by:
isCompactingin classStore
-
open
public FileStore open() throws InterruptedException
- Specified by:
openin classStore- Throws:
InterruptedException
-
closeAsync
public void closeAsync(Cont<Store> cont)
- Specified by:
closeAsyncin classStore
-
close
public void close() throws InterruptedException- Specified by:
closein classStore- Throws:
InterruptedException
-
delete
public boolean delete()
-
openZoneAsync
public void openZoneAsync(int zoneId, Cont<Zone> cont)- Specified by:
openZoneAsyncin classStore
-
openZone
public FileZone openZone(int zoneId) throws InterruptedException
- Specified by:
openZonein classStore- Throws:
InterruptedException
-
openDatabaseAsync
public void openDatabaseAsync(Cont<Database> cont)
- Specified by:
openDatabaseAsyncin classStore
-
openPageLoader
public PageLoader openPageLoader(TreeDelegate treeDelegate, boolean isResident)
- Specified by:
openPageLoaderin classStore
-
commitAsync
public void commitAsync(Commit commit)
- Specified by:
commitAsyncin classStore
-
compactAsync
public void compactAsync(Compact compact)
- Specified by:
compactAsyncin classStore
-
zoneFile
protected File zoneFile(int zone)
-
-