| org.apache.derby.iapi.store.access.conglomerate.ConglomerateFactory
All known Subclasses: org.apache.derby.impl.store.access.btree.index.B2IFactory, org.apache.derby.impl.store.access.heap.HeapConglomerateFactory,
ConglomerateFactory | public interface ConglomerateFactory extends MethodFactory(Code) | | The factory interface for all conglomerate access methods.
|
BTREE_FACTORY_ID | final static int BTREE_FACTORY_ID(Code) | | |
HEAP_FACTORY_ID | final static int HEAP_FACTORY_ID(Code) | | |
createConglomerate | Conglomerate createConglomerate(TransactionManager xact_mgr, int segment, long input_containerid, DataValueDescriptor[] template, ColumnOrdering[] columnOrder, Properties properties, int temporaryFlag) throws StandardException(Code) | | Create the conglomerate and return a conglomerate object
for it. It is expected that the caller of this method will place the
the resulting object in the conglomerate directory.
Parameters: xact_mgr - transaction to perform the create in. Parameters: segment - segment to create the conglomerate in. Parameters: input_containerid - containerid to assign the container, or ContainerHandle.DEFAULT_ASSIGN_ID if you wantraw store to assign an id. Parameters: template - Template of row in the conglomerate. Parameters: columnOrder - columns sort order for Index creation Parameters: properties - Properties associated with the conglomerate. exception: StandardException - if the conglomerate could not beopened for some reason, or if an error occurred in one ofthe lower level modules. |
getConglomerateFactoryId | int getConglomerateFactoryId()(Code) | | Return the conglomerate factory id.
Return a number in the range of 0-15 which identifies this factory.
Code which names conglomerates depends on this range currently, but
could be easily changed to handle larger ranges. One hex digit seemed
reasonable for the number of conglomerate types currently implemented
(heap, btree) and those that might be implmented in the future: gist,
gist btree, gist rtree, hash, others? ).
an unique identifier used to the factory into the conglomid. |
readConglomerate | Conglomerate readConglomerate(TransactionManager xact_mgr, ContainerKey container_key) throws StandardException(Code) | | Return Conglomerate object for conglomerate with container_key.
Return the Conglomerate Object. This is implementation specific.
Examples of what will be done is using the key to find the file where
the conglomerate is located, and then executing implementation specific
code to instantiate an object from reading a "special" row from a
known location in the file. In the btree case the btree conglomerate
is stored as a column in the control row on the root page.
This operation is costly so it is likely an implementation using this
will cache the conglomerate row in memory so that subsequent accesses
need not perform this operation.
Parameters: xact_mgr - transaction to perform the create in. Parameters: container_key - The unique id of the existing conglomerate. An instance of the conglomerate. exception: StandardException - Standard exception policy. |
|
|