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

Examples of io.crate.operation.scalar.elasticsearch.script.AbstractScalarScriptFactory.ScalarArgument


        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));
        assertThat(scalarArg1.args.get(0).getType(), is((DataType)DataTypes.DOUBLE));
    }
View Full Code Here

TOP

Related Classes of io.crate.operation.scalar.elasticsearch.script.AbstractScalarScriptFactory.ScalarArgument

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.