| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private final CatalogRowFactory | |
| private long | |
| private boolean | |
| private IndexInfoImpl[] | |
| private int | |
| pack-priv static final int | ROWNOTDUPLICATE
ROWNOTDUPLICATE is out of range for a row number. |
| private int[] |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv int | Returns: the number of rows deleted. If key is not unique, this may be more than one.transaction controller tc, ExecIndexRow key to delete by. key, int Key is appropriate for this index. indexNumber)Given a key row, delete all matching heap rows and their index rows. |
| pack-priv int | |
| pack-priv int | Returns: the number of rows deleted.transaction controller tc, ExecIndexRow key to start the scan. startKey, int operation to start the scan. startOp, Qualifier[][] a qualifier for the scan. qualifier, TupleFilter filter on base rows filter, ExecIndexRow key to start the scan. stopKey, int operation to start the scan. stopOp, int Key is appropriate for this index. indexNumber)Delete the set of rows defined by a scan on an index from the table. |
| private int | deleteRows(TransactionController tc, ExecIndexRow startKey, int startOp, Qualifier[][] qualifier, TupleFilter filter, ExecIndexRow stopKey, int stopOp, int indexNumber, boolean wait)
|
| pack-priv int | Returns: int The base column position for the column.The index number indexNumber, int The column number within the index 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. |
| pack-priv CatalogRowFactory | Returns: CatalogRowFactory The CatalogRowFactory for this.Get the CatalogRowFactory for this. |
| pack-priv Properties | Returns: The Properties associated with creating the heap.Get the Properties associated with creating the heap. |
| pack-priv Properties | Returns: The Properties associated with creating the specified index.The specified index number. indexNumber)Get the Properties associated with creating the specified index. |
| pack-priv long | |
| pack-priv int | Returns: int The column count for the specified index.The index number. indexNumber)Get the column count for the specified index number. |
| pack-priv long | Returns: long The conglomerate for the specified index.Get the conglomerate for the specified index. |
| pack-priv String | Returns: String The index name.Index number for index for table indexId)Get the index name. |
| private ExecIndexRow | Returns: ExecIndexRow Index row.IndexRowGenerator to use irg, RowLocation RowLocation for heap rl, ExecRow Row from the heap heapRow)Get an index row based on a row from the heap. |
| pack-priv IndexRowGenerator | Returns: IndexRowGenerator The IRG for the specified index number.The index number. indexNumber)Get the IndexRowGenerator for the specified index number. |
| pack-priv int | Returns: int The number of indexes on this catalog.Get the number of indexes on this catalog. |
| pack-priv ExecRow | getRow(TransactionController
transaction controller tc, ExecIndexRow key to read by. key, int Key is appropriate for this index. indexNumber)Given a key row, return the first matching heap row. |
| pack-priv ExecRow | getRow(TransactionController
transaction controller tc, ConglomerateController heap to look in heapCC, ExecIndexRow key to read by. key, int Key is appropriate for this index. indexNumber)Given a key row, return the first matching heap row. |
| private RowChanger | Returns: a row changer for this catalog.transaction controller tc, int[] the columns to change (1 based), may be null changedCols, ExecRow used to detemine column types at creation time
only. The row changer does ***Not*** keep a referance to
this row or change it in any way. baseRow)Gets a row changer for this catalog. |
| private ExecRow | getRowInternal(TransactionController tc, ConglomerateController heapCC, ExecIndexRow key, int indexNumber, RowLocation[] rl)
|
| pack-priv RowLocation | getRowLocation(TransactionController
Transaction Controller to use. tc, ExecIndexRow Index Row to search in the index. key, int Identifies the index to use. indexNumber)Given an index row and index number return the RowLocation in the heap of the first matching row. |
| private int[] | |
| pack-priv String | |
| pack-priv int | Returns: row number (>= 0) if duplicate row inserted into an index ROWNOTDUPLICATE otherwiserow to insert row, TransactionController transaction tc)Inserts a base row into a catalog and inserts all the corresponding index rows. |
| pack-priv int | Returns: row number (>= 0) if duplicate row inserted into an index ROWNOTDUPLICATE otherwiseList of rows to insert rowList, TransactionController transaction controller tc)Inserts a list of base rows into a catalog and inserts all the corresponding index rows. |
| private int | Returns: row number (>= 0) if duplicate row inserted into an index ROWNOTDUPLICATE otherwisethe list of rows to insert rowList, TransactionController transaction controller tc, RowLocation[] on output rowLocationOut[0] is set to the
last RowLocation inserted. rowLocationOut)Insert logic to insert a list of rows into a table. |
| pack-priv boolean | |
| pack-priv boolean | Returns: boolean Whether or not this index is declared uniqueThe index number indexNumber)Return whether or not this index is declared unique |
| pack-priv void | setHeapConglomerate(long
The new heap conglomerate. heapConglomerate)Set the heap conglomerate for this. |
| pack-priv void | setIndexConglomerate(int
Index number for index for table index, long The conglomerate for that index indexConglomerate)Set the index conglomerate for the table. |
| pack-priv void | setIndexConglomerate(ConglomerateDescriptor
The ConglomerateDescriptor for one of the index
for this table. cd)Set the index conglomerate for the table. |
| pack-priv void | setIndexRowGenerator(int
The index number. indexNumber, IndexRowGenerator The IndexRowGenerator for the specified index number. irg)Set the IndexRowGenerator for the specified index number. |
| public String | |
| pack-priv void | updateRow(ExecIndexRow
key row key, ExecRow new version of the row newRow, int index that key operates indexNumber, boolean[] array of booleans, one for each index on the catalog.
if a boolean is true, that means we must update the
corresponding index because changes in the newRow
affect it. indicesToUpdate, int[] array of ints indicating which columns (1 based)
to update. If null, do all. colsToUpdate, TransactionController transaction controller tc)Updates a base row in a catalog and updates all the corresponding index rows. |
| pack-priv void | updateRow(ExecIndexRow
key row key, ExecRow[] new version of the array of rows newRows, int index that key operates indexNumber, boolean[] array of booleans, one for each index on the catalog.
if a boolean is true, that means we must update the
corresponding index because changes in the newRow
affect it. indicesToUpdate, int[] array of ints indicating which columns (1 based)
to update. If null, do all. colsToUpdate, TransactionController transaction controller tc)Updates a set of base rows in a catalog with the same key on an index and updates all the corresponding index rows. |
| computedStreamStorableHeapColIds | back to summary |
|---|---|
| private boolean computedStreamStorableHeapColIds | |
| crf | back to summary |
|---|---|
| private final CatalogRowFactory crf | |
| heapConglomerate | back to summary |
|---|---|
| private long heapConglomerate | |
| heapSet | back to summary |
|---|---|
| private boolean heapSet | |
| indexes | back to summary |
|---|---|
| private IndexInfoImpl[] indexes | |
| numIndexesSet | back to summary |
|---|---|
| private int numIndexesSet | |
| ROWNOTDUPLICATE | back to summary |
|---|---|
| pack-priv static final int ROWNOTDUPLICATE 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. | |
| streamStorableHeapColIds | back to summary |
|---|---|
| private int[] streamStorableHeapColIds | |
| TabInfoImpl | back to summary |
|---|---|
| pack-priv TabInfoImpl(CatalogRowFactory crf) Constructor
| |
| deleteRow | back to summary |
|---|---|
| pack-priv int deleteRow(TransactionController tc, ExecIndexRow key, int indexNumber) throws StandardException Given a key row, delete all matching heap rows and their index rows. LOCKING: row locking if there is a key; otherwise, table locking.
| |
| deleteRow | back to summary |
|---|---|
| pack-priv int deleteRow(TransactionController tc, ExecIndexRow key, int indexNumber, boolean wait) throws StandardException | |
| deleteRows | back to summary |
|---|---|
| pack-priv int deleteRows(TransactionController tc, ExecIndexRow startKey, int startOp, Qualifier[][] qualifier, TupleFilter filter, ExecIndexRow stopKey, int stopOp, int indexNumber) throws StandardException 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
| |
| deleteRows | back to summary |
|---|---|
| private int deleteRows(TransactionController tc, ExecIndexRow startKey, int startOp, Qualifier[][] qualifier, TupleFilter filter, ExecIndexRow stopKey, int stopOp, int indexNumber, boolean wait) throws StandardException | |
| getBaseColumnPosition | back to summary |
|---|---|
| pack-priv 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.
| |
| getCatalogRowFactory | back to summary |
|---|---|
| pack-priv CatalogRowFactory getCatalogRowFactory() Get the CatalogRowFactory for this.
| |
| getCreateHeapProperties | back to summary |
|---|---|
| pack-priv Properties getCreateHeapProperties() Get the Properties associated with creating the heap.
| |
| getCreateIndexProperties | back to summary |
|---|---|
| pack-priv Properties getCreateIndexProperties(int indexNumber) Get the Properties associated with creating the specified index.
| |
| getHeapConglomerate | back to summary |
|---|---|
| pack-priv long getHeapConglomerate() Get the conglomerate for the heap.
| |
| getIndexColumnCount | back to summary |
|---|---|
| pack-priv int getIndexColumnCount(int indexNumber) Get the column count for the specified index number.
| |
| getIndexConglomerate | back to summary |
|---|---|
| pack-priv long getIndexConglomerate(int indexID) Get the conglomerate for the specified index.
| |
| getIndexName | back to summary |
|---|---|
| pack-priv String getIndexName(int indexId) Get the index name.
| |
| getIndexRowFromHeapRow | back to summary |
|---|---|
| private ExecIndexRow getIndexRowFromHeapRow(IndexRowGenerator irg, RowLocation rl, ExecRow heapRow) throws StandardException Get an index row based on a row from the heap.
| |
| getIndexRowGenerator | back to summary |
|---|---|
| pack-priv IndexRowGenerator getIndexRowGenerator(int indexNumber) Get the IndexRowGenerator for the specified index number.
| |
| getNumberOfIndexes | back to summary |
|---|---|
| pack-priv int getNumberOfIndexes() Get the number of indexes on this catalog.
| |
| getRow | back to summary |
|---|---|
| pack-priv ExecRow getRow(TransactionController tc, ExecIndexRow key, int indexNumber) throws StandardException Given a key row, return the first matching heap row. LOCKING: shared row locking.
| |
| getRow | back to summary |
|---|---|
| pack-priv ExecRow getRow(TransactionController tc, ConglomerateController heapCC, ExecIndexRow key, int indexNumber) throws StandardException Given a key row, return the first matching heap row. LOCKING: shared row locking.
| |
| getRowChanger | back to summary |
|---|---|
| private RowChanger getRowChanger(TransactionController tc, int[] changedCols, ExecRow baseRow) throws StandardException Gets a row changer for this catalog.
| |
| getRowInternal | back to summary |
|---|---|
private ExecRow getRowInternal(TransactionController tc, ConglomerateController heapCC, ExecIndexRow key, int indexNumber, RowLocation[] rl) throws StandardException
| |
| getRowLocation | back to summary |
|---|---|
| pack-priv RowLocation getRowLocation(TransactionController tc, ExecIndexRow key, int indexNumber) throws StandardException Given an index row and index number return the RowLocation in the heap of the first matching row. Used by the autoincrement code to get the RowLocation in syscolumns given a <tablename, columname> pair.
| |
| getStreamStorableHeapColIds | back to summary |
|---|---|
| private int[] getStreamStorableHeapColIds(ExecRow baseRow) throws StandardException | |
| getTableName | back to summary |
|---|---|
| pack-priv String getTableName() Get the table name.
| |
| insertRow | back to summary |
|---|---|
| pack-priv int insertRow(ExecRow row, TransactionController tc) throws StandardException Inserts a base row into a catalog and inserts all the corresponding index rows.
| |
| insertRowList | back to summary |
|---|---|
| pack-priv int insertRowList(ExecRow[] rowList, TransactionController tc) throws StandardException Inserts a list of base rows into a catalog and inserts all the corresponding index rows.
| |
| insertRowListImpl | back to summary |
|---|---|
| private int insertRowListImpl(ExecRow[] rowList, TransactionController tc, RowLocation[] rowLocationOut) throws StandardException Insert logic to insert a list of rows into a table. This logic has two odd features.
| |
| isComplete | back to summary |
|---|---|
| pack-priv boolean isComplete() Is this fully initialized. (i.e., is all conglomerate info initialized)
| |
| isIndexUnique | back to summary |
|---|---|
| pack-priv boolean isIndexUnique(int indexNumber) Return whether or not this index is declared unique
| |
| setHeapConglomerate | back to summary |
|---|---|
| pack-priv void setHeapConglomerate(long heapConglomerate) Set the heap conglomerate for this.
| |
| setIndexConglomerate | back to summary |
|---|---|
| pack-priv void setIndexConglomerate(int index, long indexConglomerate) Set the index conglomerate for the table.
| |
| setIndexConglomerate | back to summary |
|---|---|
| pack-priv void setIndexConglomerate(ConglomerateDescriptor cd) Set the index conglomerate for the table.
| |
| setIndexRowGenerator | back to summary |
|---|---|
| pack-priv void setIndexRowGenerator(int indexNumber, IndexRowGenerator irg) Set the IndexRowGenerator for the specified index number.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| updateRow | back to summary |
|---|---|
| pack-priv void updateRow(ExecIndexRow key, ExecRow newRow, int indexNumber, boolean[] indicesToUpdate, int[] colsToUpdate, TransactionController tc) throws StandardException Updates a base row in a catalog and updates all the corresponding index rows.
| |
| updateRow | back to summary |
|---|---|
| pack-priv void updateRow(ExecIndexRow key, ExecRow[] newRows, int indexNumber, boolean[] indicesToUpdate, int[] colsToUpdate, TransactionController tc) throws StandardException Updates a set of base rows in a catalog with the same key on an index and updates all the corresponding index rows.
| |