public class T_ConsistencyChecker
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private org.apache.derby.iapi.sql.dictionary.DataDictionary |
dd |
private org.apache.derby.iapi.sql.dictionary.ConglomerateDescriptor |
id |
private java.lang.String |
indexName |
private org.apache.derby.iapi.sql.conn.LanguageConnectionContext |
lcc |
private java.lang.String |
schemaName |
private org.apache.derby.iapi.sql.dictionary.SchemaDescriptor |
sd |
private java.lang.String |
tableName |
private org.apache.derby.iapi.store.access.TransactionController |
tc |
private org.apache.derby.iapi.sql.dictionary.TableDescriptor |
td |
Constructor and Description |
---|
T_ConsistencyChecker(java.lang.String schemaName,
java.lang.String tableName,
java.lang.String indexName) |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
countDependencies()
Check to make sure that there are no active dependencies (stored or
in memory).
|
static java.lang.String |
countOpens()
Check to make sure that there are no open conglomerates, scans or sorts.
|
static void |
deleteFirstHeapRow(java.lang.String schemaName,
java.lang.String tableName)
Delete the first row from the heap, without
deleting it from the indexes on the table.
|
private static org.apache.derby.iapi.services.context.Context |
getContext(java.lang.String contextID)
Privileged lookup of a Context.
|
private void |
getContexts() |
private void |
getDescriptors() |
private org.apache.derby.iapi.sql.execute.ExecRow |
getHeapRowOfNulls() |
private org.apache.derby.iapi.sql.dictionary.ConglomerateDescriptor |
getIndexDescriptor() |
private org.apache.derby.iapi.sql.execute.ExecRow |
getIndexTemplateRow(org.apache.derby.iapi.types.RowLocation baseRL) |
static void |
insertBadRowLocation(java.lang.String schemaName,
java.lang.String tableName,
java.lang.String indexName)
Get the first row from the heap and insert it into
the specified index, with a bad row location, without
inserting it into the heap or the other indexes on the table.
|
static void |
nullFirstHeapRow(java.lang.String schemaName,
java.lang.String tableName)
Set all of the columns in the first row from
the heap to null, without
updating the indexes on the table.
|
private org.apache.derby.iapi.store.access.ConglomerateController |
openHeapCC() |
private org.apache.derby.iapi.store.access.ConglomerateController |
openIndexCC() |
private org.apache.derby.iapi.store.access.ScanController |
openUnqualifiedHeapScan() |
private org.apache.derby.iapi.store.access.ScanController |
openUnqualifiedIndexScan() |
static void |
reinsertFirstHeapRow(java.lang.String schemaName,
java.lang.String tableName)
Get the first row from the heap and insert it into
the heap again, without
inserting it from the indexes on the table.
|
static java.lang.String |
runConsistencyChecker()
Run all of the consistency checkers which do not take parameters.
|
static void |
swapColumnsInFirstHeapRow(java.lang.String schemaName,
java.lang.String tableName,
int firstColumn,
int secondColumn)
Swap the values in the specified columns of the
first row from the heap, without
updating the indexes on the table.
|
private org.apache.derby.iapi.sql.dictionary.DataDictionary dd
private org.apache.derby.iapi.store.access.TransactionController tc
private org.apache.derby.iapi.sql.conn.LanguageConnectionContext lcc
private java.lang.String indexName
private java.lang.String schemaName
private java.lang.String tableName
private org.apache.derby.iapi.sql.dictionary.ConglomerateDescriptor id
private org.apache.derby.iapi.sql.dictionary.SchemaDescriptor sd
private org.apache.derby.iapi.sql.dictionary.TableDescriptor td
T_ConsistencyChecker(java.lang.String schemaName, java.lang.String tableName, java.lang.String indexName) throws org.apache.derby.iapi.error.StandardException
org.apache.derby.iapi.error.StandardException
public static void deleteFirstHeapRow(java.lang.String schemaName, java.lang.String tableName) throws org.apache.derby.iapi.error.StandardException
schemaName
- The schema name.tableName
- The table name.org.apache.derby.iapi.error.StandardException
- Thrown on errorpublic static void reinsertFirstHeapRow(java.lang.String schemaName, java.lang.String tableName) throws org.apache.derby.iapi.error.StandardException
schemaName
- The schema name.tableName
- The table name.org.apache.derby.iapi.error.StandardException
- Thrown on errorpublic static void nullFirstHeapRow(java.lang.String schemaName, java.lang.String tableName) throws org.apache.derby.iapi.error.StandardException
schemaName
- The schema name.tableName
- The table name.org.apache.derby.iapi.error.StandardException
- Thrown on errorpublic static void insertBadRowLocation(java.lang.String schemaName, java.lang.String tableName, java.lang.String indexName) throws org.apache.derby.iapi.error.StandardException
schemaName
- The schema name.tableName
- The table name.indexName
- The specified index.org.apache.derby.iapi.error.StandardException
- Thrown on errorpublic static void swapColumnsInFirstHeapRow(java.lang.String schemaName, java.lang.String tableName, int firstColumn, int secondColumn) throws org.apache.derby.iapi.error.StandardException
schemaName
- The schema name.tableName
- The table name.firstColumn
- First column #.secondColumn
- Second column #.org.apache.derby.iapi.error.StandardException
- Thrown on errorprivate void getContexts() throws org.apache.derby.iapi.error.StandardException
org.apache.derby.iapi.error.StandardException
private void getDescriptors() throws org.apache.derby.iapi.error.StandardException
org.apache.derby.iapi.error.StandardException
private org.apache.derby.iapi.sql.execute.ExecRow getHeapRowOfNulls() throws org.apache.derby.iapi.error.StandardException
org.apache.derby.iapi.error.StandardException
private org.apache.derby.iapi.store.access.ScanController openUnqualifiedHeapScan() throws org.apache.derby.iapi.error.StandardException
org.apache.derby.iapi.error.StandardException
private org.apache.derby.iapi.store.access.ConglomerateController openHeapCC() throws org.apache.derby.iapi.error.StandardException
org.apache.derby.iapi.error.StandardException
private org.apache.derby.iapi.sql.execute.ExecRow getIndexTemplateRow(org.apache.derby.iapi.types.RowLocation baseRL) throws org.apache.derby.iapi.error.StandardException
org.apache.derby.iapi.error.StandardException
private org.apache.derby.iapi.store.access.ScanController openUnqualifiedIndexScan() throws org.apache.derby.iapi.error.StandardException
org.apache.derby.iapi.error.StandardException
private org.apache.derby.iapi.store.access.ConglomerateController openIndexCC() throws org.apache.derby.iapi.error.StandardException
org.apache.derby.iapi.error.StandardException
private org.apache.derby.iapi.sql.dictionary.ConglomerateDescriptor getIndexDescriptor()
public static java.lang.String runConsistencyChecker() throws org.apache.derby.iapi.error.StandardException, java.sql.SQLException
org.apache.derby.iapi.error.StandardException
- Thrown on errorjava.sql.SQLException
- Thrown on errorpublic static java.lang.String countOpens() throws org.apache.derby.iapi.error.StandardException
org.apache.derby.iapi.error.StandardException
- Thrown on errorpublic static java.lang.String countDependencies() throws org.apache.derby.iapi.error.StandardException, java.sql.SQLException
org.apache.derby.iapi.error.StandardException
- Thrown on errorjava.sql.SQLException
- Thrown on errorprivate static org.apache.derby.iapi.services.context.Context getContext(java.lang.String contextID)
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.