Package com.foundationdb.server.explain

Examples of com.foundationdb.server.explain.Attributes


            server.getRoutineLoader().loadLoadablePlan(server.getSession(),
                                                       invocation.getRoutineName());
        return new Explainable() {
                @Override
                public CompoundExplainer getExplainer(ExplainContext context) {
                    Attributes atts = new Attributes();
                    atts.put(Label.PROCEDURE_IMPLEMENTATION,
                             PrimitiveExplainer.getInstance(loadablePlan.getClass().getName()));
                    return new ServerCallExplainer(invocation, atts, context);
                }
            };
    }
View Full Code Here


        return new ExpressionsAndBindings(rowType, pExprs, context, bindings);
    }

    @Override
    public CompoundExplainer getExplainer(ExplainContext context) {
        Attributes atts = new Attributes();
        for (TPreparedExpression expression : pExprs) {
            atts.put(Label.EXPRESSIONS, expression.getExplainer(context));
        }
        return new CompoundExplainer(Type.ROW, atts);
    }
View Full Code Here

        return new InnerEvaluation();
    }

    @Override
    public CompoundExplainer getExplainer(ExplainContext context) {
        Attributes states = new Attributes();
        states.put(Label.NAME, PrimitiveExplainer.getInstance("_SEQ_NEXT"));
        states.put(Label.OPERAND, PrimitiveExplainer.getInstance(sequence.getSequenceName().getSchemaName()));
        states.put(Label.OPERAND, PrimitiveExplainer.getInstance(sequence.getSequenceName().getTableName()));
        return new CompoundExplainer(Type.FUNCTION, states);
    }
View Full Code Here

            }
            plan.plannable = API.update_Default(input, plan);
        }
        if (LOG.isDebugEnabled()) {
            ExplainContext context = new ExplainContext();
            Attributes atts = new Attributes();
            TableName tableName = foreignKey.getReferencingTable().getName();
            atts.put(Label.TABLE_SCHEMA,
                     PrimitiveExplainer.getInstance(tableName.getSchemaName()));
            atts.put(Label.TABLE_NAME,
                     PrimitiveExplainer.getInstance(tableName.getTableName()));
            for (int i = 0; i < plan.ncols; i++) {
                atts.put(Label.COLUMN_NAME,
                         PrimitiveExplainer.getInstance(foreignKey.getReferencingColumns().get(i).getName()));
                CompoundExplainer var = new CompoundExplainer(Type.VARIABLE);
                var.addAttribute(Label.BINDING_POSITION,
                                 PrimitiveExplainer.getInstance(plan.ncols + i));
                atts.put(Label.EXPRESSIONS, var);
            }
            context.putExtraInfo(plan.plannable,
                                 new CompoundExplainer(Type.EXTRA_INFO, atts));
            Explainer explainer = plan.plannable.getExplainer(context);
            LOG.debug("Plan for " + foreignKey.getConstraintName().getTableName() + ":\n" +
View Full Code Here

TOP

Related Classes of com.foundationdb.server.explain.Attributes

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.