- java.lang.Object
-
- swim.db.Zone
-
- swim.db.FileZone
-
public class FileZone extends Zone
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
close()
Chunk
commitAndWriteChunk(Commit commit)
Database
database()
protected void
didClose()
Lifecycle callback invoked upon entering the closed state.protected void
didOpen()
Lifecycle callback invoked upon entering the opened state.File
file()
Germ
germ()
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()
Database
openDatabase()
FileChannel
openReadChannel()
FileChannel
openWriteChannel()
protected Germ
parseGerm(Input input)
StoreSettings
settings()
long
size()
Stage
stage()
Store
store()
protected void
willClose()
Lifecycle callback invoked upon entering the closing state.protected void
willOpen()
Lifecycle callback invoked upon entering the opening state.
-
-
-
Method Detail
-
store
public final Store store()
-
file
public final File file()
-
stage
public final Stage stage()
-
database
public final Database database()
-
settings
public final StoreSettings settings()
-
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.
-
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
protected Germ loadGerm()
-
openDatabase
public Database openDatabase()
- Specified by:
openDatabase
in classZone
-
openReadChannel
public FileChannel openReadChannel() throws IOException
- Throws:
IOException
-
openWriteChannel
public FileChannel openWriteChannel() throws IOException
- Throws:
IOException
-
commitAndWriteChunk
public Chunk commitAndWriteChunk(Commit commit)
- Specified by:
commitAndWriteChunk
in classZone
-
-