|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.teiid.metadata.AbstractMetadataRecord
org.teiid.metadata.FunctionMethod
public class FunctionMethod
This class represents information about a particular function signature.
Function signatures are unique with respect to their name, # of arguments,
and type of arguments. Return type and argument names are not uniqueness
factors. This class makes no attempt to validate the data put into it,
particularly with respect to null values. The
FunctionMetadataValidator
can be used to validate this object.
FunctionParameter
,
Serialized FormNested Class Summary | |
---|---|
static class |
FunctionMethod.Determinism
DETERMINISTIC -> normal deterministic functions vdb -> lookup (however lookup values can be flushed at any time), current_database session -> env, user command -> command payload never -> rand, etc. |
static class |
FunctionMethod.PushDown
Function Pushdown CAN_PUSHDOWN = If the source supports the function, then it will be pushed down. |
Nested classes/interfaces inherited from class org.teiid.metadata.AbstractMetadataRecord |
---|
AbstractMetadataRecord.DataModifiable, AbstractMetadataRecord.Modifiable |
Field Summary | |
---|---|
protected java.util.List<FunctionParameter> |
inParameters
|
Fields inherited from class org.teiid.metadata.AbstractMetadataRecord |
---|
NAME_DELIM_CHAR |
Constructor Summary | |
---|---|
protected |
FunctionMethod()
|
|
FunctionMethod(java.lang.String name,
java.lang.String description,
java.lang.String category,
FunctionMethod.PushDown pushdown,
java.lang.String invocationClass,
java.lang.String invocationMethod,
FunctionParameter[] inputParams,
FunctionParameter outputParam,
boolean nullOnNull,
FunctionMethod.Determinism deterministic)
|
|
FunctionMethod(java.lang.String name,
java.lang.String description,
java.lang.String category,
FunctionParameter[] inputParams,
FunctionParameter outputParam)
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Compare other object for equality. |
java.lang.String |
getCategory()
Get category of method |
java.lang.String |
getDescription()
Get description of method |
FunctionMethod.Determinism |
getDeterminism()
|
java.lang.String |
getFullName()
WARNING - The name returned by this method may be ambiguous and is not SQL safe - it may need quoted/escaped |
int |
getInputParameterCount()
Get a count of the input parameters. |
java.util.List<FunctionParameter> |
getInputParameters()
Get input parameters |
java.lang.String |
getInvocationClass()
Get invocation class name |
java.lang.String |
getInvocationMethod()
Get invocation method name |
java.lang.String |
getName()
Return name of method |
FunctionParameter |
getOutputParameter()
Get ouput parameter. |
Schema |
getParent()
|
FunctionMethod.PushDown |
getPushdown()
Get pushdown property of method |
int |
hashCode()
Get hash code for this object. |
boolean |
isNullOnNull()
Returns true if the function returns null on any null input |
boolean |
isVarArgs()
|
void |
setCategory(java.lang.String category)
Set category of method |
void |
setDescription(java.lang.String description)
Set description of method |
void |
setDeterminism(FunctionMethod.Determinism determinism)
|
void |
setDeterministicBoolean(boolean deterministic)
|
void |
setInputParameters(java.util.List<FunctionParameter> params)
Set input parameters. |
void |
setInvocationClass(java.lang.String invocationClass)
Set invocation class name |
void |
setInvocationMethod(java.lang.String invocationMethod)
Set invocation method name |
void |
setName(java.lang.String name)
Set name of method |
void |
setNullOnNull(boolean nullOnNull)
|
void |
setOutputParameter(FunctionParameter param)
Set ouput parameter. |
void |
setParent(Schema parent)
|
void |
setPushdown(FunctionMethod.PushDown pushdown)
Set pushdown property of method |
void |
setPushDown(java.lang.String pushdown)
|
java.lang.String |
toString()
Return string version for debugging purposes |
Methods inherited from class org.teiid.metadata.AbstractMetadataRecord |
---|
getAnnotation, getCanonicalName, getNameInSource, getProperties, getUUID, setAnnotation, setNameInSource, setProperties, setProperty, setUUID |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.util.List<FunctionParameter> inParameters
Constructor Detail |
---|
protected FunctionMethod()
public FunctionMethod(java.lang.String name, java.lang.String description, java.lang.String category, FunctionParameter[] inputParams, FunctionParameter outputParam)
public FunctionMethod(java.lang.String name, java.lang.String description, java.lang.String category, FunctionMethod.PushDown pushdown, java.lang.String invocationClass, java.lang.String invocationMethod, FunctionParameter[] inputParams, FunctionParameter outputParam, boolean nullOnNull, FunctionMethod.Determinism deterministic)
Method Detail |
---|
public java.lang.String getName()
getName
in class AbstractMetadataRecord
public void setName(java.lang.String name)
setName
in class AbstractMetadataRecord
name
- Namepublic java.lang.String getFullName()
AbstractMetadataRecord
getFullName
in class AbstractMetadataRecord
public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- Descriptionpublic java.lang.String getCategory()
FunctionCategoryConstants
public void setCategory(java.lang.String category)
category
- CategoryFunctionCategoryConstants
public FunctionMethod.PushDown getPushdown()
public void setPushdown(FunctionMethod.PushDown pushdown)
pushdown
- One of the FunctionMethod constants for pushdownpublic void setPushDown(java.lang.String pushdown)
public java.lang.String getInvocationClass()
public void setInvocationClass(java.lang.String invocationClass)
invocationClass
- Invocation class namepublic java.lang.String getInvocationMethod()
public void setInvocationMethod(java.lang.String invocationMethod)
invocationMethod
- Invocation method namepublic int getInputParameterCount()
public java.util.List<FunctionParameter> getInputParameters()
public void setInputParameters(java.util.List<FunctionParameter> params)
params
- Input parameterspublic FunctionParameter getOutputParameter()
public void setOutputParameter(FunctionParameter param)
param
- Output Parameterpublic int hashCode()
hashCode
in class AbstractMetadataRecord
public boolean equals(java.lang.Object obj)
equals
in class AbstractMetadataRecord
public java.lang.String toString()
toString
in class AbstractMetadataRecord
public boolean isNullOnNull()
public void setNullOnNull(boolean nullOnNull)
public FunctionMethod.Determinism getDeterminism()
public void setDeterministicBoolean(boolean deterministic)
public void setDeterminism(FunctionMethod.Determinism determinism)
public boolean isVarArgs()
public void setParent(Schema parent)
public Schema getParent()
getParent
in class AbstractMetadataRecord
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |