net.sf.farrago.ddl
Class DdlRebuildTableStmt
java.lang.Object
net.sf.farrago.ddl.DdlStmt
net.sf.farrago.ddl.DdlReloadTableStmt
net.sf.farrago.ddl.DdlRebuildTableStmt
- All Implemented Interfaces:
- DdlMultipleTransactionStmt, FarragoSessionDdlStmt
public class DdlRebuildTableStmt
- extends DdlReloadTableStmt
DdlRebuildTableStmt represents an ALTER TABLE ... REBUILD statement. The
statement compacts data stored in a table's indexes by removing deleted
entries.
Note: Although DdlRebuildTableStmt is an ALTER statement, it does not
extend DdlAlterStmt
. This avoids the complexity of having subclasses
of DdlAlterStmt which may or may not also be implementations of DdlMultipleTransactionStmt
.
- Version:
- $Id: //open/dev/farrago/src/net/sf/farrago/ddl/DdlRebuildTableStmt.java#14 $
- Author:
- John Pham
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DdlRebuildTableStmt
public DdlRebuildTableStmt(CwmTable table)
- Constructs a DdlRebuildTableStmt.
getReloadDml
protected String getReloadDml(SqlPrettyWriter writer)
- Generates the query: "insert into T select * from T"
- Specified by:
getReloadDml
in class DdlReloadTableStmt
- Parameters:
writer
- writer to uses for generating SQL
- Returns:
- DML statement which accomplishes reload