public final class Functions extends java.lang.Object implements java.lang.Iterable<Function>
SystemKeyspace
,
native functions and aggregates).Modifier and Type | Class and Description |
---|---|
static class |
Functions.Builder |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<UDAggregate> |
aggregatesUsingFunction(Function function) |
static Functions.Builder |
builder() |
boolean |
equals(java.lang.Object o) |
java.util.Optional<Function> |
find(FunctionName name,
java.util.List<AbstractType<?>> argTypes)
Find the function with the specified name
|
java.util.Collection<Function> |
get(FunctionName name)
Get all function overloads with the specified name
|
int |
hashCode() |
java.util.Iterator<Function> |
iterator() |
static Functions |
none() |
static Functions |
of(Function... funs) |
java.util.stream.Stream<Function> |
stream() |
java.lang.String |
toString() |
static int |
typeHashCode(AbstractType<?> t) |
static int |
typeHashCode(java.util.List<AbstractType<?>> types) |
static boolean |
typesMatch(AbstractType<?> t1,
AbstractType<?> t2) |
static boolean |
typesMatch(java.util.List<AbstractType<?>> t1,
java.util.List<AbstractType<?>> t2) |
java.util.stream.Stream<UDAggregate> |
udas() |
java.util.stream.Stream<UDFunction> |
udfs() |
Functions |
with(Function fun)
Create a Functions instance with the provided function added
|
Functions |
without(FunctionName name,
java.util.List<AbstractType<?>> argTypes)
Creates a Functions instance with the function with the provided name and argument types removed
|
public static Functions.Builder builder()
public static Functions none()
public java.util.Iterator<Function> iterator()
iterator
in interface java.lang.Iterable<Function>
public java.util.stream.Stream<Function> stream()
public java.util.stream.Stream<UDFunction> udfs()
public java.util.stream.Stream<UDAggregate> udas()
public java.util.Collection<UDAggregate> aggregatesUsingFunction(Function function)
function
- the referree functionpublic java.util.Collection<Function> get(FunctionName name)
name
- fully qualified function nameFunction
otherwisepublic java.util.Optional<Function> find(FunctionName name, java.util.List<AbstractType<?>> argTypes)
name
- fully qualified function nameargTypes
- function argument typesOptional
if the function name is not found; a non-empty optional of Function
otherwisepublic static boolean typesMatch(AbstractType<?> t1, AbstractType<?> t2)
public static boolean typesMatch(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)
public Functions with(Function fun)
public Functions without(FunctionName name, java.util.List<AbstractType<?>> argTypes)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2016 The Apache Software Foundation