FeedOptions Class
- java.
lang. Object - com.
microsoft. azure. documentdb. FeedOptionsBase - com.
microsoft. azure. documentdb. FeedOptions
- com.
- com.
public final class FeedOptions
extends FeedOptionsBase
Specifies the options associated with feed methods (enumeration operations) in the Azure Cosmos DB database service.
Constructor Summary
Constructor | Description | |
---|---|---|
FeedOptions() | ||
FeedOptions(FeedOptions options) |
Method Summary
Modifier and Type | Method and Description |
---|---|
java.lang.Boolean |
getDisableRUPerMinuteUsage()
Gets disable |
java.lang.Boolean |
getEmitVerboseTracesInQuery()
Gets the option to allow queries to emit out verbose traces for investigation. |
java.lang.Boolean |
getEnableCrossPartitionQuery()
Gets the option to allow queries to run across all partitions of the collection. |
java.lang.Boolean |
getEnableScanInQuery()
Gets the option to allow scan on the queries which couldn't be served as indexing was opted out on the requested paths. |
int |
getMaxBufferedItemCount()
Gets the maximum number of items that can be buffered client side during parallel query execution. |
int |
getMaxDegreeOfParallelism()
Gets the number of concurrent operations run client side during parallel query execution. |
Partition |
getPartitionKey()
Gets the partition key used to identify the current request's target partition. |
java.lang.String |
getPartitionKeyRangeIdInternal()
Gets the partition |
int |
getResponseContinuationTokenLimitInKb()
Gets the Response |
java.lang.String |
getSessionToken()
Gets the session token for use with session consistency. |
void |
setDisableRUPerMinuteUsage(boolean disableRUPerMinuteUsage)
Sets the disable |
void |
setEmitVerboseTracesInQuery(Boolean emitVerboseTracesInQuery)
Sets the option to allow queries to emit out verbose traces for investigation. |
void |
setEnableCrossPartitionQuery(Boolean enableCrossPartitionQuery)
Sets the option to allow queries to run across all partitions of the collection. |
void |
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. |
void |
setMaxBufferedItemCount(int maxBufferedItemCount)
Sets the maximum number of items that can be buffered client side during parallel query execution. |
void |
setMaxDegreeOfParallelism(int maxDegreeOfParallelism)
Sets the number of concurrent operations run client side during parallel query execution. |
void |
setPartitionKey(PartitionKey partitionkey)
Sets the partition key used to identify the current request's target partition. |
void |
setPartitionKeyRangeIdInternal(String partitionKeyRangeId)
Sets the partition |
void |
setResponseContinuationTokenLimitInKb(int limitInKb)
Sets the Response |
void |
setSessionToken(String sessionToken)
Sets the session token for use with session consistency. |
Methods inherited from FeedOptionsBase
Methods inherited from java.lang.Object
Constructor Details
FeedOptions
public FeedOptions()
FeedOptions
public FeedOptions(FeedOptions options)
Parameters:
Method Details
getDisableRUPerMinuteUsage
public Boolean getDisableRUPerMinuteUsage()
Gets disableRUPerMinuteUsage option for the current query in the Azure Cosmos DB database service.
Returns:
getEmitVerboseTracesInQuery
public Boolean getEmitVerboseTracesInQuery()
Gets the option to allow queries to emit out verbose traces for investigation.
Returns:
getEnableCrossPartitionQuery
public Boolean getEnableCrossPartitionQuery()
Gets the option to allow queries to run across all partitions of the collection.
Returns:
getEnableScanInQuery
public Boolean getEnableScanInQuery()
Gets the option to allow scan on the queries which couldn't be served as indexing was opted out on the requested paths.
Returns:
getMaxBufferedItemCount
public int getMaxBufferedItemCount()
Gets the maximum number of items that can be buffered client side during parallel query execution.
Returns:
getMaxDegreeOfParallelism
public int getMaxDegreeOfParallelism()
Gets the number of concurrent operations run client side during parallel query execution.
Returns:
getPartitionKey
public PartitionKey getPartitionKey()
Gets the partition key used to identify the current request's target partition.
Returns:
getPartitionKeyRangeIdInternal
public String getPartitionKeyRangeIdInternal()
Gets the partitionKeyRangeId.
Returns:
getResponseContinuationTokenLimitInKb
public int 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.
Returns:
getSessionToken
public String getSessionToken()
Gets the session token for use with session consistency.
Returns:
setDisableRUPerMinuteUsage
public void 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.
Parameters:
setEmitVerboseTracesInQuery
public void setEmitVerboseTracesInQuery(Boolean emitVerboseTracesInQuery)
Sets the option to allow queries to emit out verbose traces for investigation.
Parameters:
setEnableCrossPartitionQuery
public void setEnableCrossPartitionQuery(Boolean enableCrossPartitionQuery)
Sets the option to allow queries to run across all partitions of the collection.
Parameters:
setEnableScanInQuery
public void 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.
Parameters:
setMaxBufferedItemCount
public void setMaxBufferedItemCount(int maxBufferedItemCount)
Sets the maximum number of items that can be buffered client side during parallel query execution.
Parameters:
setMaxDegreeOfParallelism
public void setMaxDegreeOfParallelism(int maxDegreeOfParallelism)
Sets the number of concurrent operations run client side during parallel query execution.
Parameters:
setPartitionKey
public void setPartitionKey(PartitionKey partitionkey)
Sets the partition key used to identify the current request's target partition.
Parameters:
setPartitionKeyRangeIdInternal
public void setPartitionKeyRangeIdInternal(String partitionKeyRangeId)
Sets the partitionKeyRangeId.
Parameters:
setResponseContinuationTokenLimitInKb
public void 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.
Parameters:
setSessionToken
public void setSessionToken(String sessionToken)
Sets the session token for use with session consistency.
Parameters: