Package com.foundationdb.ais.model

Examples of com.foundationdb.ais.model.AbstractVisitor


                             StoreGIHandler.Action.DELETE);
    }

    @Override
    public void dropGroup(final Session session, Group group) {
        group.getRoot().visit(new AbstractVisitor() {
            @Override
            public void visit(Table table) {
                removeTrees(session, table);
            }
        });
View Full Code Here


        }
    }

    @Override
    public void truncateGroup(final Session session, final Group group) {
        group.getRoot().visit(new AbstractVisitor() {
            @Override
            public void visit(Table table) {
                // Foreign keys
                constraintHandler.handleTruncate(session, table);
                onlineHelper.handleTruncate(session, table);
View Full Code Here

    public TableRowTracker(Table table, int addlDepth) {
        minDepth = table.getDepth();
        final int max[] = { minDepth };
        if (addlDepth < 0) {
            table.visit(new AbstractVisitor() {
                @Override
                public void visit(Table table) {
                    max[0] = Math.max(max[0], table.getDepth());
                }
            });
View Full Code Here

    private void slowTruncate(Session session, Table table, boolean descendants) {
        final com.foundationdb.qp.rowtype.Schema schema = SchemaCache.globalSchema(table.getAIS());
        final Set<TableRowType> filterTypes;
        if(descendants) {
            filterTypes = new HashSet<>();
            table.visit(new AbstractVisitor() {
                @Override
                public void visit(Table t) {
                    TableRowType rowType = schema.tableRowType(t);
                    assert rowType != null : t;
                    filterTypes.add(rowType);
View Full Code Here

        final Group group = getAIS(session).getGroup(groupName);
        if(group == null) {
            return;
        }
        store().dropGroup(session, group);
        group.visit(new AbstractVisitor() {
            @Override
            public void visit(Table table) {
                for(TableListener listener : listenerService.getTableListeners()) {
                    listener.onDrop(session, table);
                }
View Full Code Here

            traverseStart = oldTable;
        } else {
           traverseStart = oldTable.getGroup().getRoot();
        }

        traverseStart.visit(new AbstractVisitor() {
            @Override
            public void visit(Table table) {
                keepTables.add(table);
            }
        });
View Full Code Here

            }
        }
    }

    private void propagateChildChange(final Table table, final ParentChange change, final boolean allIndexes) {
        table.visitBreadthFirst(new AbstractVisitor() {
            @Override
            public void visit(Table curTable) {
                if(table != curTable) {
                    TableName parentName = curTable.getParentJoin().getParent().getName();
                    trackChangedTable(curTable, change, parentName, null, allIndexes);
View Full Code Here

        final Set<String> schemas = new HashSet<>();
        final List<Integer> tableIDs = new ArrayList<>();
        final Set<TableName> sequences = new HashSet<>();

        // Collect all tables in branch below this point
        table.visit(new AbstractVisitor() {
            @Override
            public void visit(Table table) {
                if(mustBeMemory && !table.hasMemoryTableFactory()) {
                    throw new IllegalArgumentException("Cannot un-register non-memory table");
                }
View Full Code Here

     */
    public static Operator generateScanPlan (AkibanInformationSchema ais, Table table) {
        final Schema schema = SchemaCache.globalSchema(ais);
        Operator plan = API.groupScan_Default(table.getGroup());
        final List<RowType> keepTypes = new ArrayList<>();
        table.visit(new AbstractVisitor() {
            @Override
            public void visit(Table table) {
                keepTypes.add(schema.tableRowType(table));
            }
        });
View Full Code Here

TOP

Related Classes of com.foundationdb.ais.model.AbstractVisitor

Copyright © 2018 www.massapicom. 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.