Package dev.frostlake.persistence
Interface TableDataStore
- All Known Implementing Classes:
DiskTableDataStore,MemoryTableDataStore
public interface TableDataStore
Where per-table row data goes during a state snapshot and comes from during a restore. The disk
implementation (
DiskTableDataStore) keeps the on-disk checkpoint format; the in-memory one
(MemoryTableDataStore) backs DatabaseEngine.cloneInstance(), which never touches
the filesystem.-
Method Summary
Modifier and TypeMethodDescriptionThe saved data for a table, or null when none was recorded (an empty table).voidsave(String database, String schema, String table, TableDataSnapshot data)
-
Method Details
-
save
- Throws:
IOException
-
load
TableDataSnapshot load(String database, String schema, String table) throws IOException, ClassNotFoundException The saved data for a table, or null when none was recorded (an empty table).- Throws:
IOExceptionClassNotFoundException
-