Package io.crate.operation.scalar.elasticsearch.script.AbstractScalarSearchScriptFactory

Examples of io.crate.operation.scalar.elasticsearch.script.AbstractScalarSearchScriptFactory.SearchContext


                                .put("type", DataTypes.DOUBLE.id())
                                .map()
                ))
                .map();

        SearchContext ctx = prepareScriptParams(params);

        assertThat(ctx.operator.info().ident().name(), is("op_="));
        assertThat(ctx.operatorArgs.get(1), instanceOf(AbstractScalarScriptFactory.LiteralArgument.class));
        assertThat(ctx.operatorArgs.get(1).getType(), is((DataType)DataTypes.DOUBLE));
        assertThat(
View Full Code Here


                                .put("type", DataTypes.FLOAT.id())
                                .map()
                ))
                .map();

        SearchContext ctx = prepareScriptParams(params);
        assertThat(ctx.operatorArgs.size(), is(2));
        AbstractScalarScriptFactory.WrappedArgument arg1 = ctx.operatorArgs.get(0);
        assertThat(arg1, instanceOf(ScalarArgument.class));
        ScalarArgument scalarArg1 = (ScalarArgument) arg1;
        assertThat(scalarArg1.getType(), is((DataType)DataTypes.LONG));
View Full Code Here

TOP

Related Classes of io.crate.operation.scalar.elasticsearch.script.AbstractScalarSearchScriptFactory.SearchContext

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.