public final class FeedOptions extends Object
Constructor and Description |
---|
FeedOptions() |
FeedOptions(FeedOptions options) |
Modifier and Type | Method and Description |
---|---|
Boolean |
emitVerboseTracesInQuery()
Gets the option to allow queries to emit out verbose traces for
investigation.
|
FeedOptions |
emitVerboseTracesInQuery(Boolean emitVerboseTracesInQuery)
Sets the option to allow queries to emit out verbose traces for
investigation.
|
Boolean |
enableCrossPartitionQuery()
Gets the option to allow queries to run across all partitions of the
collection.
|
FeedOptions |
enableCrossPartitionQuery(Boolean enableCrossPartitionQuery)
Sets the option to allow queries to run across all partitions of the
collection.
|
Boolean |
enableScanInQuery()
Gets the option to allow scan on the queries which couldn't be served as
indexing was opted out on the requested paths.
|
FeedOptions |
enableScanInQuery(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.
|
int |
maxBufferedItemCount()
Gets the maximum number of items that can be buffered client side during
parallel query execution.
|
FeedOptions |
maxBufferedItemCount(int maxBufferedItemCount)
Sets the maximum number of items that can be buffered client side during
parallel query execution.
|
int |
maxDegreeOfParallelism()
Gets the number of concurrent operations run client side during parallel
query execution.
|
FeedOptions |
maxDegreeOfParallelism(int maxDegreeOfParallelism)
Sets the number of concurrent operations run client side during parallel
query execution.
|
Integer |
maxItemCount()
Gets the maximum number of items to be returned in the enumeration
operation.
|
FeedOptions |
maxItemCount(Integer maxItemCount)
Sets the maximum number of items to be returned in the enumeration
operation.
|
PartitionKey |
partitionKey()
Gets the partition key used to identify the current request's target
partition.
|
FeedOptions |
partitionKey(PartitionKey partitionkey)
Sets the partition key used to identify the current request's target
partition.
|
boolean |
populateQueryMetrics()
Gets the option to enable populate query metrics
|
FeedOptions |
populateQueryMetrics(boolean populateQueryMetrics)
Sets the option to enable/disable getting metrics relating to query execution on document query requests
|
Map<String,Object> |
properties()
Gets the properties
|
FeedOptions |
properties(Map<String,Object> properties)
Sets the properties used to identify the request token.
|
String |
requestContinuation()
Gets the request continuation token.
|
FeedOptions |
requestContinuation(String requestContinuation)
Sets the request continuation token.
|
int |
responseContinuationTokenLimitInKb()
Gets the ResponseContinuationTokenLimitInKb request option for document query
requests in the Azure Cosmos DB service.
|
FeedOptions |
responseContinuationTokenLimitInKb(int limitInKb)
Sets the ResponseContinuationTokenLimitInKb request option for document query
requests in the Azure Cosmos DB service.
|
String |
sessionToken()
Gets the session token for use with session consistency.
|
FeedOptions |
sessionToken(String sessionToken)
Sets the session token for use with session consistency.
|
public FeedOptions()
public FeedOptions(FeedOptions options)
public String sessionToken()
public FeedOptions sessionToken(String sessionToken)
sessionToken
- the session token.public Boolean enableScanInQuery()
public FeedOptions enableScanInQuery(Boolean enableScanInQuery)
enableScanInQuery
- the option of enable scan in query.public Boolean emitVerboseTracesInQuery()
public FeedOptions emitVerboseTracesInQuery(Boolean emitVerboseTracesInQuery)
emitVerboseTracesInQuery
- the emit verbose traces in query.public Boolean enableCrossPartitionQuery()
public FeedOptions enableCrossPartitionQuery(Boolean enableCrossPartitionQuery)
enableCrossPartitionQuery
- whether to allow queries to run across all
partitions of the collection.public int maxDegreeOfParallelism()
public FeedOptions maxDegreeOfParallelism(int maxDegreeOfParallelism)
maxDegreeOfParallelism
- number of concurrent operations.public int maxBufferedItemCount()
public FeedOptions maxBufferedItemCount(int maxBufferedItemCount)
maxBufferedItemCount
- maximum number of items.public FeedOptions responseContinuationTokenLimitInKb(int limitInKb)
limitInKb
- continuation token size limit.public int responseContinuationTokenLimitInKb()
public Integer maxItemCount()
public FeedOptions maxItemCount(Integer maxItemCount)
maxItemCount
- the max number of items.public String requestContinuation()
public FeedOptions requestContinuation(String requestContinuation)
requestContinuation
- the request continuation.public PartitionKey partitionKey()
public FeedOptions partitionKey(PartitionKey partitionkey)
partitionkey
- the partition key value.public boolean populateQueryMetrics()
public FeedOptions populateQueryMetrics(boolean populateQueryMetrics)
populateQueryMetrics
- whether to enable or disable query metricspublic Map<String,Object> properties()
public FeedOptions properties(Map<String,Object> properties)
properties
- the properties.Copyright © 2019. All rights reserved.