Package dev.frostlake.persistence
Class DiskTableDataStore
java.lang.Object
dev.frostlake.persistence.DiskTableDataStore
- All Implemented Interfaces:
TableDataStore
TableDataStore over a checkpoint's tables directory — one serialized file per table.-
Constructor Summary
Constructors -
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)
-
Constructor Details
-
DiskTableDataStore
-
-
Method Details
-
save
public void save(String database, String schema, String table, TableDataSnapshot data) throws IOException - Specified by:
savein interfaceTableDataStore- Throws:
IOException
-
load
public TableDataSnapshot load(String database, String schema, String table) throws IOException, ClassNotFoundException Description copied from interface:TableDataStoreThe saved data for a table, or null when none was recorded (an empty table).- Specified by:
loadin interfaceTableDataStore- Throws:
IOExceptionClassNotFoundException
-