This class represents a table descriptor. The external interface to this class is:
| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| pack-priv ColumnDescriptorList | |
| pack-priv ConglomerateDescriptorList | |
| pack-priv ConstraintDescriptorList | |
| public static final char | |
| public static final int | |
| private volatile long | heapConglomNumber
The id of the heap conglomerate for the table described by this instance. |
| private String | |
| private boolean | |
| public static final int | |
| public static final int | |
| public static final double | |
| private char | |
| pack-priv UUID | |
| private boolean | |
| private boolean | |
| public static final char | |
| pack-priv SchemaDescriptor | |
| private List | statisticsDescriptorList
A list of statistics pertaining to this table-- |
| public static final int | |
| public static final int | |
| public static final char | |
| pack-priv String | |
| pack-priv int | |
| private TriggerDescriptorList | |
| public static final int | |
| pack-priv ViewDescriptor | |
| public static final int |
| Access | Constructor and Description |
|---|---|
| public | TableDescriptor(DataDictionary
The data dictionary that this descriptor lives in dataDictionary, String The name of the temporary table tableName, SchemaDescriptor The schema descriptor for this table. schema, int An integer identifier for the type of the table : declared global temporary table tableType, boolean If true, on commit delete rows else on commit preserve rows of temporary table. onCommitDeleteRows, boolean If true, on rollback, delete rows from temp tables which were logically modified. true is the only supported value onRollbackDeleteRows)Constructor for a TableDescriptor (this is for a temporary table). |
| public | TableDescriptor(DataDictionary
The data dictionary that this descriptor lives in dataDictionary, String The name of the table tableName, SchemaDescriptor The schema descriptor for this table. schema, int An integer identifier for the type of the table
(base table, view, etc.) tableType, char The lock granularity. lockGranularity)Constructor for a TableDescriptor. |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | getAllRelevantConstraints(int
As defined in StatementType. statementType, int[] If null, all columns being changed, otherwise array
of 1-based column ids for columns being changed changedColumnIds, boolean[] IN/OUT. true if the statement already needs
deferred processing. set while evaluating this
routine if a trigger or constraint requires
deferred processing needsDeferredProcessing, ConstraintDescriptorList IN/OUT. Empty list is passed in. We hang constraints on it as we go. relevantConstraints)Gets all of the relevant constraints for a statement, given its statement type and its list of updated columns. |
| public void | getAllRelevantTriggers(int
defined in StatementType statementType, int[] array of changed columns changedColumnIds, TriggerDescriptorList IN/OUT. Passed in as an empty list. Filled in as we go. relevantTriggers)Builds a list of all triggers which are relevant to a given statement type, given a list of updated columns. |
| public boolean | Returns: true if the statistics are considered up-to-date,
false if not.Tells if the index statistics for the indexes associated with this table are consideres up-to-date, and clears the state. |
| public long[] | Returns: array containing the increment values of autoincrement columns.gets an array of increment values for autoincrement columns in the target table. |
| public String | Returns: String The provider's type.Implements org. Get the provider's type. |
| public int[] | |
| public ColumnDescriptor | Returns: A ColumnDescriptor describing the columnA String containing the name of the column columnName)Get the descriptor for a column in the table, either by the column name or by its ordinal position (column number). |
| public ColumnDescriptor | Returns: A ColumnDescriptor describing the columnThe ordinal (1-based) position of the column in the table columnNumber)
|
| public ColumnDescriptorList | Returns: The column descriptor list for this table descriptorGets the column descriptor list |
| public int[] | getColumnIDs(String[] names)
Turn an array of column names into the corresponding 1-based column positions. |
| public String[] | Returns: An array, filled with the column names in the table.Gets an array of column names. |
| public ConglomerateDescriptor | Returns: A ConglomerateDescriptor describing the requested conglomerate. Returns NULL if no such conglomerate.The conglomerate number
we're interested in conglomerateNumber)Gets a conglomerate descriptor for the given table and conglomerate number. |
| public ConglomerateDescriptor | Returns: A ConglomerateDescriptor describing the requested conglomerate. Returns NULL if no such conglomerate.The UUID for the conglomerate
we're interested in conglomerateUUID)Gets a conglomerate descriptor for the given table and conglomerate UUID String. |
| public ConglomerateDescriptorList | Returns: The conglomerate descriptor list for this table descriptorGets the conglomerate descriptor list |
| public ConglomerateDescriptor[] | Returns: A ConglomerateDescriptor[] for looping through the table's conglomeratesGets a ConglomerateDescriptor[] to loop through all the conglomerate descriptors for the table. |
| public ConglomerateDescriptor[] | Returns: Array of ConglomerateDescriptors with the requested conglomerate number. Returns size 0 array if no such conglomerate.The conglomerate number
we're interested in conglomerateNumber)Gets array of conglomerate descriptors for the given table and conglomerate number. |
| public ConglomerateDescriptor[] | Returns: Array of ConglomerateDescriptors with the requested conglomerate UUID. Returns size 0 array if no such conglomerate.The conglomerate UUID
we're interested in conglomerateUUID)Gets array of conglomerate descriptors for the given table and conglomerate UUID. |
| public ConstraintDescriptorList | Returns: The constraint descriptor list for this table descriptorGets the constraint descriptor list |
| private static Context | getContextOrNull(final String contextID)
Must be private so that user code can't call this entry point. |
| public DependableFinder | Returns: the stored form of this providerImplements org. Get an object which can be written to disk and which, when read from disk, will find or reconstruct this in-memory Dependable. |
| public String | |
| public String | getDescriptorType()
Overrides org. Each descriptor must identify itself with its type; i.e index, check constraint whatever. |
| public ExecRow | |
| public ColumnDescriptorList | |
| public long | Returns: the id of the heap conglomerate for the table.Gets the id for the heap conglomerate of the table. |
| public IndexLister | Returns: An object to list out the index row generators.Gets an object which lists out all the index row generators on a table together with their conglomerate ids. |
| public String | Returns: A string describing the update criteria that were met.Returns the update criteria telling why the statistics are considered stale. |
| public char | Returns: A char representing the lock granularity for the table.Gets the lock granularity for the table. |
| public int | |
| public String | Returns: A String containing the name of the table.Implements abstract org. Gets the name of the table. |
| public int | Returns: the number of columns in the table.Gets the number of columns in the table. |
| public UUID | Returns: String The provider's UUIDImplements org. Get the provider's UUID |
| public String | Returns: String The name of this provider.Implements org. Return the name of this Provider. |
| public ReferencedKeyConstraintDescriptor | Returns: The priamry key or nullGets the primary key, may return null if no primary key |
| public String | Returns: A String containing the name of the table.Gets the full, qualified name of the table. |
| public int | Returns: Number of matching indexes.the minimum number of ordered columns in the indexes
we want to count minColCount, boolean if nonUniqeTrumpsColCount)true a non-unique index will be
included in the count even if it has less than minColCount
ordered columnsReturns the number of indexes matching the criteria. |
| public FormatableBitSet | Returns: the referencedColumnMap of the table.Get the referenced column map of the table. |
| public SchemaDescriptor | Returns: SchemaDescriptor The SchemaDescriptor.Implements abstract org. Gets the SchemaDescriptor for this TableDescriptor. |
| public String | Returns: A String containing the name of the schema the table lives in.Gets the name of the schema the table lives in. |
| public synchronized List | |
| public int | Returns: An identifier telling what type of table this is.Gets an identifier telling what type of table this is (base table, declared global temporary table, view, etc.) |
| public int | Returns: the number of columns in the table.Gets the number of indexes on the table, including the backing indexes. |
| public TriggerDescriptorList | Returns: The trigger descriptor list for this table descriptorGets the trigger descriptor list |
| public UUID | Returns: The UUID of the table.Implements abstract org. Gets the UUID of the table. |
| public ViewDescriptor | Returns: ViewDescriptor The ViewDescriptor, if any.Gets the view descriptor for this TableDescriptor. |
| public boolean | Returns: A boolean representing the on commit behavior for the declared global temporary table.Gets the on commit behavior for the declared global temporary table. |
| public boolean | Returns: A boolean representing the on rollback behavior for the declared global temporary table.Gets the on rollback behavior for the declared global temporary table. |
| public boolean | Returns: boolean Whether or not this provider is persistent.Overrides org. Implements org. Is this provider persistent? |
| public boolean | Returns: boolean Whether or not this represents a synonymIs this descriptor represents a synonym? |
| public synchronized boolean | Returns: true if the dependent is currently validImplements org. Check that all of the dependent's dependencies are valid. |
| public FormatableBitSet | makeColumnMap(ColumnDescriptorList
list of columns whose positions we want to record in the bit map cdl)Given a list of columns in the table, construct a bit map of those columns' ids. |
| public void | makeInvalid(int
The action causing the invalidation action, LanguageConnectionContext The LanguageConnectionContext lcc)Implements org. Mark the dependent as invalid (due to at least one of its dependencies being invalid). |
| public static String | |
| public void | markForIndexStatsUpdate(long
row count estimate for this table tableRowCountEstimate)Marks the cardinality statistics for the indexes associated with this table for update if they are considered stale, or for creation if they don't exist, and if it is considered useful to update/create them. |
| public void | prepareToInvalidate(Provider
the provider p, int The action causing the invalidation action, LanguageConnectionContext The LanguageConnectionContext lcc)Implements org. Prepare to mark the dependent as invalid (due to at least one of its dependencies being invalid). |
| private FormatableBitSet | |
| private void | |
| public void | removeConglomerateDescriptor(ConglomerateDescriptor
The conglomerate descriptor cd)Remove this descriptor |
| public void | |
| public void | resetHeapConglomNumber()
Sets the heapConglomNumber to -1 for temporary table since the table was dropped and recreated at the commit time and hence its conglomerate id has changed. |
| public double | selectivityForConglomerate(ConglomerateDescriptor
ConglomerateDescriptor (Index) whose
cardinality we are interested in. cd, int Number of leading columns of the index for which
cardinality is desired. numKeys)For this conglomerate (index), return the selectivity of the first numKeys. |
| public void | setConstraintDescriptorList(ConstraintDescriptorList
The new constraint descriptor list for this table descriptor newCDL)Sets the constraint descriptor list |
| public void | setLockGranularity(char
The new lockGranularity. lockGranularity)Sets the lock granularity for the table to the specified value. |
| public void | setReferencedColumnMap(FormatableBitSet
FormatableBitSet of referenced columns. referencedColumnMap)Set the referenced column map of the table. |
| public void | setTableName(String
The new table name. newTableName)Sets the the table name in case of rename table. |
| public void | setTriggerDescriptorList(TriggerDescriptorList
The new trigger descriptor list for this table descriptor newCDL)Sets the trigger descriptor list |
| public void | |
| public void | setViewDescriptor(ViewDescriptor
The view descriptor to cache. viewDescriptor)Set (cache) the view descriptor for this TableDescriptor |
| public boolean | statisticsExist(ConglomerateDescriptor
Conglomerate/Index for which we want to check if statistics
exist. cd can be null in which case user wants to know if there are any
statistics at all on the table. cd)Are there statistics for this particular conglomerate. |
| public boolean | Returns: TRUE if the table has at least one auto-increment column, false otherwiseDoes the table have an auto-increment column or not? |
| public boolean | Returns: boolean Whether or not the 2 TableNames are equal.the other table name otherTableName, String the other schema name otherSchemaName)Compare the tables descriptors based on the names. |
| public String | Returns: The contents as a StringOverrides java. Prints the contents of the TableDescriptor |