java.io.Serializable
, java.lang.Cloneable
public final class FunctionDef
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
NOTE: This object is NOT immutable or thread-safe. A FunctionDef should not be shared among different threads.
Constructor | Description |
---|---|
FunctionDef(java.lang.String name,
Expression[] params) |
Constructs the FunctionDef.
|
Modifier and Type | Method | Description |
---|---|---|
java.lang.Object |
clone() |
Performs a deep clone of this object.
|
Function |
getFunction(QueryContext context) |
Returns a Function object from this FunctionDef.
|
java.lang.String |
getName() |
The name of the function.
|
Expression[] |
getParameters() |
The list of parameters that are passed to the function.
|
boolean |
isAggregate(QueryContext context) |
Returns true if this function is an aggregate, or the parameters are
aggregates.
|
java.lang.String |
toString() |
Human understandable string, used for the column title.
|
public FunctionDef(java.lang.String name, Expression[] params)
public java.lang.String getName()
public Expression[] getParameters()
public boolean isAggregate(QueryContext context)
public Function getFunction(QueryContext context)
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2018. All rights reserved.