java.lang.Object
swim.db.Zone
swim.db.FileZone
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
close()
commitAndWriteChunk
(Commit commit) final Database
database()
protected void
didClose()
Lifecycle callback invoked upon entering the closed state.protected void
didOpen()
Lifecycle callback invoked upon entering the opened state.final File
file()
final Germ
germ()
final int
id()
protected Germ
loadGerm()
protected void
onClose()
Lifecycle callback invoked to actually close the zone.protected void
onOpen()
Lifecycle callback invoked to actually open the zone.boolean
open()
protected Germ
final StoreSettings
settings()
final long
size()
final Stage
stage()
final Store
store()
protected void
Lifecycle callback invoked upon entering the closing state.protected void
willOpen()
Lifecycle callback invoked upon entering the opening state.
-
Constructor Details
-
FileZone
-
FileZone
-
-
Method Details
-
store
-
id
public final int id() -
file
-
stage
-
database
-
germ
-
settings
-
size
public final long size() -
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 zone. -
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 zone. -
didClose
protected void didClose()Lifecycle callback invoked upon entering the closed state. -
loadGerm
-
parseGerm
-
openDatabase
- Specified by:
openDatabase
in classZone
-
openReadChannel
- Throws:
IOException
-
openWriteChannel
- Throws:
IOException
-
commitAndWriteChunk
- Specified by:
commitAndWriteChunk
in classZone
-