你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
UserDefinedFunction Class
- java.
lang. Object - com.
microsoft. azure. documentdb. JsonSerializable - com.
microsoft. azure. documentdb. Resource - com.
microsoft. azure. documentdb. UserDefinedFunction
- com.
- com.
- com.
public class UserDefinedFunction
extends Resource
Represents a user defined function in the Azure Cosmos DB database service.
Azure Cosmos DB supports JavaScript UDFs which can be used inside queries, stored procedures and triggers. For additional details, refer to the server-side JavaScript API documentation.
Constructor Summary
Constructor | Description |
---|---|
UserDefinedFunction() |
Constructor. |
UserDefinedFunction(String jsonString) |
Constructor. |
UserDefinedFunction(JSONObject jsonObject) |
Constructor. |
Method Summary
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBody()
Get the body of the user defined function. |
void |
setBody(String body)
Set the body of the user defined function. |
Methods inherited from JsonSerializable
Methods inherited from Resource
Methods inherited from java.lang.Object
Constructor Details
UserDefinedFunction
public UserDefinedFunction()
Constructor.
UserDefinedFunction
public UserDefinedFunction(String jsonString)
Constructor.
Parameters:
UserDefinedFunction
public UserDefinedFunction(JSONObject jsonObject)
Constructor.
Parameters:
Method Details
getBody
public String getBody()
Get the body of the user defined function.
Returns:
setBody
public void setBody(String body)
Set the body of the user defined function.
Parameters: