Package com.foundationdb.server.explain

Examples of com.foundationdb.server.explain.CompoundExplainer


    public CompoundExplainer getExplainer(ExplainContext context)
    {
        Attributes atts = new Attributes();
        atts.put(Label.NAME, PrimitiveExplainer.getInstance(getName()));
        atts.put(Label.INPUT_OPERATOR, inputOperator.getExplainer(context));
        return new CompoundExplainer(Type.BUFFER_OPERATOR, atts);
    }
View Full Code Here


    }

    @Override
    public CompoundExplainer getExplainer(ExplainContext context)
    {
        CompoundExplainer explainer = super.getExplainer(context);
        explainer.addAttribute(Label.LEFT_TYPE, first().getExplainer(context));
        explainer.addAttribute(Label.RIGHT_TYPE, second().getExplainer(context));
        return explainer;
    }
View Full Code Here

    }

    @Override
    public CompoundExplainer getExplainer(ExplainContext context)
    {
        CompoundExplainer explainer = super.getExplainer(context);
        explainer.addAttribute(Label.PARENT_TYPE, first().getExplainer(context));
        explainer.addAttribute(Label.CHILD_TYPE, second().getExplainer(context));
        return explainer;
    }
View Full Code Here

        return routine.getReturnValue().getType();
    }

    @Override
    public CompoundExplainer getExplainer(ExplainContext context) {
        CompoundExplainer ex = new TExpressionExplainer(Type.FUNCTION, routine.getName().toString(), context);
        for (TPreparedExpression input : inputs) {
            ex.addAttribute(Label.OPERAND, input.getExplainer(context));
        }
        return ex;
    }
View Full Code Here

    }

    @Override
    public CompoundExplainer getExplainer(ExplainContext context, List<? extends TPreparedExpression> inputs, TInstance resultType)
    {
        CompoundExplainer ex = super.getExplainer(context, inputs, resultType);
        ex.addAttribute(Label.INFIX_REPRESENTATION, PrimitiveExplainer.getInstance(op.name()));
        return ex;
    }
View Full Code Here

        atts.put(Label.INPUT_TYPE, rowType.getExplainer(context));
        for (TPreparedExpression ex : pExpressions)
            atts.put(Label.OPERAND, ex.getExplainer(context));
        atts.put(Label.INPUT_OPERATOR, inputOperator.getExplainer(context));
        atts.put(Label.INPUT_PRESERVATION, PrimitiveExplainer.getInstance(inputPreservation.toString()));
        return new CompoundExplainer(Type.IF_EMPTY, atts);
    }
View Full Code Here

            if (updatesP.get(column.getPosition()) != null) {
                atts.put(Label.COLUMN_NAME, PrimitiveExplainer.getInstance(column.getName()));
                atts.put(Label.EXPRESSIONS, updatesP.get(column.getPosition()).getExplainer(explainContext));
            }
        }
        explainContext.putExtraInfo(plan, new CompoundExplainer(Type.EXTRA_INFO, atts));
        return explainContext;
    }
View Full Code Here

        private final TComparison comparison;
        private final boolean reverseComparison;
    }

    private void explainColumnExpression(TPreparedExpression expression, ColumnExpression column) {
        CompoundExplainer explainer = new CompoundExplainer(Type.EXTRA_INFO);
        explainer.addAttribute(Label.POSITION,
                               PrimitiveExplainer.getInstance(column.getPosition()));
        Column aisColumn = column.getColumn();
        if (aisColumn != null) {
            explainer.addAttribute(Label.TABLE_CORRELATION,
                                   PrimitiveExplainer.getInstance(column.getTable().getName()));
            TableName tableName = aisColumn.getTable().getName();
            explainer.addAttribute(Label.TABLE_SCHEMA,
                                   PrimitiveExplainer.getInstance(tableName.getSchemaName()));
            explainer.addAttribute(Label.TABLE_NAME,
                                   PrimitiveExplainer.getInstance(tableName.getTableName()));
            explainer.addAttribute(Label.COLUMN_NAME,
                                   PrimitiveExplainer.getInstance(aisColumn.getName()));
        }
        explainContext.putExtraInfo(expression, explainer);
    }
View Full Code Here

    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

    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

TOP

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

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.