azure-docs-sdk-java/docs-ref-autogen/com.azure.spring.data.cosmo...

89 строки
7.2 KiB
YAML

### YamlMime:JavaType
uid: "com.azure.spring.data.cosmos.common.CosmosUtils"
fullName: "com.azure.spring.data.cosmos.common.CosmosUtils"
name: "CosmosUtils"
nameWithType: "CosmosUtils"
summary: "Util class to fill and process response diagnostics"
inheritances:
- "<xref href=\"java.lang.Object?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
inheritedClassMethods:
- classRef: "java.lang.<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html\">Object</a>"
methodsRef:
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--\">clone</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-\">equals</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--\">finalize</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--\">getClass</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--\">hashCode</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--\">notify</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--\">notifyAll</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--\">toString</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--\">wait</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-\">wait</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-\">wait</a>"
syntax: "public class **CosmosUtils**"
constructors:
- uid: "com.azure.spring.data.cosmos.common.CosmosUtils.CosmosUtils()"
fullName: "com.azure.spring.data.cosmos.common.CosmosUtils.CosmosUtils()"
name: "CosmosUtils()"
nameWithType: "CosmosUtils.CosmosUtils()"
summary: "Creates an instance of <xref uid=\"com.azure.spring.data.cosmos.common.CosmosUtils\" data-throw-if-not-resolved=\"false\" data-raw-source=\"CosmosUtils\"></xref>"
syntax: "public CosmosUtils()"
desc: "Creates an instance of <xref uid=\"com.azure.spring.data.cosmos.common.CosmosUtils\" data-throw-if-not-resolved=\"false\" data-raw-source=\"CosmosUtils\"></xref>"
methods:
- uid: "com.azure.spring.data.cosmos.common.CosmosUtils.<T>fillAndProcessResponseDiagnostics(com.azure.spring.data.cosmos.core.ResponseDiagnosticsProcessor,com.azure.cosmos.CosmosDiagnostics,com.azure.cosmos.models.FeedResponse<T>)"
fullName: "com.azure.spring.data.cosmos.common.CosmosUtils.fillAndProcessResponseDiagnostics(ResponseDiagnosticsProcessor responseDiagnosticsProcessor, CosmosDiagnostics cosmosDiagnostics, FeedResponse<T> feedResponse)"
name: "fillAndProcessResponseDiagnostics(ResponseDiagnosticsProcessor responseDiagnosticsProcessor, CosmosDiagnostics cosmosDiagnostics, FeedResponse<T> feedResponse)"
nameWithType: "CosmosUtils.fillAndProcessResponseDiagnostics(ResponseDiagnosticsProcessor responseDiagnosticsProcessor, CosmosDiagnostics cosmosDiagnostics, FeedResponse<T> feedResponse)"
summary: "Generate Response<wbr>Diagnostics with cosmos and feed response diagnostics"
modifiers:
- "static"
parameters:
- description: "collect Response Diagnostics from API responses and then set in <xref uid=\"com.azure.spring.data.cosmos.core.ResponseDiagnostics\" data-throw-if-not-resolved=\"false\" data-raw-source=\"ResponseDiagnostics\"></xref> object."
name: "responseDiagnosticsProcessor"
type: "<xref href=\"com.azure.spring.data.cosmos.core.ResponseDiagnosticsProcessor?alt=com.azure.spring.data.cosmos.core.ResponseDiagnosticsProcessor&text=ResponseDiagnosticsProcessor\" data-throw-if-not-resolved=\"False\" />"
- description: "response from cosmos"
name: "cosmosDiagnostics"
type: "<xref href=\"com.azure.cosmos.CosmosDiagnostics?alt=com.azure.cosmos.CosmosDiagnostics&text=CosmosDiagnostics\" data-throw-if-not-resolved=\"False\" />"
- description: "response from feed"
name: "feedResponse"
type: "<xref href=\"com.azure.cosmos.models.FeedResponse?alt=com.azure.cosmos.models.FeedResponse&text=FeedResponse\" data-throw-if-not-resolved=\"False\" />&lt;<xref href=\"T?alt=T&text=T\" data-throw-if-not-resolved=\"False\" />&gt;"
syntax: "public static void <T>fillAndProcessResponseDiagnostics(ResponseDiagnosticsProcessor responseDiagnosticsProcessor, CosmosDiagnostics cosmosDiagnostics, FeedResponse<T> feedResponse)"
desc: "Generate ResponseDiagnostics with cosmos and feed response diagnostics"
- uid: "com.azure.spring.data.cosmos.common.CosmosUtils.fillAndProcessCosmosExceptionDiagnostics(com.azure.spring.data.cosmos.core.ResponseDiagnosticsProcessor,com.azure.cosmos.CosmosException)"
fullName: "com.azure.spring.data.cosmos.common.CosmosUtils.fillAndProcessCosmosExceptionDiagnostics(ResponseDiagnosticsProcessor responseDiagnosticsProcessor, CosmosException cosmosException)"
name: "fillAndProcessCosmosExceptionDiagnostics(ResponseDiagnosticsProcessor responseDiagnosticsProcessor, CosmosException cosmosException)"
nameWithType: "CosmosUtils.fillAndProcessCosmosExceptionDiagnostics(ResponseDiagnosticsProcessor responseDiagnosticsProcessor, CosmosException cosmosException)"
summary: "Generate Response<wbr>Diagnostics with Cosmos<wbr>Exception diagnostics"
modifiers:
- "static"
parameters:
- description: "response diagnostics processor"
name: "responseDiagnosticsProcessor"
type: "<xref href=\"com.azure.spring.data.cosmos.core.ResponseDiagnosticsProcessor?alt=com.azure.spring.data.cosmos.core.ResponseDiagnosticsProcessor&text=ResponseDiagnosticsProcessor\" data-throw-if-not-resolved=\"False\" />"
- description: "cosmos exception"
name: "cosmosException"
type: "<xref href=\"com.azure.cosmos.CosmosException?alt=com.azure.cosmos.CosmosException&text=CosmosException\" data-throw-if-not-resolved=\"False\" />"
syntax: "public static void fillAndProcessCosmosExceptionDiagnostics(ResponseDiagnosticsProcessor responseDiagnosticsProcessor, CosmosException cosmosException)"
desc: "Generate ResponseDiagnostics with CosmosException diagnostics"
- uid: "com.azure.spring.data.cosmos.common.CosmosUtils.getStringIDValue(java.lang.Object)"
fullName: "com.azure.spring.data.cosmos.common.CosmosUtils.getStringIDValue(Object idValue)"
name: "getStringIDValue(Object idValue)"
nameWithType: "CosmosUtils.getStringIDValue(Object idValue)"
summary: "ID value should be string value, real id type will be String, Integer, Long, all of these must be converted to String type."
modifiers:
- "static"
parameters:
- description: "id value to find"
name: "idValue"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html\">Object</a>"
syntax: "public static String getStringIDValue(Object idValue)"
desc: "ID value should be string value, real id type will be String, Integer, Long, all of these must be converted to String type."
returns:
description: "String id value"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
type: "class"
desc: "Util class to fill and process response diagnostics"
metadata: {}
package: "com.azure.spring.data.cosmos.common"
artifact: com.azure:azure-spring-data-cosmos:5.16.0