Class FunctionResolver

java.lang.Object
org.apache.cassandra.cql3.functions.FunctionResolver

public final class FunctionResolver extends Object
  • Method Details

    • makeArgSpec

      public static ColumnSpecification makeArgSpec(String receiverKeyspace, String receiverTable, Function fun, int i)
    • get

      @Nullable public static Function get(String keyspace, FunctionName name, List<? extends AssignmentTestable> providedArgs, String receiverKeyspace, String receiverTable, AbstractType<?> receiverType) throws InvalidRequestException
      Parameters:
      keyspace - the current keyspace
      name - the name of the function
      providedArgs - the arguments provided for the function call
      receiverKeyspace - the receiver's keyspace
      receiverTable - the receiver's table
      receiverType - if the receiver type is known (during inserts, for example), this should be the type of the receiver
      Throws:
      InvalidRequestException
    • get

      @Nullable public static Function get(String keyspace, FunctionName name, List<? extends AssignmentTestable> providedArgs, String receiverKeyspace, String receiverTable, AbstractType<?> receiverType, UserFunctions functions) throws InvalidRequestException
      Parameters:
      keyspace - the current keyspace
      name - the name of the function
      providedArgs - the arguments provided for the function call
      receiverKeyspace - the receiver's keyspace
      receiverTable - the receiver's table
      receiverType - if the receiver type is known (during inserts, for example), this should be the type of the receiver
      functions - a set of user functions that is not yet available in the schema, used during startup when those functions might not be yet available
      Throws:
      InvalidRequestException