Class FunctionResolver


  • public final class FunctionResolver
    extends java.lang.Object
    • Method Detail

      • makeArgSpec

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

        @Nullable
        public static Function get​(java.lang.String keyspace,
                                   FunctionName name,
                                   java.util.List<? extends AssignmentTestable> providedArgs,
                                   java.lang.String receiverKeyspace,
                                   java.lang.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​(java.lang.String keyspace,
                                   FunctionName name,
                                   java.util.List<? extends AssignmentTestable> providedArgs,
                                   java.lang.String receiverKeyspace,
                                   java.lang.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