| java.lang.Object org.apache.derby.iapi.sql.dictionary.TupleDescriptor org.apache.derby.iapi.sql.dictionary.ConglomerateDescriptor
ConglomerateDescriptor | final public class ConglomerateDescriptor extends TupleDescriptor implements UniqueTupleDescriptor,Provider(Code) | | The ConglomerateDescriptor class is used to get information about
conglomerates for the purpose of optimization.
NOTE: The language module does not have to know much about conglomerates
with this architecture. To get the cost of using a conglomerate, all it
has to do is pass the ConglomerateDescriptor to the access methods, along
with the predicate. What the access methods need from a
ConglomerateDescriptor remains to be seen.
version: 0.1 author: Jeff Lichtman |
ConglomerateDescriptor | ConglomerateDescriptor(DataDictionary dataDictionary, long conglomerateNumber, String name, boolean indexable, IndexRowGenerator indexRowGenerator, boolean forConstraint, UUID uuid, UUID tableID, UUID schemaID)(Code) | | Constructor for a conglomerate descriptor.
Parameters: dataDictionary - The data dictionary that this descriptor lives in Parameters: conglomerateNumber - The number for the conglomeratewe're interested in Parameters: name - The name of the conglomerate, if any Parameters: indexable - TRUE means the conglomerate is indexable,FALSE means it isn't Parameters: indexRowGenerator - The descriptor of the index if it's not aheap Parameters: forConstraint - TRUE means the conglomerate is an index backing upa constraint, FALSE means it isn't Parameters: uuid - UUID for this conglomerate Parameters: tableID - UUID for the table that this conglomerate belongs to Parameters: schemaID - UUID for the schema that this conglomerate belongs to |
getClassType | public String getClassType()(Code) | | Get the provider's type.
char The provider's type. |
getColumnNames | public String[] getColumnNames()(Code) | | Get the column names for this conglomerate descriptor.
This is useful for tracing the optimizer.
the column names for the conglomerate descriptor. |
getConglomerateName | public String getConglomerateName()(Code) | | Gets the name of the conglomerate. For heaps, this is null. For
indexes, it is the index name.
The name of the conglomerate, null if it's the heap for a table. |
getConglomerateNumber | public long getConglomerateNumber()(Code) | | Gets the number for the conglomerate.
A long identifier for the conglomerate |
getIndexDescriptor | public IndexRowGenerator getIndexDescriptor()(Code) | | Gets the index row generator for this conglomerate, null if the
conglomerate is not an index.
The index descriptor for this conglomerate, if any. |
getObjectID | public UUID getObjectID()(Code) | | Get the provider's UUID
The provider's UUID |
getObjectName | public String getObjectName()(Code) | | Return the name of this Provider. (Useful for errors.)
String The name of this provider. |
getSchemaID | public UUID getSchemaID()(Code) | | Gets the UUID for the schema that the conglomerate belongs to.
The UUID String for the schema that the conglomerate belongs to |
getTableID | public UUID getTableID()(Code) | | Gets the UUID for the table that the conglomerate belongs to.
The UUID String for the conglomerate |
getUUID | public UUID getUUID()(Code) | | Gets the UUID String for the conglomerate.
The UUID String for the conglomerate |
isConstraint | public boolean isConstraint()(Code) | | Tells whether the conglomerate is an index backing up a constraint.
TRUE if the conglomerate is an index backing up a constraint, FALSE if not |
isIndex | public boolean isIndex()(Code) | | Tells whether the conglomerate can be used as an index.
TRUE if the conglomerate can be used as an index, FALSE if not |
setColumnNames | public void setColumnNames(String[] columnNames)(Code) | | Set the column names for this conglomerate descriptor.
This is useful for tracing the optimizer.
Parameters: columnNames - 0-based array of column names. |
setConglomerateName | public void setConglomerateName(String newName)(Code) | | Set the name of the conglomerate. Used only by rename index.
Parameters: newName - The new name of the conglomerate. |
setConglomerateNumber | public void setConglomerateNumber(long conglomerateNumber)(Code) | | Set the conglomerate number.
This is useful when swapping conglomerates, like for bulkInsert.
Parameters: conglomerateNumber - The new conglomerate number. |
toString | public String toString()(Code) | | Convert the conglomerate descriptor to a String
The conglomerate descriptor as a String |
|
|