Oracle8i Data Cartridge Developer's Guide Release 8.1.5 A68002-01 |
|
All the constants referred to in this document are defined in the ODCIConst
package installed as part of the catodci.sql script. There are equivalent definitions for use within C routines in odci.h.
We strongly recommend that you use these constants instead of hardcoding their underlying values in your routines.
PredExactMatch
PredPrefixMatch
PredIncludeStart
PredIncludeStop
PredObjectFunc
PredObjectPkg
PredObjectType
A number of system-defined types are defined by Oracle and need to be created by running the catodci.sql catalog script. The C mappings for these object ytpes are defined odci.h The ODCIIndex
routines that follow use these types as parameters.
Unless otherwise mentioned, the names pased as type attributes are unquoted identifiers.
ODCIArgDesc
Object type.
Stores function/operator arguments.
Name | Datatype | Purpose |
---|---|---|
ArgType |
NUMBER |
Argument type - see "ODCICost" |
TableName |
|
Name of table |
TableSchema |
|
Schema containing the table |
ColName |
|
Name of column. This could be top level column name such as "A", or a nested column "A"."B" Note that the column name are quoted identifiers. |
ODCIArgDesc
VARRAY(32767) of ODCIArgDesc
Lists descriptions of arguments.
ODCIRidList
VARRAY(32767) OF VARCHAR2("M_URID_SZ")
Stores list of rowids. The rowids are stored in their character format.
ODCIColInfo
Object type.
Stores information related column.
ODCIColInfoList
VARRAY(32) OF ODCIColInfo
Stores information related to a list of columns.
ODCICost
Object type.
Stores cost information.
Name | Datatype | Purpose |
---|---|---|
CPUCost |
NUMBER |
CPU cost |
IOCost |
NUMBER |
I/O cost |
NetworkCost |
NUMBER |
Communication cost |
ODCIFuncInfo
Object type.
Stores function information.
ODCIIndexInfo
Object type
Stores the metadata information related to a domain index. It is passed as a parameter to all ODCIIndex
routines.
Name | Datatype | Purpose |
---|---|---|
IndexSchema |
|
Schema containing domain index |
IndexName |
|
Name of domain index |
IndexCols |
ODCIColInfoList |
List of indexed columns |
ODCIPredInfo
Object type
Stores the metadata information related to a predicate containing a user-defined operator or function. It is also passed as a parameter to ODCIIndexStart
() query routine.
ODCIIndexCtx
Object type
Stores the index context, including the domain index metadata and the ROWID
. It is passed as parameter to the functional implementation of an operator that expects index context.
Name | Datatype | Purpose |
---|---|---|
|
|
stores the metadata information about the domain index |
|
|
row identifier of the current row |
ODCIObject
Object type
Stores information about a schema object.
Name | Datatype | Purpose |
---|---|---|
|
|
Name of schema in which object is located |
|
|
Name of object |
ODCIObjectList
VARRAY(32) OF ODCIObject
Stores information about a list of schema objects.
ODCIQueryInfo
Object type
Stores information about the context of a query. It is passed as a parameter to the ODCIIndexStart
routine.
ODCIStatsOptions
Object type.
Stores options information for ANALYZE.
Name | Datatype | Purpose |
---|---|---|
Sample |
NUMBER |
Sample size |
Options |
NUMBER |
ANALYZE options - see "ODCICost" |
Flags |
NUMBER |
ANALYZE flags - see "ODCICost" |