共用方式為


TableOutput Interface

public interface TableOutput

Place this on a parameter whose value would be written to a storage table. The parameter type should be OutputBinding<T>, where T could be one of:

    <li>
    
      <p>Any native Java types such as int, String, byte[] </p>
    
    </li>
    
    <li>
    
      <p>Any POJO type </p>
    
    </li>
    

Method Summary

Modifier and Type Method and Description
String connection()

Defines the app setting name that contains the Azure Storage connection string.

String dataType()

Defines how Functions runtime should treat the parameter value. Possible values are:

    <li>
    
      <p>"" or string: treat it as a string whose value is serialized from the parameter </p>
    
    </li>
    
    <li>
    
      <p>binary: treat it as a binary data whose value comes from for example OutputBinding&lt;byte[]&gt; </p>
    
    </li>
    

String name()

The variable name used in function.json.

String partitionKey()

Defines the partition key of the storage table to which to write.

String rowKey()

Defines the row key of the storage table to which to write.

String tableName()

Defines the name of the storage table to which to write.

Method Details

connection

public String connection() default ""

Defines the app setting name that contains the Azure Storage connection string.

Returns:

The app setting name of the connection string.

dataType

public String dataType() default ""

Defines how Functions runtime should treat the parameter value. Possible values are:

    <li>
    
      <p>"" or string: treat it as a string whose value is serialized from the parameter </p>
    
    </li>
    
    <li>
    
      <p>binary: treat it as a binary data whose value comes from for example OutputBinding&lt;byte[]&gt; </p>
    
    </li>
    

Returns:

The dataType which will be used by the Functions runtime.

name

public String name()

The variable name used in function.json.

Returns:

The variable name used in function.json.

partitionKey

public String partitionKey() default ""

Defines the partition key of the storage table to which to write.

Returns:

The storage table partition key string.

rowKey

public String rowKey() default ""

Defines the row key of the storage table to which to write.

Returns:

The storage table row key string.

tableName

public String tableName()

Defines the name of the storage table to which to write.

Returns:

The storage table name string.

Applies to