|
| Query |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.iquery.metadata.serverprop.Function
@SASScope(value="ALL") @SubjectToChange @ThreadSafe public class Function
Models a function definition that can be used within expressions to perform more complex queries.
To model an expression using a function definition use the FunctionCall class.
FunctionCall,
Operator| Method Summary | |
|---|---|
int |
getArgumentCount()
Returns -1 when the function has signatures with varying argument counts |
Category |
getCategory()
Returns the category this function is "contained" within. |
FunctionSignature |
getCompatibleSignature(java.util.List<? extends ExpressionInterface> args)
Returns a compatible function signature from the list of function signatures defined for this function that is compatible with the types of arguments given in the input list. |
java.lang.String |
getDescription()
Returns a localized description of this function. |
java.lang.String |
getDescription(java.util.Locale locale)
Returns a description for this object for a specific locale, typically for display purposes. |
com.sas.util.LocalizableString |
getDescriptions()
Returns the entire set of descriptions for this object for all locales, typically for display purposes. |
FunctionNameID |
getFunctionNameID()
Return the associated FunctionNameID class for this function. |
java.lang.String |
getID()
Returns the fully qualified id of this function. |
java.lang.String |
getLabel()
Returns a localized label of this function. |
java.lang.String |
getLabel(java.util.Locale locale)
Returns a label for this object for a specific locale, typically for display purposes. |
com.sas.util.LocalizableString |
getLabels()
Returns the entire set of labels for this object for all locales, typically for display purposes. |
java.lang.String |
getNameID()
Returns the name id of the function. |
java.util.List<FunctionSignature> |
getSignatures()
Returns the list of FunctionSignature objects associated with this Function. |
java.lang.String |
getSyntaxTemplateFor(int numberOfArguments)
Returns the syntax template for this Function with the specified number of arguments. |
java.lang.String |
getSyntaxToken()
Returns the syntax token for this function when used in a SQL or MDX-generated query. |
java.lang.String |
getToolTip()
Returns a localized string usable as a tooltip for this function. |
java.lang.String |
getToolTip(java.util.Locale locale)
|
boolean |
isDistinct()
Returns whether this function performs a "distinct" operation, such as in the sql COUNT DISTINCT function. |
boolean |
isInCategory(Category cat)
Returns whether this function is within the given category. |
| Method Detail |
|---|
@SASScope(value="ALL") @SubjectToChange public java.lang.String getSyntaxToken()
@SASScope(value="ALL") @SubjectToChange public boolean isDistinct()
@SASScope(value="ALL") @SubjectToChange public Category getCategory()
Category@SASScope(value="ALL") @SubjectToChange public java.lang.String getLabel()
getLabel in interface NamedObjectInterface@SASScope(value="ALL") @SubjectToChange public java.lang.String getLabel(java.util.Locale locale)
LocalizableNamedObjectInterface
getLabel in interface LocalizableNamedObjectInterfacelocale - the Locale of the label, null will use Locale.getDefault()
LocalizableNamedObjectInterface.getLabel(java.util.Locale)@SASScope(value="ALL") @SubjectToChange public java.lang.String getToolTip()
@SASScope(value="ALL") @SubjectToChange public java.lang.String getToolTip(java.util.Locale locale)
@SASScope(value="ALL") @SubjectToChange public java.lang.String getDescription()
getDescription in interface NamedObjectInterface@SASScope(value="ALL") @SubjectToChange public java.lang.String getDescription(java.util.Locale locale)
LocalizableNamedObjectInterface
getDescription in interface LocalizableNamedObjectInterfacelocale - the Locale of the description, null will use Locale.getDefault()
LocalizableNamedObjectInterface.getDescription(java.util.Locale)@SASScope(value="ALL") @SubjectToChange public java.util.List<FunctionSignature> getSignatures()
@SASScope(value="ALL") @SubjectToChange public int getArgumentCount()
@SASScope(value="ALL") @SubjectToChange public java.lang.String getID()
@SASScope(value="ALL") @SubjectToChange public java.lang.String getNameID()
@SASScope(value="ALL") @SubjectToChange public FunctionNameID getFunctionNameID()
@SASScope(value="ALL") @SubjectToChange public boolean isInCategory(Category cat)
cat - the category to test for
@SASScope(value="ALL") @SubjectToChange public java.lang.String getSyntaxTemplateFor(int numberOfArguments)
public FunctionSignature getCompatibleSignature(java.util.List<? extends ExpressionInterface> args)
args - a list of arguments used in determining a compatible function signature to return
@SASScope(value="ALL") @SubjectToChange public com.sas.util.LocalizableString getLabels()
LocalizableNamedObjectInterface
getLabels in interface LocalizableNamedObjectInterfaceLocalizableNamedObjectInterface.getLabels()@SASScope(value="ALL") @SubjectToChange public com.sas.util.LocalizableString getDescriptions()
LocalizableNamedObjectInterface
getDescriptions in interface LocalizableNamedObjectInterfaceLocalizableNamedObjectInterface.getDescriptions()
|
| Query |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||