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 |
static class |
Functions.Filter |
static class |
Functions.FunctionsDiff<T extends Function> |
Modifier and Type | Method and Description |
---|---|
java.util.stream.Stream<UDAggregate> |
aggregatesUsingFunction(Function function) |
static Functions.Builder |
builder() |
boolean |
equals(java.lang.Object o) |
Functions |
filter(java.util.function.Predicate<Function> predicate) |
java.util.Optional<Function> |
find(FunctionName name,
java.util.List<AbstractType<?>> argTypes) |
java.util.Optional<Function> |
find(FunctionName name,
java.util.List<AbstractType<?>> argTypes,
Functions.Filter filter)
Find the function with the specified name
|
java.util.Collection<Function> |
get(FunctionName name)
Get all function overloads with the specified name
|
java.util.Collection<UDAggregate> |
getUdas(FunctionName name)
Get all UDAs overloads with the specified name
|
java.util.Collection<UDFunction> |
getUdfs(FunctionName name)
Get all UDFs overloads with the specified name
|
int |
hashCode() |
boolean |
isEmpty() |
java.util.Iterator<Function> |
iterator() |
static Functions |
none() |
static Functions |
of(Function... funs) |
java.lang.Iterable<Function> |
referencingUserType(java.nio.ByteBuffer name) |
int |
size() |
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(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 |
withAddedOrUpdated(Function function) |
Functions |
without(Function function) |
Functions |
without(FunctionName name,
java.util.List<AbstractType<?>> argTypes)
Creates a Functions instance with the function with the provided name and argument types removed
|
Functions |
withUpdatedUserType(UserType udt) |
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 int size()
public java.util.stream.Stream<UDFunction> udfs()
public java.util.stream.Stream<UDAggregate> udas()
public java.lang.Iterable<Function> referencingUserType(java.nio.ByteBuffer name)
public java.util.stream.Stream<UDAggregate> aggregatesUsingFunction(Function function)
function
- the referree functionpublic java.util.Collection<Function> get(FunctionName name)
name
- fully qualified function nameFunction
otherwisepublic java.util.Collection<UDFunction> getUdfs(FunctionName name)
name
- fully qualified function nameUDFunction
otherwisepublic java.util.Collection<UDAggregate> getUdas(FunctionName name)
name
- fully qualified function nameUDAggregate
otherwisepublic java.util.Optional<Function> find(FunctionName name, java.util.List<AbstractType<?>> argTypes)
public java.util.Optional<Function> find(FunctionName name, java.util.List<AbstractType<?>> argTypes, Functions.Filter filter)
name
- fully qualified function nameargTypes
- function argument typesOptional
if the function name is not found; a non-empty optional of Function
otherwisepublic boolean isEmpty()
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 © 2009-2021 The Apache Software Foundation