Class StorageEngine

java.lang.Object
dev.frostlake.storage.StorageEngine

public class StorageEngine extends Object
  • Constructor Details

    • StorageEngine

      public StorageEngine()
  • Method Details

    • setEnforcePrimaryKey

      public void setEnforcePrimaryKey(boolean enforce)
    • setEnforceUniqueKey

      public void setEnforceUniqueKey(boolean enforce)
    • isEnforcePrimaryKey

      public boolean isEnforcePrimaryKey()
    • isEnforceUniqueKey

      public boolean isEnforceUniqueKey()
    • setTimeTravelEnabled

      public void setTimeTravelEnabled(boolean enabled)
    • isTimeTravelEnabled

      public boolean isTimeTravelEnabled()
    • snapshotDirtyTables

      public void snapshotDirtyTables()
      Take one time-travel snapshot of every table mutated since the last call, then reset.
    • createTable

      public void createTable(String qualifiedName, Table tableMetadata)
    • dropTable

      public void dropTable(String qualifiedName)
    • hasTable

      public boolean hasTable(String qualifiedName)
    • swapTables

      public void swapTables(String fqNameA, String fqNameB)
      ALTER TABLE a SWAP WITH b: exchange the row storage of two tables (their structure is assumed compatible).
    • renameTable

      public void renameTable(String oldQualifiedName, String newQualifiedName)
      ALTER TABLE a RENAME TO b: move the row storage from the old key to the new one.
    • getTableStorage

      public TableStorage getTableStorage(String qualifiedName)
    • truncateTable

      public void truncateTable(String qualifiedName)
    • cloneTableData

      public void cloneTableData(String sourceQualifiedName, String targetQualifiedName)