java.lang.Object
org.apache.derby.impl.sql.execute.GenericConstantAction
org.apache.derby.impl.sql.execute.DDLConstantAction
org.apache.derby.impl.sql.execute.DDLSingleTableConstantAction
org.apache.derby.impl.sql.execute.IndexConstantAction
org.apache.derby.impl.sql.execute.CreateIndexConstantAction
- All Implemented Interfaces:
- org.apache.derby.iapi.sql.execute.ConstantAction
- class CreateIndexConstantAction
- extends IndexConstantAction
This class describes actions that are ALWAYS performed for a
CREATE TABLE Statement at Execution time.
|
Constructor Summary |
(package private) |
CreateIndexConstantAction(boolean unique,
java.lang.String indexType,
java.lang.String schemaName,
java.lang.String indexName,
java.lang.String tableName,
org.apache.derby.catalog.UUID tableId,
long conglomId,
java.lang.String[] columnNames,
boolean[] isAscending,
boolean isConstraint,
org.apache.derby.catalog.UUID conglomerateUUID,
java.util.Properties properties)
Make the ConstantAction for a CREATE INDEX statement. |
unique
private boolean unique
indexType
private java.lang.String indexType
conglomId
private long conglomId
columnNames
private java.lang.String[] columnNames
isAscending
private boolean[] isAscending
isConstraint
private boolean isConstraint
conglomerateUUID
private org.apache.derby.catalog.UUID conglomerateUUID
properties
private java.util.Properties properties
indexTemplateRow
private org.apache.derby.iapi.sql.execute.ExecRow indexTemplateRow
CreateIndexConstantAction
CreateIndexConstantAction(boolean unique,
java.lang.String indexType,
java.lang.String schemaName,
java.lang.String indexName,
java.lang.String tableName,
org.apache.derby.catalog.UUID tableId,
long conglomId,
java.lang.String[] columnNames,
boolean[] isAscending,
boolean isConstraint,
org.apache.derby.catalog.UUID conglomerateUUID,
java.util.Properties properties)
- Make the ConstantAction for a CREATE INDEX statement.
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object
- Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method
never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string
concatenation with this object. If the result is
null, string concatenation will instead
use "null".
The default implementation returns
getClass().getName() + "@" +
Integer.toHexString(hashCode()).
executeConstantAction
public void executeConstantAction(org.apache.derby.iapi.sql.Activation activation)
throws org.apache.derby.iapi.error.StandardException
- This is the guts of the Execution-time logic for CREATE INDEX.
getIndexTemplateRow
org.apache.derby.iapi.sql.execute.ExecRow getIndexTemplateRow()
statementExceptionCleanup
private void statementExceptionCleanup(org.apache.derby.iapi.store.access.ScanController scan,
org.apache.derby.iapi.store.access.ConglomerateController indexController)
throws org.apache.derby.iapi.error.StandardException
- Do necessary clean up (close down controllers, etc.) before throwing
a statement exception.
loadSorter
private org.apache.derby.iapi.store.access.RowLocationRetRowSource loadSorter(org.apache.derby.iapi.sql.execute.ExecRow[] baseRows,
org.apache.derby.iapi.sql.execute.ExecIndexRow[] indexRows,
org.apache.derby.iapi.store.access.TransactionController tc,
org.apache.derby.iapi.store.access.GroupFetchScanController scan,
long sortId,
org.apache.derby.iapi.types.RowLocation[] rl)
throws org.apache.derby.iapi.error.StandardException
- Scan the base conglomerate and insert the keys into a sorter,
returning a rowSource on the sorter.