public final class ConglomerateDescriptor extends UniqueTupleDescriptor implements Provider
Modifier and Type | Field and Description |
---|---|
private java.lang.String[] |
columnNames |
private long |
conglomerateNumber |
private boolean |
forConstraint |
private boolean |
indexable |
private IndexRowGenerator |
indexRowGenerator |
private java.lang.String |
name |
private UUID |
schemaID |
private UUID |
tableID |
private UUID |
uuid |
ACTIVATION, ALIAS, COLUMNS_IN_TABLE, COLUMNS_PERMISSION, CONGLOMERATE, CONSTRAINT, DEFAULT, FILE, HEAP, INDEX, PERM, PREPARED_STATEMENT, ROLE_GRANT, ROUTINE_PERMISSION, SCHEMA, SEQUENCE, STORED_PREPARED_STATEMENT, TABLE, TABLE_PERMISSION, TRIGGER, VIEW
Constructor and Description |
---|
ConglomerateDescriptor(DataDictionary dataDictionary,
long conglomerateNumber,
java.lang.String name,
boolean indexable,
IndexRowGenerator indexRowGenerator,
boolean forConstraint,
UUID uuid,
UUID tableID,
UUID schemaID)
Constructor for a conglomerate descriptor.
|
Modifier and Type | Method and Description |
---|---|
ConglomerateDescriptor |
describeSharedConglomerate(ConglomerateDescriptor[] descriptors,
boolean ignoreThis)
This method searches the received array of conglom descriptors
to find all descriptors that currently share a physical conglom
with "this".
|
ConglomerateDescriptor |
drop(LanguageConnectionContext lcc,
TableDescriptor td)
Drop this ConglomerateDescriptor when it represents
an index.
|
java.lang.String |
getClassType()
Get the provider's type.
|
java.lang.String[] |
getColumnNames()
Get the column names for this conglomerate descriptor.
|
java.lang.String |
getConglomerateName()
Gets the name of the conglomerate.
|
long |
getConglomerateNumber()
Gets the number for the conglomerate.
|
DependableFinder |
getDependableFinder()
Get an object which can be written to disk and which,
when read from disk, will find or reconstruct this in-memory
Dependable.
|
java.lang.String |
getDescriptorName() |
java.lang.String |
getDescriptorType()
Each descriptor must identify itself with its type; i.e index, check
constraint whatever.
|
IndexRowGenerator |
getIndexDescriptor()
Gets the index row generator for this conglomerate, null if the
conglomerate is not an index.
|
UUID |
getObjectID()
Get the provider's UUID
|
java.lang.String |
getObjectName()
Return the name of this Provider.
|
UUID |
getSchemaID()
Gets the UUID for the schema that the conglomerate belongs to.
|
UUID |
getTableID()
Gets the UUID for the table that the conglomerate belongs to.
|
UUID |
getUUID()
Gets the UUID String for the conglomerate.
|
boolean |
isConstraint()
Tells whether the conglomerate is an index backing up a constraint.
|
boolean |
isIndex()
Tells whether the conglomerate can be used as an index.
|
void |
setColumnNames(java.lang.String[] columnNames)
Set the column names for this conglomerate descriptor.
|
void |
setConglomerateName(java.lang.String newName)
Set the name of the conglomerate.
|
void |
setConglomerateNumber(long conglomerateNumber)
Set the conglomerate number.
|
java.lang.String |
toString()
Convert the conglomerate descriptor to a String
|
getColumnDependableFinder, getDataDictionary, getDependableFinder, isPersistent, setDataDictionary
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isPersistent
private long conglomerateNumber
private java.lang.String name
private transient java.lang.String[] columnNames
private final boolean indexable
private final boolean forConstraint
private final IndexRowGenerator indexRowGenerator
private final UUID uuid
private final UUID tableID
private final UUID schemaID
ConglomerateDescriptor(DataDictionary dataDictionary, long conglomerateNumber, java.lang.String name, boolean indexable, IndexRowGenerator indexRowGenerator, boolean forConstraint, UUID uuid, UUID tableID, UUID schemaID)
dataDictionary
- The data dictionary that this descriptor lives inconglomerateNumber
- The number for the conglomerate
we're interested inname
- The name of the conglomerate, if anyindexable
- TRUE means the conglomerate is indexable,
FALSE means it isn'tindexRowGenerator
- The descriptor of the index if it's not a
heapforConstraint
- TRUE means the conglomerate is an index backing up
a constraint, FALSE means it isn'tuuid
- UUID for this conglomeratetableID
- UUID for the table that this conglomerate belongs toschemaID
- UUID for the schema that this conglomerate belongs topublic long getConglomerateNumber()
public void setConglomerateNumber(long conglomerateNumber)
conglomerateNumber
- The new conglomerate number.public UUID getUUID()
getUUID
in class UniqueTupleDescriptor
public UUID getTableID()
public UUID getSchemaID()
public boolean isIndex()
public boolean isConstraint()
public java.lang.String getConglomerateName()
public void setConglomerateName(java.lang.String newName)
newName
- The new name of the conglomerate.public IndexRowGenerator getIndexDescriptor()
public void setColumnNames(java.lang.String[] columnNames)
columnNames
- 0-based array of column names.public java.lang.String[] getColumnNames()
public DependableFinder getDependableFinder()
Dependable
getDependableFinder
in interface Dependable
public java.lang.String getObjectName()
getObjectName
in interface Dependable
public UUID getObjectID()
getObjectID
in interface Dependable
public java.lang.String getClassType()
getClassType
in interface Dependable
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getDescriptorType()
TupleDescriptor
getDescriptorType
in class TupleDescriptor
TupleDescriptor.getDescriptorType()
public java.lang.String getDescriptorName()
getDescriptorName
in class TupleDescriptor
TupleDescriptor.getDescriptorName()
public ConglomerateDescriptor drop(LanguageConnectionContext lcc, TableDescriptor td) throws StandardException
lcc
- Connection context to use for droppingtd
- TableDescriptor for the table to which this
conglomerate belongsStandardException
public ConglomerateDescriptor describeSharedConglomerate(ConglomerateDescriptor[] descriptors, boolean ignoreThis) throws StandardException
descriptors
- Array of conglomerate descriptors in
which to search; the array may include an entry for "this";
it should not be null.ignoreThis
- If true then we will NOT consider "this"
conglomerate descriptor in our search. That is, we will
find a descriptor to describe what a physical conglomerate
would have to look like in order to support all sharing
descriptors OTHER THAN this one.StandardException
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.