FeedOptions 类

定义

Specifies the options associated with feed methods (enumeration operations) in the Azure Cosmos DB database service.

public class FeedOptions extends FeedOptionsBase
继承
java.lang.Object
FeedOptions

继承成员

构造函数

FeedOptions()
FeedOptions(FeedOptions options)

方法

getDisableRUPerMinuteUsage()

Gets disableRUPerMinuteUsage option for the current query in the Azure Cosmos DB database service.

getEmitVerboseTracesInQuery()

Gets the option to allow queries to emit out verbose traces for investigation.

getEnableCrossPartitionQuery()

Gets the option to allow queries to run across all partitions of the collection.

getEnableScanInQuery()

Gets the option to allow scan on the queries which couldn't be served as indexing was opted out on the requested paths.

getMaxBufferedItemCount()

Gets the maximum number of items that can be buffered client side during parallel query execution.

getMaxDegreeOfParallelism()

Gets the number of concurrent operations run client side during parallel query execution.

getPartitionKey()

Gets the partition key used to identify the current request's target partition.

getPartitionKeyRangeIdInternal()

Gets the partitionKeyRangeId.

getResponseContinuationTokenLimitInKb()

Gets the ResponseContinuationTokenLimitInKb request option for document query requests in the Azure Cosmos DB service. If not already set returns 0.

ResponseContinuationTokenLimitInKb is used to limit the length of continuation token in the query response. Valid values are>= 1.

getSessionToken()

Gets the session token for use with session consistency.

setDisableRUPerMinuteUsage(boolean disableRUPerMinuteUsage)

Sets the disableRUPerMinuteUsage option for the current query in the Azure Cosmos DB database service.

disableRUPerMinuteUsage is used to enable/disable Request Units(RUs)/minute capacity to serve the query if regular provisioned RUs/second is exhausted.

setEmitVerboseTracesInQuery(Boolean emitVerboseTracesInQuery)

Sets the option to allow queries to emit out verbose traces for investigation.

setEnableCrossPartitionQuery(Boolean enableCrossPartitionQuery)

Sets the option to allow queries to run across all partitions of the collection.

setEnableScanInQuery(Boolean enableScanInQuery)

Sets the option to allow scan on the queries which couldn't be served as indexing was opted out on the requested paths.

setMaxBufferedItemCount(int maxBufferedItemCount)

Sets the maximum number of items that can be buffered client side during parallel query execution.

setMaxDegreeOfParallelism(int maxDegreeOfParallelism)

Sets the number of concurrent operations run client side during parallel query execution.

setPartitionKey(PartitionKey partitionkey)

Sets the partition key used to identify the current request's target partition.

setPartitionKeyRangeIdInternal(String partitionKeyRangeId)

Sets the partitionKeyRangeId.

setResponseContinuationTokenLimitInKb(int limitInKb)

Sets the ResponseContinuationTokenLimitInKb" request option for document query requests in the Azure Cosmos DB service.

ResponseContinuationTokenLimitInKb is used to limit the length of continuation token in the query response. Valid values are>= 1.

The continuation token contains both required and optional fields. The required fields are necessary for resuming the execution from where it was stooped. The optional fields may contain serialized index lookup work that was done but not yet utilized. This avoids redoing the work again in subsequent continuations and hence improve the query performance. Setting the maximum continuation size to 1KB, the Azure Cosmos DB service will only serialize required fields. Starting from 2KB, the Azure Cosmos DB service would serialize as much as it could fit till it reaches the maximum specified size.

setSessionToken(String sessionToken)

Sets the session token for use with session consistency.

适用于