Package com.azure.cosmos.models
Class FeedResponse<T>
java.lang.Object
com.azure.cosmos.models.FeedResponse<T>
- Type Parameters:
T
- the type parameter
- All Implemented Interfaces:
com.azure.core.util.paging.ContinuablePage<String,
T>
public class FeedResponse<T>
extends Object
implements com.azure.core.util.paging.ContinuablePage<String,T>
The type Feed response.
-
Method Summary
Modifier and TypeMethodDescriptionGets the activity ID for the request.long
Gets the maximum quota for container resources within an account from the Azure Cosmos DB service.long
Gets the maximum size of a container in kilobytes from the Azure Cosmos DB service.long
Gets the current size of a container in kilobytes from the Azure Cosmos DB service.long
Gets the current number of container resources within the account from the Azure Cosmos DB service.Gets the continuation token to be used for continuing the enumeration.Gets the correlation activity ID for the responses of a query operation or null if no correlation activity id is presentGets the feed response diagnosticsGets the current size of this entity from the Azure Cosmos DB service.long
Gets the maximum quota for database resources within the account from the Azure Cosmos DB service.long
Gets the current number of database resources within the account from the Azure Cosmos DB service.long
Current document count usage.long
Gets the current size of the documents in a container in kilobytes from the Azure Cosmos DB service.com.azure.core.util.IterableStream<T>
Gets anIterableStream
of elements in the page.Gets the maximum size limit for this entity from the Azure Cosmos DB service.long
Gets the maximum quota for permission resources within an account from the Azure Cosmos DB service.long
Gets the current number of permission resources within the account from the Azure Cosmos DB service.double
Gets the request charge as request units (RU) consumed by the operation.Gets the response headers.Results.Gets the session token for use in session consistency.long
Gets the maximum quota of stored procedures for a container from the Azure Cosmos DB service.long
Gets the current number of stored procedures for a container from the Azure Cosmos DB service.long
Gets the maximum quota of triggers for a container from the Azure Cosmos DB service.long
Get the current number of triggers for a container from the Azure Cosmos DB service.long
Gets the maximum quota of user defined functions for a container from the Azure Cosmos DB service.long
Gets the current number of user defined functions for a container from the Azure Cosmos DB service.long
Gets the maximum quota for user resources within an account from the Azure Cosmos DB service.long
Gets the current number of user resources within the account from the Azure Cosmos DB service.
-
Method Details
-
getResults
Results.- Returns:
- the list of results.
-
getDatabaseQuota
public long getDatabaseQuota()Gets the maximum quota for database resources within the account from the Azure Cosmos DB service.- Returns:
- The maximum quota for the account.
-
getDatabaseUsage
public long getDatabaseUsage()Gets the current number of database resources within the account from the Azure Cosmos DB service.- Returns:
- The current number of databases.
-
getCollectionQuota
public long getCollectionQuota()Gets the maximum quota for container resources within an account from the Azure Cosmos DB service.- Returns:
- The maximum quota for the account.
-
getCollectionUsage
public long getCollectionUsage()Gets the current number of container resources within the account from the Azure Cosmos DB service.- Returns:
- The current number of containers.
-
getUserQuota
public long getUserQuota()Gets the maximum quota for user resources within an account from the Azure Cosmos DB service.- Returns:
- The maximum quota for the account.
-
getUserUsage
public long getUserUsage()Gets the current number of user resources within the account from the Azure Cosmos DB service.- Returns:
- The current number of users.
-
getPermissionQuota
public long getPermissionQuota()Gets the maximum quota for permission resources within an account from the Azure Cosmos DB service.- Returns:
- The maximum quota for the account.
-
getPermissionUsage
public long getPermissionUsage()Gets the current number of permission resources within the account from the Azure Cosmos DB service.- Returns:
- The current number of permissions.
-
getCollectionSizeQuota
public long getCollectionSizeQuota()Gets the maximum size of a container in kilobytes from the Azure Cosmos DB service.- Returns:
- The maximum quota in kilobytes.
-
getCollectionSizeUsage
public long getCollectionSizeUsage()Gets the current size of a container in kilobytes from the Azure Cosmos DB service.- Returns:
- The current size of a container in kilobytes.
-
getDocumentUsage
public long getDocumentUsage()Gets the current size of the documents in a container in kilobytes from the Azure Cosmos DB service.- Returns:
- The current size of a container in kilobytes.
-
getDocumentCountUsage
public long getDocumentCountUsage()Current document count usage.- Returns:
- the document count usage.
-
getStoredProceduresQuota
public long getStoredProceduresQuota()Gets the maximum quota of stored procedures for a container from the Azure Cosmos DB service.- Returns:
- The maximum stored procedure quota.
-
getStoredProceduresUsage
public long getStoredProceduresUsage()Gets the current number of stored procedures for a container from the Azure Cosmos DB service.- Returns:
- The current number of stored procedures.
-
getTriggersQuota
public long getTriggersQuota()Gets the maximum quota of triggers for a container from the Azure Cosmos DB service.- Returns:
- The maximum triggers quota.
-
getTriggersUsage
public long getTriggersUsage()Get the current number of triggers for a container from the Azure Cosmos DB service.- Returns:
- The current number of triggers.
-
getUserDefinedFunctionsQuota
public long getUserDefinedFunctionsQuota()Gets the maximum quota of user defined functions for a container from the Azure Cosmos DB service.- Returns:
- The maximum user defined functions quota.
-
getUserDefinedFunctionsUsage
public long getUserDefinedFunctionsUsage()Gets the current number of user defined functions for a container from the Azure Cosmos DB service.- Returns:
- the current number of user defined functions.
-
getMaxResourceQuota
Gets the maximum size limit for this entity from the Azure Cosmos DB service.- Returns:
- the maximum size limit for this entity. Measured in kilobytes for item resources and in counts for other resources.
-
getCurrentResourceQuotaUsage
Gets the current size of this entity from the Azure Cosmos DB service.- Returns:
- the current size for this entity. Measured in kilobytes for item resources and in counts for other resources.
-
getRequestCharge
public double getRequestCharge()Gets the request charge as request units (RU) consumed by the operation.
For more information about the RU and factors that can impact the effective charges please visit Request Units in Azure Cosmos DB- Returns:
- the request charge.
-
getActivityId
Gets the activity ID for the request.- Returns:
- the activity id.
-
getCorrelationActivityId
Gets the correlation activity ID for the responses of a query operation or null if no correlation activity id is present- Returns:
- the correlation activity id or null if no correlation activity id is present.
-
getElements
Description copied from interface:com.azure.core.util.paging.ContinuablePage
Gets anIterableStream
of elements in the page. -
getContinuationToken
Gets the continuation token to be used for continuing the enumeration. -
getSessionToken
Gets the session token for use in session consistency.- Returns:
- the session token.
-
getResponseHeaders
Gets the response headers.- Returns:
- the response headers.
-
getCosmosDiagnostics
Gets the feed response diagnostics- Returns:
- Feed response diagnostics
-