Package com.facebook.presto.sql.gen

Examples of com.facebook.presto.sql.gen.DefaultFunctionBinder


                    getMagicLiteralFunctionSignature(type),
                    null,
                    true,
                    identity,
                    true,
                    new DefaultFunctionBinder(identity, false));
        }

        throw new PrestoException(StandardErrorCode.FUNCTION_NOT_FOUND.toErrorCode(), message);
    }
View Full Code Here


        }

        // if identity cast, return a custom operator info
        if ((operatorType == OperatorType.CAST) && (argumentTypes.size() == 1) && argumentTypes.get(0).equals(returnType)) {
            MethodHandle identity = MethodHandles.identity(returnType.getJavaType());
            return operatorInfo(OperatorType.CAST, returnType, argumentTypes, identity, new DefaultFunctionBinder(identity, false));
        }

        throw new OperatorNotFoundException(operatorType, argumentTypes, returnType);
    }
View Full Code Here

                    new Signature(MAGIC_LITERAL_FUNCTION_PREFIX, type, ImmutableList.copyOf(parameterTypes), false),
                    null,
                    true,
                    identity,
                    true,
                    new DefaultFunctionBinder(identity, false));
        }

        throw new PrestoException(StandardErrorCode.FUNCTION_NOT_FOUND.toErrorCode(), message);
    }
View Full Code Here

        }

        // if identity cast, return a custom operator info
        if ((operatorType == OperatorType.CAST) && (argumentTypes.size() == 1) && argumentTypes.get(0).equals(returnType)) {
            MethodHandle identity = MethodHandles.identity(returnType.getJavaType());
            return new OperatorInfo(OperatorType.CAST, returnType, argumentTypes, identity, new DefaultFunctionBinder(identity, false));
        }

        throw new OperatorNotFoundException(operatorType, argumentTypes, returnType);
    }
View Full Code Here

                    new Signature(MAGIC_LITERAL_FUNCTION_PREFIX, type, ImmutableList.copyOf(parameterTypes), false),
                    null,
                    true,
                    identity,
                    true,
                    new DefaultFunctionBinder(identity, false));
        }

        throw new PrestoException(StandardErrorCode.FUNCTION_NOT_FOUND.toErrorCode(), message);
    }
View Full Code Here

        }

        // if identity cast, return a custom operator info
        if ((operatorType == OperatorType.CAST) && (argumentTypes.size() == 1) && argumentTypes.get(0).equals(returnType)) {
            MethodHandle identity = MethodHandles.identity(returnType.getJavaType());
            return operatorInfo(OperatorType.CAST, returnType, argumentTypes, identity, new DefaultFunctionBinder(identity, false));
        }

        throw new OperatorNotFoundException(operatorType, argumentTypes, returnType);
    }
View Full Code Here

                    new Signature(MAGIC_LITERAL_FUNCTION_PREFIX, type, ImmutableList.copyOf(parameterTypes), false),
                    null,
                    true,
                    identity,
                    true,
                    new DefaultFunctionBinder(identity, false));
        }

        throw new PrestoException(StandardErrorCode.FUNCTION_NOT_FOUND.toErrorCode(), message);
    }
View Full Code Here

        }

        // if identity cast, return a custom operator info
        if ((operatorType == OperatorType.CAST) && (argumentTypes.size() == 1) && argumentTypes.get(0).equals(returnType)) {
            MethodHandle identity = MethodHandles.identity(returnType.getJavaType());
            return operatorInfo(OperatorType.CAST, returnType, argumentTypes, identity, new DefaultFunctionBinder(identity, false));
        }

        throw new OperatorNotFoundException(operatorType, argumentTypes, returnType);
    }
View Full Code Here

                    new Signature(MAGIC_LITERAL_FUNCTION_PREFIX, type, ImmutableList.copyOf(parameterTypes), false),
                    null,
                    true,
                    identity,
                    true,
                    new DefaultFunctionBinder(identity, false));
        }

        throw new PrestoException(StandardErrorCode.FUNCTION_NOT_FOUND.toErrorCode(), message);
    }
View Full Code Here

        }

        // if identity cast, return a custom operator info
        if ((operatorType == OperatorType.CAST) && (argumentTypes.size() == 1) && argumentTypes.get(0).equals(returnType)) {
            MethodHandle identity = MethodHandles.identity(returnType.getJavaType());
            return new OperatorInfo(OperatorType.CAST, returnType, argumentTypes, identity, new DefaultFunctionBinder(identity, false));
        }

        throw new OperatorNotFoundException(operatorType, argumentTypes, returnType);
    }
View Full Code Here

TOP

Related Classes of com.facebook.presto.sql.gen.DefaultFunctionBinder

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.