Examples of akibanInformationSchema()


Examples of com.foundationdb.ais.model.AISBuilder.akibanInformationSchema()

        TypesTranslator typesTranslator = ddlFunctions.getTypesTranslator();
        AISBuilder builder = new AISBuilder();
        builder.getNameGenerator().mergeAIS(ais);
        builder.table(schemaName, tableName);
        Table table = builder.akibanInformationSchema().getTable(schemaName, tableName);
        IndexNameGenerator namer = DefaultIndexNameGenerator.forTable(table);

        cloneReferencedTables(defaultSchemaName,
                              ddlFunctions.getAISCloner(),
                              ais,
View Full Code Here

Examples of com.foundationdb.ais.model.AISBuilder.akibanInformationSchema()

        IndexNameGenerator namer = DefaultIndexNameGenerator.forTable(table);

        cloneReferencedTables(defaultSchemaName,
                              ddlFunctions.getAISCloner(),
                              ais,
                              builder.akibanInformationSchema(),
                              createTable.getTableElementList());

        int colpos = 0;
        // first loop through table elements, add the columns
        for (TableElementNode tableElement : createTable.getTableElementList()) {
View Full Code Here

Examples of com.foundationdb.ais.model.AISBuilder.akibanInformationSchema()

        }

        TypesTranslator typesTranslator = ddlFunctions.getTypesTranslator();
        AISBuilder builder = new AISBuilder();
        builder.table(schemaName, tableName);
        Table table = builder.akibanInformationSchema().getTable(schemaName, tableName);
        ResultColumnList resultColumns = null;
        if(createTable != null)
            resultColumns = createTable.getResultColumns();
        String newColumnName;
        ResultColumn resultColumn;
View Full Code Here

Examples of com.foundationdb.ais.model.AISBuilder.akibanInformationSchema()

            }
            TableDDL.addColumn(builder, typesTranslator,
                               schemaName, viewName, rc.getName(), colpos++,
                               type, null, null);
        }
        View view = builder.akibanInformationSchema().getView(schemaName, viewName);
        ddlFunctions.createView(session, view);
    }

    public static void dropView (DDLFunctions ddlFunctions,
                                 Session session,
View Full Code Here

Examples of com.foundationdb.ais.model.AISBuilder.akibanInformationSchema()

        builder.routineDeterministic(schemaName, routineName,
                                     aliasInfo.isDeterministic());
        builder.routineCalledOnNullInput(schemaName, routineName,
                                         aliasInfo.calledOnNullInput());
       
        Routine routine = builder.akibanInformationSchema().getRoutine(tableName);
        boolean replaceExisting = createAlias.isCreateOrReplace();
        ddlFunctions.createRoutine(session, routine, replaceExisting);
        if (replaceExisting)
            routineLoader.checkUnloadRoutine(session, tableName);
    }
View Full Code Here

Examples of com.foundationdb.ais.model.AISBuilder.akibanInformationSchema()

            }
            // else keep long max
        }
        AISBuilder builder = new AISBuilder();
        builder.sequence(seqName.getSchemaName(), seqName.getTableName(), startWith, incBy, minValue, maxValue, isCycle);
        Sequence sequence = builder.akibanInformationSchema().getSequence(seqName);
        if (node.getStorageFormat() != null) {
            TableDDL.setStorage(ddlFunctions, sequence, node.getStorageFormat());
        }
        ddlFunctions.createSequence(session, sequence);
    }
View Full Code Here

Examples of com.foundationdb.ais.model.AISBuilder.akibanInformationSchema()

    public void createJarAndRoutine(String jarSchema, String jarName,
                                    String routineSchema, String routineName) throws MalformedURLException {
        AISBuilder builder = new AISBuilder();
        builder.sqljJar(jarSchema, jarName, new URL("file://ajar.jar"));
        ddl().createSQLJJar(session(), builder.akibanInformationSchema().getSQLJJar(jarSchema, jarName));
        builder.routine(routineSchema, routineName, "java", Routine.CallingConvention.JAVA);
        builder.routineExternalName(routineSchema, routineName, jarSchema, jarName, "className", "method");
        ddl().createRoutine(session(), builder.akibanInformationSchema().getRoutine(routineSchema, routineName), true);
    }
View Full Code Here

Examples of com.foundationdb.ais.model.AISBuilder.akibanInformationSchema()

        AISBuilder builder = new AISBuilder();
        builder.sqljJar(jarSchema, jarName, new URL("file://ajar.jar"));
        ddl().createSQLJJar(session(), builder.akibanInformationSchema().getSQLJJar(jarSchema, jarName));
        builder.routine(routineSchema, routineName, "java", Routine.CallingConvention.JAVA);
        builder.routineExternalName(routineSchema, routineName, jarSchema, jarName, "className", "method");
        ddl().createRoutine(session(), builder.akibanInformationSchema().getRoutine(routineSchema, routineName), true);
    }

    @After
    public void lookForDanglingStorage() throws Exception {
        super.lookForDanglingStorage();
View Full Code Here

Examples of com.foundationdb.ais.model.AISBuilder.akibanInformationSchema()

        AISBuilder builder = new AISBuilder();
        builder.routine("drop", "f", "javascript", Routine.CallingConvention.SCRIPT_FUNCTION_JSON);
        builder.routineDefinition("drop", "f", "function f() { return 3; }");
        builder.routine("keep", "p", "javascript", Routine.CallingConvention.SCRIPT_FUNCTION_JSON);
        builder.routineDefinition("keep", "p", "function f() { return 8; }");
        ddl().createRoutine(session(), builder.akibanInformationSchema().getRoutine("drop", "f"), true);
        ddl().createRoutine(session(), builder.akibanInformationSchema().getRoutine("keep", "p"), true);
        expectRoutines("drop", "f");
        expectRoutines("keep", "p");
        ddl().dropSchema(session(), "drop");
        expectNotRoutines("drop", "f");
View Full Code Here

Examples of com.foundationdb.ais.model.AISBuilder.akibanInformationSchema()

        builder.routine("drop", "f", "javascript", Routine.CallingConvention.SCRIPT_FUNCTION_JSON);
        builder.routineDefinition("drop", "f", "function f() { return 3; }");
        builder.routine("keep", "p", "javascript", Routine.CallingConvention.SCRIPT_FUNCTION_JSON);
        builder.routineDefinition("keep", "p", "function f() { return 8; }");
        ddl().createRoutine(session(), builder.akibanInformationSchema().getRoutine("drop", "f"), true);
        ddl().createRoutine(session(), builder.akibanInformationSchema().getRoutine("keep", "p"), true);
        expectRoutines("drop", "f");
        expectRoutines("keep", "p");
        ddl().dropSchema(session(), "drop");
        expectNotRoutines("drop", "f");
        expectRoutines("keep", "p");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.