Interface Expr.InputBindingInspector

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      default boolean areNumeric​(List<Expr> args)
      Check if all provided Expr can infer the output type as TypeSignature.isNumeric() with a value of true (or null, which is not a type) There must be at least one expression with a computable numeric output type for this method to return true.
      default boolean areNumeric​(Expr... args)
      Check if all provided Expr can infer the output type as TypeSignature.isNumeric() with a value of true (or null, which is not a type) There must be at least one expression with a computable numeric output type for this method to return true.
      default boolean areSameTypes​(List<Expr> args)
      Check if all arguments are the same type (or null, which is not a type) This method should only be used if getType(java.lang.String) produces accurate information for all bindings (no null value for type unless the input binding does not exist and so the input is always null)
      default boolean areSameTypes​(Expr... args)
      Check if all arguments are the same type (or null, which is not a type) This method should only be used if getType(java.lang.String) produces accurate information for all bindings (no null value for type unless the input binding does not exist and so the input is always null)
      default boolean areScalar​(List<Expr> args)
      Check if all provided Expr can infer the output type as TypeSignature.isPrimitive() (non-array) with a value of true (or null, which is not a type) There must be at least one expression with a computable scalar output type for this method to return true.
      default boolean areScalar​(Expr... args)
      Check if all provided Expr can infer the output type as TypeSignature.isPrimitive() (non-array) with a value of true (or null, which is not a type) There must be at least one expression with a computable scalar output type for this method to return true.
      default boolean canVectorize​(List<Expr> args)
      Check if every provided Expr computes Expr.canVectorize(InputBindingInspector) to a value of true
      default boolean canVectorize​(Expr... args)
      Check if every provided Expr computes Expr.canVectorize(InputBindingInspector) to a value of true
      ExpressionType getType​(String name)
      Get the ExpressionType from the backing store for a given identifier (this is likely a column, but could be other things depending on the backing adapter)
    • Method Detail

      • getType

        @Nullable
        ExpressionType getType​(String name)
        Get the ExpressionType from the backing store for a given identifier (this is likely a column, but could be other things depending on the backing adapter)
      • areNumeric

        default boolean areNumeric​(List<Expr> args)
        Check if all provided Expr can infer the output type as TypeSignature.isNumeric() with a value of true (or null, which is not a type) There must be at least one expression with a computable numeric output type for this method to return true. This method should only be used if getType(java.lang.String) produces accurate information for all bindings (no null value for type unless the input binding does not exist and so the input is always null)
        See Also:
        Expr.getOutputType(InputBindingInspector)
      • areNumeric

        default boolean areNumeric​(Expr... args)
        Check if all provided Expr can infer the output type as TypeSignature.isNumeric() with a value of true (or null, which is not a type) There must be at least one expression with a computable numeric output type for this method to return true. This method should only be used if getType(java.lang.String) produces accurate information for all bindings (no null value for type unless the input binding does not exist and so the input is always null)
        See Also:
        Expr.getOutputType(InputBindingInspector)
      • areSameTypes

        default boolean areSameTypes​(List<Expr> args)
        Check if all arguments are the same type (or null, which is not a type) This method should only be used if getType(java.lang.String) produces accurate information for all bindings (no null value for type unless the input binding does not exist and so the input is always null)
        See Also:
        Expr.getOutputType(InputBindingInspector)
      • areSameTypes

        default boolean areSameTypes​(Expr... args)
        Check if all arguments are the same type (or null, which is not a type) This method should only be used if getType(java.lang.String) produces accurate information for all bindings (no null value for type unless the input binding does not exist and so the input is always null)
        See Also:
        Expr.getOutputType(InputBindingInspector)
      • areScalar

        default boolean areScalar​(List<Expr> args)
        Check if all provided Expr can infer the output type as TypeSignature.isPrimitive() (non-array) with a value of true (or null, which is not a type) There must be at least one expression with a computable scalar output type for this method to return true. This method should only be used if getType(java.lang.String) produces accurate information for all bindings (no null value for type unless the input binding does not exist and so the input is always null)
        See Also:
        Expr.getOutputType(InputBindingInspector)
      • areScalar

        default boolean areScalar​(Expr... args)
        Check if all provided Expr can infer the output type as TypeSignature.isPrimitive() (non-array) with a value of true (or null, which is not a type) There must be at least one expression with a computable scalar output type for this method to return true. This method should only be used if getType(java.lang.String) produces accurate information for all bindings (no null value for type unless the input binding does not exist and so the input is always null)
        See Also:
        Expr.getOutputType(InputBindingInspector)