| java.lang.Object org.apache.derby.impl.sql.catalog.TabInfoImpl
TabInfoImpl | class TabInfoImpl (Code) | | A poor mans structure used in DataDictionaryImpl.java.
Used to save heapId, name pairs for non core tables.
author: jamie |
Field Summary | |
final static int | ROWNOTDUPLICATE ROWNOTDUPLICATE is out of range for a row
number. |
Method Summary | |
int | deleteRow(TransactionController tc, ExecIndexRow key, int indexNumber) Given a key row, delete all matching heap rows and their index
rows.
LOCKING: row locking if there is a key; otherwise,
table locking.
Parameters: tc - transaction controller Parameters: key - key to delete by. Parameters: indexNumber - Key is appropriate for this index. | int | deleteRow(TransactionController tc, ExecIndexRow key, int indexNumber, boolean wait) | int | deleteRows(TransactionController tc, ExecIndexRow startKey, int startOp, Qualifier[][] qualifier, TupleFilter filter, ExecIndexRow stopKey, int stopOp, int indexNumber) Delete the set of rows defined by a scan on an index
from the table. | int | getBaseColumnPosition(int indexNumber, int colNumber) Get the base column position for a column within a catalog
given the (0-based) index number for this catalog and the
(0-based) column number for the column within the index. | CatalogRowFactory | getCatalogRowFactory() Get the CatalogRowFactory for this. | Properties | getCreateHeapProperties() Get the Properties associated with creating the heap. | Properties | getCreateIndexProperties(int indexNumber) Get the Properties associated with creating the specified index.
Parameters: indexNumber - The specified index number. | long | getHeapConglomerate() Get the conglomerate for the heap. | int | getIndexColumnCount(int indexNumber) Get the column count for the specified index number.
Parameters: indexNumber - The index number. | long | getIndexConglomerate(int indexID) Get the conglomerate for the specified index. | String | getIndexName(int indexId) Get the index name. | IndexRowGenerator | getIndexRowGenerator(int indexNumber) Get the IndexRowGenerator for the specified index number.
Parameters: indexNumber - The index number. | int | getNumberOfIndexes() Get the number of indexes on this catalog. | ExecRow | getRow(TransactionController tc, ExecIndexRow key, int indexNumber) Given a key row, return the first matching heap row. | ExecRow | getRow(TransactionController tc, ConglomerateController heapCC, ExecIndexRow key, int indexNumber) Given a key row, return the first matching heap row. | RowLocation | getRowLocation(TransactionController tc, ExecIndexRow key, int indexNumber) Given an index row and index number return the RowLocation
in the heap of the first matching row. | String | getTableName() Get the table name. | int | insertRow(ExecRow row, TransactionController tc, boolean wait) Inserts a base row into a catalog and inserts all the corresponding
index rows. | int | insertRowList(ExecRow[] rowList, TransactionController tc) Inserts a list of base rows into a catalog and inserts all the corresponding
index rows. | boolean | isComplete() Is this fully initialized. | boolean | isIndexUnique(int indexNumber) | void | setHeapConglomerate(long heapConglomerate) Set the heap conglomerate for this. | void | setIndexConglomerate(int index, long indexConglomerate) Set the index conglomerate for the table. | void | setIndexConglomerate(ConglomerateDescriptor cd) Set the index conglomerate for the table. | void | setIndexRowGenerator(int indexNumber, IndexRowGenerator irg) Set the IndexRowGenerator for the specified index number. | public String | toString() | void | updateRow(ExecIndexRow key, ExecRow newRow, int indexNumber, boolean[] indicesToUpdate, int[] colsToUpdate, TransactionController tc) Updates a base row in a catalog and updates all the corresponding
index rows.
Parameters: key - key row Parameters: newRow - new version of the row Parameters: indexNumber - index that key operates Parameters: indicesToUpdate - array of booleans, one for each index on the catalog.if a boolean is true, that means we must update thecorresponding index because changes in the newRowaffect it. Parameters: colsToUpdate - array of ints indicating which columns (1 based)to update. | void | updateRow(ExecIndexRow key, ExecRow newRow, int indexNumber, boolean[] indicesToUpdate, int[] colsToUpdate, TransactionController tc, boolean wait) Updates a base row in a catalog and updates all the corresponding
index rows.
Parameters: key - key row Parameters: newRow - new version of the row Parameters: indexNumber - index that key operates Parameters: indicesToUpdate - array of booleans, one for each index on the catalog.if a boolean is true, that means we must update thecorresponding index because changes in the newRowaffect it. Parameters: colsToUpdate - array of ints indicating which columns (1 based)to update. | void | updateRow(ExecIndexRow key, ExecRow[] newRows, int indexNumber, boolean[] indicesToUpdate, int[] colsToUpdate, TransactionController tc) Updates a set of base rows in a catalog with the same key on an index
and updates all the corresponding index rows. |
ROWNOTDUPLICATE | final static int ROWNOTDUPLICATE(Code) | | ROWNOTDUPLICATE is out of range for a row
number. If a return code does not equal
this value, then it refers to the row
that is a duplicate.
|
TabInfoImpl | TabInfoImpl(CatalogRowFactory crf)(Code) | | Constructor
Parameters: crf - the associated CatalogRowFactory |
deleteRow | int deleteRow(TransactionController tc, ExecIndexRow key, int indexNumber) throws StandardException(Code) | | Given a key row, delete all matching heap rows and their index
rows.
LOCKING: row locking if there is a key; otherwise,
table locking.
Parameters: tc - transaction controller Parameters: key - key to delete by. Parameters: indexNumber - Key is appropriate for this index. the number of rows deleted. If key is not unique,this may be more than one. exception: StandardException - Thrown on failure |
deleteRows | int deleteRows(TransactionController tc, ExecIndexRow startKey, int startOp, Qualifier[][] qualifier, TupleFilter filter, ExecIndexRow stopKey, int stopOp, int indexNumber) throws StandardException(Code) | | Delete the set of rows defined by a scan on an index
from the table. Most of the parameters are simply passed
to TransactionController.openScan. Please refer to the
TransactionController documentation for details.
LOCKING: row locking if there is a start and a stop
key; otherwise, table locking
Parameters: tc - transaction controller Parameters: startKey - key to start the scan. Parameters: startOp - operation to start the scan. Parameters: stopKey - key to start the scan. Parameters: qualifier - a qualifier for the scan. Parameters: filter - filter on base rows Parameters: stopOp - operation to start the scan. Parameters: indexNumber - Key is appropriate for this index. the number of rows deleted. exception: StandardException - Thrown on failure See Also: TransactionController.openScan |
getBaseColumnPosition | int getBaseColumnPosition(int indexNumber, int colNumber)(Code) | | Get the base column position for a column within a catalog
given the (0-based) index number for this catalog and the
(0-based) column number for the column within the index.
Parameters: indexNumber - The index number Parameters: colNumber - The column number within the index int The base column position for the column. |
getCatalogRowFactory | CatalogRowFactory getCatalogRowFactory()(Code) | | Get the CatalogRowFactory for this.
CatalogRowFactory The CatalogRowFactory for this. |
getCreateHeapProperties | Properties getCreateHeapProperties()(Code) | | Get the Properties associated with creating the heap.
The Properties associated with creating the heap. |
getCreateIndexProperties | Properties getCreateIndexProperties(int indexNumber)(Code) | | Get the Properties associated with creating the specified index.
Parameters: indexNumber - The specified index number. The Properties associated with creating the specified index. |
getHeapConglomerate | long getHeapConglomerate()(Code) | | Get the conglomerate for the heap.
long The conglomerate for the heap. |
getIndexColumnCount | int getIndexColumnCount(int indexNumber)(Code) | | Get the column count for the specified index number.
Parameters: indexNumber - The index number. int The column count for the specified index. |
getIndexConglomerate | long getIndexConglomerate(int indexID)(Code) | | Get the conglomerate for the specified index.
long The conglomerate for the specified index. |
getIndexName | String getIndexName(int indexId)(Code) | | Get the index name.
Parameters: indexId - Index number for index for table String The index name. |
getIndexRowGenerator | IndexRowGenerator getIndexRowGenerator(int indexNumber)(Code) | | Get the IndexRowGenerator for the specified index number.
Parameters: indexNumber - The index number. IndexRowGenerator The IRG for the specified index number. |
getNumberOfIndexes | int getNumberOfIndexes()(Code) | | Get the number of indexes on this catalog.
int The number of indexes on this catalog. |
getTableName | String getTableName()(Code) | | Get the table name.
String The table name. |
insertRow | int insertRow(ExecRow row, TransactionController tc, boolean wait) throws StandardException(Code) | | Inserts a base row into a catalog and inserts all the corresponding
index rows.
Parameters: row - row to insert Parameters: tc - transaction Parameters: wait - to wait on lock or quickly TIMEOUT row number (>= 0) if duplicate row inserted into an indexROWNOTDUPLICATE otherwise exception: StandardException - Thrown on failure |
insertRowList | int insertRowList(ExecRow[] rowList, TransactionController tc) throws StandardException(Code) | | Inserts a list of base rows into a catalog and inserts all the corresponding
index rows.
Parameters: rowList - List of rows to insert Parameters: tc - transaction controller row number (>= 0) if duplicate row inserted into an indexROWNOTDUPLICATE otherwise exception: StandardException - Thrown on failure |
isComplete | boolean isComplete()(Code) | | Is this fully initialized.
(i.e., is all conglomerate info initialized)
boolean Whether or not this is fully initialized. |
isIndexUnique | boolean isIndexUnique(int indexNumber)(Code) | | Return whether or not this index is declared unique
Parameters: indexNumber - The index number boolean Whether or not this index is declared unique |
setHeapConglomerate | void setHeapConglomerate(long heapConglomerate)(Code) | | Set the heap conglomerate for this.
Parameters: heapConglomerate - The new heap conglomerate. |
setIndexConglomerate | void setIndexConglomerate(int index, long indexConglomerate)(Code) | | Set the index conglomerate for the table.
Parameters: index - Index number for index for table Parameters: indexConglomerate - The conglomerate for that index |
setIndexConglomerate | void setIndexConglomerate(ConglomerateDescriptor cd)(Code) | | Set the index conglomerate for the table.
Parameters: cd - The ConglomerateDescriptor for one of the indexfor this table. |
setIndexRowGenerator | void setIndexRowGenerator(int indexNumber, IndexRowGenerator irg)(Code) | | Set the IndexRowGenerator for the specified index number.
Parameters: indexNumber - The index number. Parameters: irg - The IndexRowGenerator for the specified index number. |
updateRow | void updateRow(ExecIndexRow key, ExecRow newRow, int indexNumber, boolean[] indicesToUpdate, int[] colsToUpdate, TransactionController tc) throws StandardException(Code) | | Updates a base row in a catalog and updates all the corresponding
index rows.
Parameters: key - key row Parameters: newRow - new version of the row Parameters: indexNumber - index that key operates Parameters: indicesToUpdate - array of booleans, one for each index on the catalog.if a boolean is true, that means we must update thecorresponding index because changes in the newRowaffect it. Parameters: colsToUpdate - array of ints indicating which columns (1 based)to update. If null, do all. Parameters: tc - transaction controller exception: StandardException - Thrown on failure |
updateRow | void updateRow(ExecIndexRow key, ExecRow newRow, int indexNumber, boolean[] indicesToUpdate, int[] colsToUpdate, TransactionController tc, boolean wait) throws StandardException(Code) | | Updates a base row in a catalog and updates all the corresponding
index rows.
Parameters: key - key row Parameters: newRow - new version of the row Parameters: indexNumber - index that key operates Parameters: indicesToUpdate - array of booleans, one for each index on the catalog.if a boolean is true, that means we must update thecorresponding index because changes in the newRowaffect it. Parameters: colsToUpdate - array of ints indicating which columns (1 based)to update. If null, do all. Parameters: tc - transaction controller Parameters: wait - If true, then the caller wants to wait for locks. False will bewhen we using a nested user xaction - we want to timeout right away if the parentholds the lock. (bug 4821) exception: StandardException - Thrown on failure |
updateRow | void updateRow(ExecIndexRow key, ExecRow[] newRows, int indexNumber, boolean[] indicesToUpdate, int[] colsToUpdate, TransactionController tc) throws StandardException(Code) | | Updates a set of base rows in a catalog with the same key on an index
and updates all the corresponding index rows.
Parameters: key - key row Parameters: newRows - new version of the array of rows Parameters: indexNumber - index that key operates Parameters: indicesToUpdate - array of booleans, one for each index on the catalog.if a boolean is true, that means we must update thecorresponding index because changes in the newRowaffect it. Parameters: colsToUpdate - array of ints indicating which columns (1 based)to update. If null, do all. Parameters: tc - transaction controller exception: StandardException - Thrown on failure |
|
|