Examples of DMLFunctions


Examples of com.foundationdb.server.api.DMLFunctions

    @Override
    public void start() {
        List<DXLFunctionsHook> hooks = getHooks();
        DDLFunctions localDdlFunctions = new HookableDDLFunctions(createDDLFunctions(), hooks, sessionService);
        DMLFunctions localDmlFunctions = new HookableDMLFunctions(createDMLFunctions(), hooks);
        synchronized (MONITOR) {
            if (ddlFunctions != null) {
                throw new ServiceStartupException("service already started");
            }
            ddlFunctions = localDdlFunctions;
View Full Code Here

Examples of com.foundationdb.server.api.DMLFunctions

        return ret;
    }

    @Override
    public DMLFunctions dmlFunctions() {
        final DMLFunctions ret = dmlFunctions;
        if (ret == null) {
            throw new ServiceNotStartedException("DML Functions");
        }
        return ret;
    }
View Full Code Here

Examples of com.foundationdb.server.api.DMLFunctions

        // May only drop leaf tables through DDL interface
        if(!table.getChildJoins().isEmpty()) {
            throw new UnsupportedDropException(table.getName());
        }

        DMLFunctions dml = new BasicDMLFunctions(schemaManager(), store(), listenerService);
        if(table.isRoot()) {
            // Root table and no child tables, can delete all associated trees
            store().removeTrees(session, table);
        } else {
            dml.truncateTable(session, table.getTableId(), false);
            store().deleteIndexes(session, table.getIndexesIncludingInternal());
            store().deleteIndexes(session, table.getGroupIndexes());

            if (table.getIdentityColumn() != null) {
                Collection<Sequence> sequences = Collections.singleton(table.getIdentityColumn().getIdentityGenerator());
View Full Code Here

Examples of com.foundationdb.server.api.DMLFunctions

    protected long loadTableFromRowReader(Session session,
                                          InputStream inputStream, RowReader reader,
                                          long commitFrequency, int maxRetries)
            throws IOException {
        DMLFunctions dml = dxlService.dmlFunctions();
        long pending = 0, total = 0;
        List<RowData> rowDatas = null;
        if (maxRetries > 0)
            rowDatas = new ArrayList<>();
        boolean transaction = false;
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.