Package io.crate.metadata

Examples of io.crate.metadata.FunctionInfo


    private static class Resolver implements DynamicFunctionResolver {

        @Override
        public FunctionImplementation<Function> getForTypes(List<DataType> dataTypes) throws IllegalArgumentException {
            ToPrimitiveFunction.checkPreconditions(dataTypes);
            return new ToIntFunction(new FunctionInfo(new FunctionIdent(NAME, dataTypes), DataTypes.INTEGER));
        }
View Full Code Here


    private static class Resolver implements DynamicFunctionResolver {

        @Override
        public FunctionImplementation<Function> getForTypes(List<DataType> dataTypes) throws IllegalArgumentException {
            ToFloatArrayFunction.checkPreconditions(dataTypes);
            return new ToFloatArrayFunction(new FunctionInfo(new FunctionIdent(NAME, dataTypes), FLOAT_ARRAY_TYPE));
        }
View Full Code Here

    private static class Resolver implements DynamicFunctionResolver {

        @Override
        public FunctionImplementation<Function> getForTypes(List<DataType> dataTypes) throws IllegalArgumentException {
            ToLongArrayFunction.checkPreconditions(dataTypes);
            return new ToLongArrayFunction(new FunctionInfo(new FunctionIdent(NAME, dataTypes), LONG_ARRAY_TYPE));
        }
View Full Code Here

    private static class Resolver implements DynamicFunctionResolver {

        @Override
        public FunctionImplementation<Function> getForTypes(List<DataType> dataTypes) throws IllegalArgumentException {
            ToBooleanArrayFunction.checkPreconditions(dataTypes);
            return new ToBooleanArrayFunction(new FunctionInfo(new FunctionIdent(NAME, dataTypes), BOOLEAN_ARRAY_TYPE));
        }
View Full Code Here

    private static class Resolver implements DynamicFunctionResolver {

        @Override
        public FunctionImplementation<Function> getForTypes(List<DataType> dataTypes) throws IllegalArgumentException {
            ToPrimitiveFunction.checkPreconditions(dataTypes);
            return new ToShortFunction(new FunctionInfo(new FunctionIdent(NAME, dataTypes), DataTypes.SHORT));
        }
View Full Code Here

TOP

Related Classes of io.crate.metadata.FunctionInfo

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.