Package io.crate.planner.symbol

Examples of io.crate.planner.symbol.Parameter


    private Object currentParameter;

    private SubscriptContext analyzeSubscript(String expressionString) {
        Analyzer.ParameterContext parameterContext = mock(Analyzer.ParameterContext.class);
        when(parameterContext.getAsSymbol(anyInt())).thenReturn(new Parameter(currentParameter));
        SubscriptContext context = new SubscriptContext(parameterContext);
        Expression expression = SqlParser.createExpression(expressionString);
        expression.accept(visitor, context);
        return context;
    }
View Full Code Here


                if (hasBulkParams()) {
                    // already did a type guess so it is possible to create a literal directly
                    return io.crate.planner.symbol.Literal.newLiteral(
                            bulkTypes[index], bulkParameters[currentIdx][index]);
                }
                return new Parameter(parameters[index]);
            } catch (ArrayIndexOutOfBoundsException e) {
                throw new IllegalArgumentException(String.format(Locale.ENGLISH,
                        "Tried to resolve a parameter but the arguments provided with the " +
                                "SQLRequest don't contain a parameter at position %d", index), e);
            }
View Full Code Here

TOP

Related Classes of io.crate.planner.symbol.Parameter

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.