org.apache.cassandra.cql3.functions
Class AbstractFunction

java.lang.Object
  extended by org.apache.cassandra.cql3.functions.AbstractFunction
All Implemented Interfaces:
Function
Direct Known Subclasses:
TokenFct

public abstract class AbstractFunction
extends java.lang.Object
implements Function


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.cassandra.cql3.functions.Function
Function.Factory
 
Field Summary
 java.util.List<AbstractType<?>> argsType
           
 java.lang.String name
           
 AbstractType<?> returnType
           
 
Constructor Summary
protected AbstractFunction(java.lang.String name, AbstractType<?> returnType, AbstractType<?>... argsType)
           
 
Method Summary
 java.util.List<AbstractType<?>> argsType()
           
static Function.Factory factory(Function fun)
          Creates a trivial factory that always return the provided function.
 java.lang.String name()
           
 AbstractType<?> returnType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.cassandra.cql3.functions.Function
execute
 

Field Detail

name

public final java.lang.String name

argsType

public final java.util.List<AbstractType<?>> argsType

returnType

public final AbstractType<?> returnType
Constructor Detail

AbstractFunction

protected AbstractFunction(java.lang.String name,
                           AbstractType<?> returnType,
                           AbstractType<?>... argsType)
Method Detail

name

public java.lang.String name()
Specified by:
name in interface Function

argsType

public java.util.List<AbstractType<?>> argsType()
Specified by:
argsType in interface Function

returnType

public AbstractType<?> returnType()
Specified by:
returnType in interface Function

factory

public static Function.Factory factory(Function fun)
Creates a trivial factory that always return the provided function.



Copyright © 2013 The Apache Software Foundation