com.microsoft.azure.functions.annotation.TableInput Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-functions-java-library Show documentation
Show all versions of azure-functions-java-library Show documentation
This package contains all Java interfaces and annotations to interact with Microsoft Azure functions runtime.
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/
package com.microsoft.azure.functions.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* The following example shows an HTTP trigger which returned the total count of the items in a table storage:
*
* {@literal @}FunctionName("getallcount")
* public int run(
* {@literal @}HttpTrigger(name = "req",
* methods = {"get"},
* authLevel = AuthorizationLevel.ANONYMOUS) Object dummyShouldNotBeUsed,
* {@literal @}TableInput(name = "items",
* tableName = "mytablename",
* partitionKey = "myparkey",
* connection = "myconnvarname") MyItem[] items
* ) {
* return items.length;
* }
*
* @see com.microsoft.azure.functions.annotation.HttpTrigger
* @since 1.0.0
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.PARAMETER)
public @interface TableInput {
String name();
String dataType() default "";
String tableName();
String partitionKey() default "";
String rowKey() default "";
String filter() default "";
String take() default "";
String connection() default "";
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy