SchemaDescriptor sd = getSystemSchemaDescriptor( ); DataDescriptorGenerator ddg = getDataDescriptorGenerator(); long indexConglomerateNumber; ConglomerateDescriptor conglomerateDescriptor = bootstrapOneIndex addDescriptor(conglomerateDescriptor, sd, SYSCONGLOMERATES_CATALOG_NUM, false, tc);
throws StandardException Properties p = getQueryDescriptions(net); Enumeration e = p.keys(); String spsText = p.getProperty(spsName); SPSDescriptor spsd = new SPSDescriptor(this, spsName, getUUIDFactory().createUUID(), schemaID, schemaID, addSPSDescriptor(spsd, tc, true);
/** * @see Cacheable#setIdentity * * @exception StandardException Thrown on error */ public Cacheable setIdentity(Object key) throws StandardException { if (SanityManager.DEBUG) { if (!(key instanceof TableKey)) { SanityManager.THROWASSERT("Key for a NameTDCacheElement is a " + key.getClass().getName() + " instead of a TableKey"); } } ; td = dd.getUncachedTableDescriptor(identity = (TableKey)key); if (td != null) { // add table descriptor to the oidTdcache in the Datadictionary. // no fear of deadlocks because this is called outside the // synchronize block in the cache code. dd.addTableDescriptorToOtherCache(td, this); return this; } else return null; }
tc = getTransactionCompile(); if (getSystemSchemaDescriptor().getSchemaName().equals(schemaName)) return getSystemSchemaDescriptor(); else if (getSysIBMSchemaDescriptor().getSchemaName().equals(schemaName)) return getSysIBMSchemaDescriptor(); SchemaDescriptor sd = locateSchemaRow(schemaName, tc); getDeclaredGlobalTemporaryTablesSchemaDescriptor().getSchemaName().equals(schemaName)) return getDeclaredGlobalTemporaryTablesSchemaDescriptor(); TabInfoImpl ti = getNonCoreTI(SYSCONSTRAINTS_CATALOG_NUM); UUIDStringOrderable = getIDValueAsCHAR(schemaID); return getConstraintDescriptorViaIndex( SYSCONSTRAINTSRowFactory.SYSCONSTRAINTS_INDEX2_ID, keyRow, TransactionController tc = getTransactionCompile(); return getDescriptorViaIndexMinion(indexId, keyRow, scanQualifiers,
newSystemSchemaDesc( SchemaDescriptor.STD_SYSTEM_SCHEMA_NAME, SchemaDescriptor.SYSTEM_SCHEMA_UUID); createConglomerate( ti.getTableName(), tc, bootStrapSystemIndexes(systemSchemaDesc, tc, ddg, ti); addSystemTableToDictionary(ti, systemSchemaDesc, tc, ddg); addSystemSchema( SchemaDescriptor.IBM_SYSTEM_SCHEMA_NAME, SchemaDescriptor.SYSIBM_SCHEMA_UUID, tc); TabInfoImpl ti = getNonCoreTIByNumber(catalogNumber); makeCatalog(ti, isDummy ? sysIBMSchemaDesc : systemSchemaDesc, tc ); populateSYSDUMMY1(tc); clearNoncoreTable(noncoreCtr); addDescriptor( systemSchemaDesc, null, SYSSCHEMAS_CATALOG_NUM, false, tc); addSystemSchema( SchemaDescriptor.IBM_SYSTEM_CAT_SCHEMA_NAME,
ExecRow templateRow = rowFactory.makeEmptyRow(); int columnCount = newColumnIDs.length; SchemaDescriptor sd = getSystemSchemaDescriptor(); TableDescriptor td; long conglomID; TableDescriptor.BASE_TABLE_TYPE, TableDescriptor.ROW_LOCK_GRANULARITY); td.setUUID(getUUIDForCoreTable("SYSTABLES", sd.getUUID().toString(), tc)); conglomID = coreInfo[SYSTABLES_CORE_NUM].getHeapConglomerate(); TableDescriptor.BASE_TABLE_TYPE, TableDescriptor.ROW_LOCK_GRANULARITY); td.setUUID(getUUIDForCoreTable("SYSCOLUMNS", sd.getUUID().toString(), tc)); conglomID = coreInfo[SYSCOLUMNS_CORE_NUM].getHeapConglomerate(); td = getTableDescriptor( rowFactory.getCatalogName(), sd, tc ); conglomID = td.getHeapConglomerateId(); widenConglomerate( templateRow, newColumnIDs, conglomID, tc ); currentColumn = columns[ columnID - 1 ]; // from 1 to 0 based cdArray[ix] = makeColumnDescriptor( currentColumn, ix + 1, td ); addDescriptorArray(cdArray, td, SYSCOLUMNS_CATALOG_NUM, false, tc);
throws StandardException DataDescriptorGenerator ddg = getDataDescriptorGenerator(); createConglomerate( ti.getTableName(), tc, bootStrapSystemIndexes(sd, tc, ddg, ti); addSystemTableToDictionary(ti, sd, tc, ddg);
DataValueDescriptor idOrderable; DataValueDescriptor columnNameOrderable; TabInfoImpl ti = getNonCoreTI(SYSSTATEMENTS_CATALOG_NUM); SYSSTATEMENTSRowFactory rf = (SYSSTATEMENTSRowFactory) ti.getCatalogRowFactory(); int[] updCols; idOrderable = getIDValueAsCHAR(spsd.getUUID()); addSPSParams(spsd, tc, wait); 0, 0, 0,false); updateColumnDescriptor(cd, cd.getReferencingUUID(), cd.getColumnName(),
TabInfoImpl ti = getNonCoreTI(SYSCONSTRAINTS_CATALOG_NUM); SYSCONSTRAINTSRowFactory rf = (SYSCONSTRAINTSRowFactory) ti.getCatalogRowFactory(); int insertRetCode; addDescriptor(descriptor, descriptor.getSchemaDescriptor(), SYSCONSTRAINTS_CATALOG_NUM, false, tc); addSubKeyConstraint((KeyConstraintDescriptor) descriptor, tc); break; addDescriptor(descriptor, null, SYSCHECKS_CATALOG_NUM, true, tc); break;
addDescriptor(td, sd, SYSTABLES_CATALOG_NUM, false, tc); toid = td.getUUID(); sd.getUUID()); addDescriptor(cgd, sd, SYSCONGLOMERATES_CATALOG_NUM, false, tc); cdlArray[columnNumber] = makeColumnDescriptor( column, columnNumber + 1, td ); addDescriptorArray(cdlArray, td, SYSCOLUMNS_CATALOG_NUM, false, tc);
/** * @see DataDictionary#addDescriptor */ public void addDescriptor(TupleDescriptor td, TupleDescriptor parent, int catalogNumber, boolean duplicatesAllowed, TransactionController tc) throws StandardException { addDescriptor(td, parent, catalogNumber, duplicatesAllowed, tc, true); }
cgd[indexCtr] = bootstrapOneIndex( sd, tc, ddg, ti, indexCtr, ti.getHeapConglomerate(), td ); addDescriptor(cgd[indexCtr], sd, SYSCONGLOMERATES_CATALOG_NUM, false, tc);
TabInfoImpl ti = getNonCoreTI(SYSSTATEMENTS_CATALOG_NUM); SYSSTATEMENTSRowFactory rf = (SYSSTATEMENTSRowFactory) ti.getCatalogRowFactory(); int insertRetCode; addSPSParams(descriptor, tc, wait);
@Override public void boot(boolean create, Properties startParams) throws StandardException { super.boot(create, startParams); // populate the builtin functions in SYSFUN including both derby ones and // GemFireXD extensions this.sysFunMap.clear(); for (String[] details : SYSFUN_FUNCTIONS) { this.sysFunMap.put(details[0], new SYSFUNEntry(details)); } for (String[] details : GFXD_FUNCTIONS) { this.sysFunMap.put(details[0], new SYSFUNEntry(details)); } }
super.addRestrictedRoutine(routineID);
tc = getTransactionCompile(); if (getSystemSchemaDescriptor().getSchemaName().equals(schemaName)) return getSystemSchemaDescriptor(); else if (getSysIBMSchemaDescriptor().getSchemaName().equals(schemaName)) return getSysIBMSchemaDescriptor(); SchemaDescriptor sd = locateSchemaRow(schemaName, tc); getDeclaredGlobalTemporaryTablesSchemaDescriptor().getSchemaName().equals(schemaName)) return getDeclaredGlobalTemporaryTablesSchemaDescriptor(); TabInfoImpl ti = getNonCoreTI(SYSCONSTRAINTS_CATALOG_NUM); UUIDStringOrderable = getIDValueAsCHAR(schemaID); return getConstraintDescriptorViaIndex( SYSCONSTRAINTSRowFactory.SYSCONSTRAINTS_INDEX2_ID, keyRow, TransactionController tc = getTransactionCompile(); return getDescriptorViaIndexMinion(indexId, keyRow, scanQualifiers,
newSystemSchemaDesc( SchemaDescriptor.STD_SYSTEM_SCHEMA_NAME, SchemaDescriptor.SYSTEM_SCHEMA_UUID); createConglomerate( ti.getTableName(), tc, bootStrapSystemIndexes(systemSchemaDesc, tc, ddg, ti); addSystemTableToDictionary(ti, systemSchemaDesc, tc, ddg); addSystemSchema( SchemaDescriptor.IBM_SYSTEM_SCHEMA_NAME, SchemaDescriptor.SYSIBM_SCHEMA_UUID, tc); TabInfoImpl ti = getNonCoreTIByNumber(catalogNumber); makeCatalog(ti, isDummy ? sysIBMSchemaDesc : systemSchemaDesc, tc ); populateSYSDUMMY1(tc); clearNoncoreTable(noncoreCtr); addDescriptor( systemSchemaDesc, null, SYSSCHEMAS_CATALOG_NUM, false, tc); addSystemSchema( SchemaDescriptor.IBM_SYSTEM_CAT_SCHEMA_NAME,
ExecRow templateRow = rowFactory.makeEmptyRow(); int columnCount = newColumnIDs.length; SchemaDescriptor sd = getSystemSchemaDescriptor(); TableDescriptor td; long conglomID; TableDescriptor.BASE_TABLE_TYPE, TableDescriptor.ROW_LOCK_GRANULARITY); td.setUUID(getUUIDForCoreTable("SYSTABLES", sd.getUUID().toString(), tc)); conglomID = coreInfo[SYSTABLES_CORE_NUM].getHeapConglomerate(); TableDescriptor.BASE_TABLE_TYPE, TableDescriptor.ROW_LOCK_GRANULARITY); td.setUUID(getUUIDForCoreTable("SYSCOLUMNS", sd.getUUID().toString(), tc)); conglomID = coreInfo[SYSCOLUMNS_CORE_NUM].getHeapConglomerate(); td = getTableDescriptor( rowFactory.getCatalogName(), sd, tc ); conglomID = td.getHeapConglomerateId(); widenConglomerate( templateRow, newColumnIDs, conglomID, tc ); currentColumn = columns[ columnID - 1 ]; // from 1 to 0 based cdArray[ix] = makeColumnDescriptor( currentColumn, ix + 1, td ); addDescriptorArray(cdArray, td, SYSCOLUMNS_CATALOG_NUM, false, tc);
throws StandardException DataDescriptorGenerator ddg = getDataDescriptorGenerator(); createConglomerate( ti.getTableName(), tc, bootStrapSystemIndexes(sd, tc, ddg, ti); addSystemTableToDictionary(ti, sd, tc, ddg);
DataValueDescriptor idOrderable; DataValueDescriptor columnNameOrderable; TabInfoImpl ti = getNonCoreTI(SYSSTATEMENTS_CATALOG_NUM); SYSSTATEMENTSRowFactory rf = (SYSSTATEMENTSRowFactory) ti.getCatalogRowFactory(); int[] updCols; idOrderable = getIDValueAsCHAR(spsd.getUUID()); addSPSParams(spsd, tc, wait); 0, 0, 0,false); updateColumnDescriptor(cd, cd.getReferencingUUID(), cd.getColumnName(),