| Modifier and Type | Field and Description |
|---|---|
| private final Activation | |
| private static final int | |
| pack-priv ConglomerateController | |
| pack-priv FormatableBitSet | |
| pack-priv boolean[] | |
| pack-priv IndexChanger[] | |
| pack-priv long[] | |
| private DynamicCompiledOpenConglomInfo[] | |
| pack-priv String[] | |
| private StaticCompiledOpenConglomInfo[] | |
| pack-priv IndexRowGenerator[] | |
| private int | |
| pack-priv boolean | |
| private int | |
| private static final int | |
| pack-priv TemporaryRowHolderImpl | |
| pack-priv TransactionController | |
| private static final int | |
| private int |
| Access | Constructor and Description |
|---|---|
| public | IndexSetChanger(IndexRowGenerator[]
the IndexRowGenerators for the table's indexes. We use
positions in this array as local id's for indexes. irgs, long[] the conglomerate ids for the table's indexes.
indexCIDS[ix] corresponds to the same index as irgs[ix]. indexCIDS, StaticCompiledOpenConglomInfo[] the SCOCIs for the table's idexes.
indexSCOCIs[ix] corresponds to the same index as irgs[ix]. indexSCOCIs, DynamicCompiledOpenConglomInfo[] the DCOCIs for the table's idexes.
indexDCOCIs[ix] corresponds to the same index as irgs[ix]. indexDCOCIs, String[] indexNames, ConglomerateController a ConglomerateController for the base table. baseCC, TransactionController a TransactionController for managing temporary conglomerates tc, int The lock mode (granularity) for the indexes. lockMode, FormatableBitSet Map of columns read in. 1 based. baseRowReadMap, int Isolation level to use isolationLevel, Activation Current activation activation)Create a new IndexSetChanger |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | delete(ExecRow
the deleted row. baseRow, RowLocation the deleted row's base conglomerate
location baseRowLocation)Perform index maintenance associated with deleting a row from a table. |
| public void | |
| public void | insert(ExecRow
the row. baseRow, RowLocation the row's base conglomerate
location baseRowLocation)Perform index maintenance associated with insering a row into a table. |
| public void | open(boolean[]
indicates which indexes to correct due
to an update. The entries in this array must be in the
same order as the entries in the irgs array that was
passed to the constructor. fixOnUpdate)Open this IndexSetchanger. |
| private void | openIndexes(int
must be one of ALL_INDEXES or UPDATE_INDEXES. whatToOpen)Open the indexes that must be fixed if they are not already open. |
| public void | setBaseCC(ConglomerateController
The heap's ConglomerateController. baseCC)Propagate the heap's ConglomerateController to all of the underlying index changers. |
| public void | setRowHolder(TemporaryRowHolderImpl
the row holder rowHolder)Set the row holder for all underlying changers to use. |
| public String | toString()
Overrides java. Create a string describing the state of this IndexSetChanger |
| public void | update(ExecRow
the old image of the row. oldBaseRow, ExecRow the new image of the row. newBaseRow, RowLocation the row's base conglomerate
location baseRowLocation)Perform index maintenance associated with updating a row in a table. |
| activation | back to summary |
|---|---|
| private final Activation activation | |
| ALL_INDEXES | back to summary |
|---|---|
| private static final int ALL_INDEXES | |
| baseCC | back to summary |
|---|---|
| pack-priv ConglomerateController baseCC | |
| baseRowReadMap | back to summary |
|---|---|
| pack-priv FormatableBitSet baseRowReadMap | |
| fixOnUpdate | back to summary |
|---|---|
| pack-priv boolean[] fixOnUpdate | |
| indexChangers | back to summary |
|---|---|
| pack-priv IndexChanger[] indexChangers | |
| indexCIDS | back to summary |
|---|---|
| pack-priv long[] indexCIDS | |
| indexDCOCIs | back to summary |
|---|---|
| private DynamicCompiledOpenConglomInfo[] indexDCOCIs | |
| indexNames | back to summary |
|---|---|
| pack-priv String[] indexNames | |
| indexSCOCIs | back to summary |
|---|---|
| private StaticCompiledOpenConglomInfo[] indexSCOCIs | |
| irgs | back to summary |
|---|---|
| pack-priv IndexRowGenerator[] irgs | |
| isolationLevel | back to summary |
|---|---|
| private int isolationLevel | |
| isOpen | back to summary |
|---|---|
| pack-priv boolean isOpen | |
| lockMode | back to summary |
|---|---|
| private int lockMode | |
| NO_INDEXES | back to summary |
|---|---|
| private static final int NO_INDEXES | |
| rowHolder | back to summary |
|---|---|
| pack-priv TemporaryRowHolderImpl rowHolder | |
| tc | back to summary |
|---|---|
| pack-priv TransactionController tc | |
| UPDATE_INDEXES | back to summary |
|---|---|
| private static final int UPDATE_INDEXES | |
| whatIsOpen | back to summary |
|---|---|
| private int whatIsOpen | |
| IndexSetChanger | back to summary |
|---|---|
| public IndexSetChanger(IndexRowGenerator[] irgs, long[] indexCIDS, StaticCompiledOpenConglomInfo[] indexSCOCIs, DynamicCompiledOpenConglomInfo[] indexDCOCIs, String[] indexNames, ConglomerateController baseCC, TransactionController tc, int lockMode, FormatableBitSet baseRowReadMap, int isolationLevel, Activation activation) throws StandardException Create a new IndexSetChanger
| |
| close | back to summary |
|---|---|
| public void close() throws StandardException Close this IndexSetChanger.
| |
| delete | back to summary |
|---|---|
| public void delete(ExecRow baseRow, RowLocation baseRowLocation) throws StandardException Perform index maintenance associated with deleting a row from a table.
| |
| finish | back to summary |
|---|---|
| public void finish() throws StandardException Finish processing the changes for this IndexSetChanger. This means doing the deferred inserts for updates of unique indexes.
| |
| insert | back to summary |
|---|---|
| public void insert(ExecRow baseRow, RowLocation baseRowLocation) throws StandardException Perform index maintenance associated with insering a row into a table.
| |
| open | back to summary |
|---|---|
| public void open(boolean[] fixOnUpdate) throws StandardException Open this IndexSetchanger.
| |
| openIndexes | back to summary |
|---|---|
| private void openIndexes(int whatToOpen) throws StandardException Open the indexes that must be fixed if they are not already open.
| |
| setBaseCC | back to summary |
|---|---|
| public void setBaseCC(ConglomerateController baseCC) Propagate the heap's ConglomerateController to all of the underlying index changers.
| |
| setRowHolder | back to summary |
|---|---|
| public void setRowHolder(TemporaryRowHolderImpl rowHolder) Set the row holder for all underlying changers to use. If the row holder is set, underlying changers wont bother saving copies of rows needed for deferred processing. Also, it will never close the passed in rowHolder.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Create a string describing the state of this IndexSetChanger
| |
| update | back to summary |
|---|---|
| public void update(ExecRow oldBaseRow, ExecRow newBaseRow, RowLocation baseRowLocation) throws StandardException Perform index maintenance associated with updating a row in a table.
| |