public abstract class Functions
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
addOrReplaceFunction(AbstractFunction fun) |
static java.util.Collection<Function> |
all() |
static java.util.List<Function> |
find(FunctionName name) |
static Function |
find(FunctionName name,
java.util.List<AbstractType<?>> argTypes) |
static Function |
get(java.lang.String keyspace,
FunctionName name,
java.util.List<? extends AssignmentTestable> providedArgs,
java.lang.String receiverKs,
java.lang.String receiverCf,
AbstractType<?> receiverType) |
static int |
getOverloadCount(FunctionName name) |
static java.util.List<Function> |
getReferencesTo(Function old) |
static ColumnSpecification |
makeArgSpec(java.lang.String receiverKs,
java.lang.String receiverCf,
Function fun,
int i) |
static void |
removeFunction(FunctionName name,
java.util.List<AbstractType<?>> argTypes) |
static boolean |
typeEquals(AbstractType<?> t1,
AbstractType<?> t2) |
static boolean |
typeEquals(java.util.List<AbstractType<?>> t1,
java.util.List<AbstractType<?>> t2) |
static int |
typeHashCode(AbstractType<?> t) |
static int |
typeHashCode(java.util.List<AbstractType<?>> types) |
public static ColumnSpecification makeArgSpec(java.lang.String receiverKs, java.lang.String receiverCf, Function fun, int i)
public static int getOverloadCount(FunctionName name)
public static Function get(java.lang.String keyspace, FunctionName name, java.util.List<? extends AssignmentTestable> providedArgs, java.lang.String receiverKs, java.lang.String receiverCf, AbstractType<?> receiverType) throws InvalidRequestException
keyspace
- the current keyspacename
- the name of the functionprovidedArgs
- the arguments provided for the function callreceiverKs
- the receiver's keyspacereceiverCf
- the receiver's tablereceiverType
- if the receiver type is known (during inserts, for example), this should be the type of
the receiverInvalidRequestException
public static java.util.List<Function> find(FunctionName name)
public static Function find(FunctionName name, java.util.List<AbstractType<?>> argTypes)
public static void addOrReplaceFunction(AbstractFunction fun)
public static void removeFunction(FunctionName name, java.util.List<AbstractType<?>> argTypes)
public static java.util.Collection<Function> all()
public static boolean typeEquals(AbstractType<?> t1, AbstractType<?> t2)
public static boolean typeEquals(java.util.List<AbstractType<?>> t1, java.util.List<AbstractType<?>> t2)
public static int typeHashCode(AbstractType<?> t)
public static int typeHashCode(java.util.List<AbstractType<?>> types)
Copyright © 2020 The Apache Software Foundation