public final class ModelBridgeInternal extends Object
Constructor and Description |
---|
ModelBridgeInternal() |
Modifier and Type | Method and Description |
---|---|
static CosmosAsyncConflictResponse |
createCosmosAsyncConflictResponse(com.azure.cosmos.implementation.ResourceResponse<com.azure.cosmos.implementation.Conflict> response,
CosmosAsyncContainer container) |
static CosmosAsyncContainerResponse |
createCosmosAsyncContainerResponse(com.azure.cosmos.implementation.ResourceResponse<com.azure.cosmos.implementation.DocumentCollection> response,
CosmosAsyncDatabase database) |
static CosmosAsyncDatabaseResponse |
createCosmosAsyncDatabaseResponse(com.azure.cosmos.implementation.ResourceResponse<com.azure.cosmos.implementation.Database> response,
CosmosAsyncClient client) |
static <T> CosmosAsyncItemResponse<T> |
createCosmosAsyncItemResponse(com.azure.cosmos.implementation.ResourceResponse<com.azure.cosmos.implementation.Document> response,
Class<T> classType) |
static CosmosAsyncItemResponse<Object> |
createCosmosAsyncItemResponseWithObjectType(com.azure.cosmos.implementation.ResourceResponse<com.azure.cosmos.implementation.Document> response) |
static CosmosAsyncPermissionResponse |
createCosmosAsyncPermissionResponse(com.azure.cosmos.implementation.ResourceResponse<Permission> response,
CosmosAsyncUser cosmosUser) |
static CosmosAsyncStoredProcedureResponse |
createCosmosAsyncStoredProcedureResponse(com.azure.cosmos.implementation.ResourceResponse<com.azure.cosmos.implementation.StoredProcedure> response,
CosmosAsyncContainer cosmosContainer) |
static CosmosAsyncStoredProcedureResponse |
createCosmosAsyncStoredProcedureResponse(com.azure.cosmos.implementation.StoredProcedureResponse response,
CosmosAsyncContainer cosmosContainer,
String storedProcedureId) |
static CosmosAsyncTriggerResponse |
createCosmosAsyncTriggerResponse(com.azure.cosmos.implementation.ResourceResponse<com.azure.cosmos.implementation.Trigger> response,
CosmosAsyncContainer container) |
static CosmosAsyncUserDefinedFunctionResponse |
createCosmosAsyncUserDefinedFunctionResponse(com.azure.cosmos.implementation.ResourceResponse<com.azure.cosmos.implementation.UserDefinedFunction> response,
CosmosAsyncContainer container) |
static CosmosAsyncUserResponse |
createCosmosAsyncUserResponse(com.azure.cosmos.implementation.ResourceResponse<com.azure.cosmos.implementation.User> response,
CosmosAsyncDatabase database) |
static CosmosContainerResponse |
createCosmosContainerResponse(CosmosAsyncContainerResponse response,
CosmosDatabase database,
CosmosClient client) |
static CosmosDatabaseResponse |
createCosmosDatabaseResponse(CosmosAsyncDatabaseResponse response,
CosmosClient client) |
static CosmosError |
createCosmosError(com.fasterxml.jackson.databind.node.ObjectNode objectNode) |
static CosmosError |
createCosmosError(String jsonString) |
static CosmosItemRequestOptions |
createCosmosItemRequestOptions(PartitionKey partitionKey) |
static <T> CosmosItemResponse<T> |
createCosmosItemResponse(CosmosAsyncItemResponse<T> response) |
static CosmosStoredProcedureProperties |
createCosmosStoredProcedureProperties(String jsonString) |
static CosmosStoredProcedureResponse |
createCosmosStoredProcedureResponse(CosmosAsyncStoredProcedureResponse resourceResponse,
CosmosStoredProcedure storedProcedure) |
static CosmosTriggerResponse |
createCosmosTriggerResponse(CosmosAsyncTriggerResponse asyncResponse,
CosmosTrigger syncTrigger) |
static CosmosUserDefinedFunctionResponse |
createCosmosUserDefinedFunctionResponse(CosmosAsyncUserDefinedFunctionResponse resourceResponse,
CosmosUserDefinedFunction userDefinedFunction) |
static CosmosUserResponse |
createCosmosUserResponse(CosmosAsyncUserResponse response,
CosmosDatabase database) |
static <T> FeedResponse<T> |
createFeedResponse(List<T> results,
Map<String,String> headers) |
static <T> FeedResponse<T> |
createFeedResponseWithQueryMetrics(List<T> results,
Map<String,String> headers,
ConcurrentMap<String,com.azure.cosmos.implementation.QueryMetrics> queryMetricsMap) |
static CosmosResourceType |
fromServiceSerializedFormat(String cosmosResourceType) |
static String |
getAltLink(Resource resource) |
static Boolean |
getBooleanFromJsonSerializable(JsonSerializable jsonSerializable,
String propertyName) |
static List<CosmosConflictProperties> |
getCosmosConflictPropertiesFromV2Results(List<com.azure.cosmos.implementation.Conflict> results) |
static List<CosmosContainerProperties> |
getCosmosContainerPropertiesFromV2Results(List<com.azure.cosmos.implementation.DocumentCollection> results) |
static List<CosmosDatabaseProperties> |
getCosmosDatabasePropertiesFromV2Results(List<com.azure.cosmos.implementation.Database> results) |
static <T> com.azure.cosmos.implementation.CosmosItemProperties |
getCosmosItemProperties(CosmosAsyncItemResponse<T> cosmosItemResponse) |
static <T> com.azure.cosmos.implementation.CosmosItemProperties |
getCosmosItemProperties(CosmosItemResponse<T> cosmosItemResponse) |
static List<CosmosPermissionProperties> |
getCosmosPermissionPropertiesFromV2Results(List<Permission> results) |
static List<CosmosStoredProcedureProperties> |
getCosmosStoredProcedurePropertiesFromV2Results(List<com.azure.cosmos.implementation.StoredProcedure> results) |
static List<CosmosTriggerProperties> |
getCosmosTriggerPropertiesFromV2Results(List<com.azure.cosmos.implementation.Trigger> results) |
static List<CosmosUserDefinedFunctionProperties> |
getCosmosUserDefinedFunctionPropertiesFromV2Results(List<com.azure.cosmos.implementation.UserDefinedFunction> results) |
static List<CosmosUserProperties> |
getCosmosUserPropertiesFromV2Results(List<com.azure.cosmos.implementation.User> results) |
static Double |
getDoubleFromJsonSerializable(JsonSerializable jsonSerializable,
String propertyName) |
static Integer |
getIntFromJsonSerializable(JsonSerializable jsonSerializable,
String propertyName) |
static Map<String,Object> |
getMapFromJsonSerializable(JsonSerializable jsonSerializable) |
static com.azure.cosmos.implementation.routing.PartitionKeyInternal |
getNonePartitionKey(PartitionKeyDefinition partitionKeyDefinition) |
static Object |
getObjectByPathFromJsonSerializable(JsonSerializable jsonSerializable,
List<String> propertyNames) |
static Object |
getObjectFromJsonSerializable(JsonSerializable jsonSerializable,
String propertyName) |
static com.fasterxml.jackson.databind.node.ObjectNode |
getObjectNodeFromJsonSerializable(JsonSerializable jsonSerializable,
String propertyName) |
static com.azure.cosmos.implementation.routing.PartitionKeyInternal |
getPartitionKeyInternal(PartitionKey partitionKey) |
static Object |
getPartitionKeyObject(PartitionKey right) |
static com.fasterxml.jackson.databind.node.ObjectNode |
getPropertyBagFromJsonSerializable(JsonSerializable jsonSerializable) |
static String |
getStringFromJsonSerializable(JsonSerializable jsonSerializable,
String propertyName) |
static com.azure.cosmos.implementation.DocumentCollection |
getV2Collection(CosmosContainerProperties containerProperties) |
static Permission |
getV2Permissions(CosmosPermissionProperties permissionSettings) |
static com.azure.cosmos.implementation.User |
getV2User(CosmosUserProperties cosmosUserProperties) |
static Object |
getValue(com.fasterxml.jackson.databind.JsonNode value) |
static JsonSerializable |
instantiateJsonSerializable(com.fasterxml.jackson.databind.node.ObjectNode objectNode,
Class<?> klassType) |
static boolean |
isV2(PartitionKeyDefinition pkd) |
static <T extends Resource> |
noChanges(FeedResponse<T> page) |
static <T extends Resource> |
noChanges(com.azure.cosmos.implementation.RxDocumentServiceResponse rsp) |
static PartitionKey |
partitionKeyfromJsonString(String jsonString) |
static String |
partitionKeyRangeIdInternal(FeedOptions options)
Gets the partitionKeyRangeId.
|
static FeedOptions |
partitionKeyRangeIdInternal(FeedOptions options,
String partitionKeyRangeId)
Sets the PartitionKeyRangeId.
|
static void |
populatePropertyBagJsonSerializable(JsonSerializable jsonSerializable) |
static <T> ConcurrentMap<String,com.azure.cosmos.implementation.QueryMetrics> |
queryMetrics(FeedResponse<T> feedResponse) |
static <T> ConcurrentMap<String,com.azure.cosmos.implementation.QueryMetrics> |
queryMetricsMap(FeedResponse<T> feedResponse) |
static void |
removeFromJsonSerializable(JsonSerializable jsonSerializable,
String propertyName) |
static ByteBuffer |
serializeJsonToByteBuffer(JsonSerializable jsonSerializable) |
static void |
setAltLink(Resource resource,
String altLink) |
static CosmosContainerRequestOptions |
setOfferThroughput(CosmosContainerRequestOptions cosmosContainerRequestOptions,
Integer offerThroughput) |
static CosmosDatabaseRequestOptions |
setOfferThroughput(CosmosDatabaseRequestOptions cosmosDatabaseRequestOptions,
Integer offerThroughput) |
static CosmosItemRequestOptions |
setPartitionKey(CosmosItemRequestOptions cosmosItemRequestOptions,
PartitionKey partitionKey) |
static <T> void |
setProperty(JsonSerializable jsonSerializable,
String propertyName,
T value) |
static void |
setResourceId(Resource resource,
String resourceId) |
static void |
setResourceSelfLink(Resource resource,
String selfLink) |
static void |
setTimestamp(Resource resource,
OffsetDateTime date) |
static <T extends Resource> |
toChaneFeedResponsePage(com.azure.cosmos.implementation.RxDocumentServiceResponse response,
Class<T> cls) |
static com.azure.cosmos.implementation.DatabaseAccount |
toDatabaseAccount(com.azure.cosmos.implementation.RxDocumentServiceResponse response) |
static <T> FeedResponse<T> |
toFeedResponsePage(List<T> results,
Map<String,String> headers,
boolean noChanges) |
static <T extends Resource> |
toFeedResponsePage(com.azure.cosmos.implementation.RxDocumentServiceResponse response,
Class<T> cls) |
static String |
toJsonFromJsonSerializable(JsonSerializable jsonSerializable) |
static String |
toLower(RequestVerb verb) |
static <T> T |
toObjectFromJsonSerializable(JsonSerializable jsonSerializable,
Class<T> c) |
static com.azure.cosmos.implementation.RequestOptions |
toRequestOptions(CosmosConflictRequestOptions cosmosConflictRequestOptions) |
static com.azure.cosmos.implementation.RequestOptions |
toRequestOptions(CosmosContainerRequestOptions cosmosContainerRequestOptions) |
static com.azure.cosmos.implementation.RequestOptions |
toRequestOptions(CosmosDatabaseRequestOptions cosmosDatabaseRequestOptions) |
static com.azure.cosmos.implementation.RequestOptions |
toRequestOptions(CosmosItemRequestOptions cosmosItemRequestOptions) |
static com.azure.cosmos.implementation.RequestOptions |
toRequestOptions(CosmosPermissionRequestOptions cosmosPermissionRequestOptions) |
static com.azure.cosmos.implementation.RequestOptions |
toRequestOptions(CosmosStoredProcedureRequestOptions cosmosStoredProcedureRequestOptions) |
static void |
validateResource(Resource resource) |
public static CosmosAsyncConflictResponse createCosmosAsyncConflictResponse(com.azure.cosmos.implementation.ResourceResponse<com.azure.cosmos.implementation.Conflict> response, CosmosAsyncContainer container)
public static CosmosAsyncContainerResponse createCosmosAsyncContainerResponse(com.azure.cosmos.implementation.ResourceResponse<com.azure.cosmos.implementation.DocumentCollection> response, CosmosAsyncDatabase database)
public static CosmosAsyncDatabaseResponse createCosmosAsyncDatabaseResponse(com.azure.cosmos.implementation.ResourceResponse<com.azure.cosmos.implementation.Database> response, CosmosAsyncClient client)
public static <T> CosmosAsyncItemResponse<T> createCosmosAsyncItemResponse(com.azure.cosmos.implementation.ResourceResponse<com.azure.cosmos.implementation.Document> response, Class<T> classType)
public static CosmosAsyncItemResponse<Object> createCosmosAsyncItemResponseWithObjectType(com.azure.cosmos.implementation.ResourceResponse<com.azure.cosmos.implementation.Document> response)
public static CosmosAsyncPermissionResponse createCosmosAsyncPermissionResponse(com.azure.cosmos.implementation.ResourceResponse<Permission> response, CosmosAsyncUser cosmosUser)
public static CosmosAsyncStoredProcedureResponse createCosmosAsyncStoredProcedureResponse(com.azure.cosmos.implementation.ResourceResponse<com.azure.cosmos.implementation.StoredProcedure> response, CosmosAsyncContainer cosmosContainer)
public static CosmosAsyncStoredProcedureResponse createCosmosAsyncStoredProcedureResponse(com.azure.cosmos.implementation.StoredProcedureResponse response, CosmosAsyncContainer cosmosContainer, String storedProcedureId)
public static CosmosStoredProcedureProperties createCosmosStoredProcedureProperties(String jsonString)
public static CosmosAsyncTriggerResponse createCosmosAsyncTriggerResponse(com.azure.cosmos.implementation.ResourceResponse<com.azure.cosmos.implementation.Trigger> response, CosmosAsyncContainer container)
public static CosmosAsyncUserDefinedFunctionResponse createCosmosAsyncUserDefinedFunctionResponse(com.azure.cosmos.implementation.ResourceResponse<com.azure.cosmos.implementation.UserDefinedFunction> response, CosmosAsyncContainer container)
public static CosmosAsyncUserResponse createCosmosAsyncUserResponse(com.azure.cosmos.implementation.ResourceResponse<com.azure.cosmos.implementation.User> response, CosmosAsyncDatabase database)
public static CosmosContainerResponse createCosmosContainerResponse(CosmosAsyncContainerResponse response, CosmosDatabase database, CosmosClient client)
public static CosmosUserResponse createCosmosUserResponse(CosmosAsyncUserResponse response, CosmosDatabase database)
public static <T> CosmosItemResponse<T> createCosmosItemResponse(CosmosAsyncItemResponse<T> response)
public static CosmosDatabaseResponse createCosmosDatabaseResponse(CosmosAsyncDatabaseResponse response, CosmosClient client)
public static CosmosStoredProcedureResponse createCosmosStoredProcedureResponse(CosmosAsyncStoredProcedureResponse resourceResponse, CosmosStoredProcedure storedProcedure)
public static CosmosUserDefinedFunctionResponse createCosmosUserDefinedFunctionResponse(CosmosAsyncUserDefinedFunctionResponse resourceResponse, CosmosUserDefinedFunction userDefinedFunction)
public static CosmosTriggerResponse createCosmosTriggerResponse(CosmosAsyncTriggerResponse asyncResponse, CosmosTrigger syncTrigger)
public static List<CosmosConflictProperties> getCosmosConflictPropertiesFromV2Results(List<com.azure.cosmos.implementation.Conflict> results)
public static com.azure.cosmos.implementation.DocumentCollection getV2Collection(CosmosContainerProperties containerProperties)
public static List<CosmosContainerProperties> getCosmosContainerPropertiesFromV2Results(List<com.azure.cosmos.implementation.DocumentCollection> results)
public static List<CosmosDatabaseProperties> getCosmosDatabasePropertiesFromV2Results(List<com.azure.cosmos.implementation.Database> results)
public static <T> com.azure.cosmos.implementation.CosmosItemProperties getCosmosItemProperties(CosmosAsyncItemResponse<T> cosmosItemResponse)
public static <T> com.azure.cosmos.implementation.CosmosItemProperties getCosmosItemProperties(CosmosItemResponse<T> cosmosItemResponse)
public static Permission getV2Permissions(CosmosPermissionProperties permissionSettings)
public static List<CosmosPermissionProperties> getCosmosPermissionPropertiesFromV2Results(List<Permission> results)
public static List<CosmosStoredProcedureProperties> getCosmosStoredProcedurePropertiesFromV2Results(List<com.azure.cosmos.implementation.StoredProcedure> results)
public static List<CosmosTriggerProperties> getCosmosTriggerPropertiesFromV2Results(List<com.azure.cosmos.implementation.Trigger> results)
public static List<CosmosUserDefinedFunctionProperties> getCosmosUserDefinedFunctionPropertiesFromV2Results(List<com.azure.cosmos.implementation.UserDefinedFunction> results)
public static com.azure.cosmos.implementation.User getV2User(CosmosUserProperties cosmosUserProperties)
public static List<CosmosUserProperties> getCosmosUserPropertiesFromV2Results(List<com.azure.cosmos.implementation.User> results)
public static com.azure.cosmos.implementation.RequestOptions toRequestOptions(CosmosConflictRequestOptions cosmosConflictRequestOptions)
public static com.azure.cosmos.implementation.RequestOptions toRequestOptions(CosmosContainerRequestOptions cosmosContainerRequestOptions)
public static CosmosContainerRequestOptions setOfferThroughput(CosmosContainerRequestOptions cosmosContainerRequestOptions, Integer offerThroughput)
public static com.azure.cosmos.implementation.RequestOptions toRequestOptions(CosmosDatabaseRequestOptions cosmosDatabaseRequestOptions)
public static CosmosDatabaseRequestOptions setOfferThroughput(CosmosDatabaseRequestOptions cosmosDatabaseRequestOptions, Integer offerThroughput)
public static CosmosItemRequestOptions setPartitionKey(CosmosItemRequestOptions cosmosItemRequestOptions, PartitionKey partitionKey)
public static com.azure.cosmos.implementation.RequestOptions toRequestOptions(CosmosItemRequestOptions cosmosItemRequestOptions)
public static CosmosItemRequestOptions createCosmosItemRequestOptions(PartitionKey partitionKey)
public static com.azure.cosmos.implementation.RequestOptions toRequestOptions(CosmosPermissionRequestOptions cosmosPermissionRequestOptions)
public static com.azure.cosmos.implementation.RequestOptions toRequestOptions(CosmosStoredProcedureRequestOptions cosmosStoredProcedureRequestOptions)
public static com.azure.cosmos.implementation.DatabaseAccount toDatabaseAccount(com.azure.cosmos.implementation.RxDocumentServiceResponse response)
public static String partitionKeyRangeIdInternal(FeedOptions options)
options
- the feed optionspublic static FeedOptions partitionKeyRangeIdInternal(FeedOptions options, String partitionKeyRangeId)
options
- the feed optionspartitionKeyRangeId
- the partition key range idpublic static <T extends Resource> FeedResponse<T> toFeedResponsePage(com.azure.cosmos.implementation.RxDocumentServiceResponse response, Class<T> cls)
public static <T> FeedResponse<T> toFeedResponsePage(List<T> results, Map<String,String> headers, boolean noChanges)
public static <T extends Resource> FeedResponse<T> toChaneFeedResponsePage(com.azure.cosmos.implementation.RxDocumentServiceResponse response, Class<T> cls)
public static <T extends Resource> boolean noChanges(FeedResponse<T> page)
public static <T extends Resource> boolean noChanges(com.azure.cosmos.implementation.RxDocumentServiceResponse rsp)
public static <T> FeedResponse<T> createFeedResponse(List<T> results, Map<String,String> headers)
public static <T> FeedResponse<T> createFeedResponseWithQueryMetrics(List<T> results, Map<String,String> headers, ConcurrentMap<String,com.azure.cosmos.implementation.QueryMetrics> queryMetricsMap)
public static <T> ConcurrentMap<String,com.azure.cosmos.implementation.QueryMetrics> queryMetricsMap(FeedResponse<T> feedResponse)
public static <T> ConcurrentMap<String,com.azure.cosmos.implementation.QueryMetrics> queryMetrics(FeedResponse<T> feedResponse)
public static String toLower(RequestVerb verb)
public static boolean isV2(PartitionKeyDefinition pkd)
public static com.azure.cosmos.implementation.routing.PartitionKeyInternal getNonePartitionKey(PartitionKeyDefinition partitionKeyDefinition)
public static com.azure.cosmos.implementation.routing.PartitionKeyInternal getPartitionKeyInternal(PartitionKey partitionKey)
public static PartitionKey partitionKeyfromJsonString(String jsonString)
public static Object getPartitionKeyObject(PartitionKey right)
public static void setTimestamp(Resource resource, OffsetDateTime date)
public static void validateResource(Resource resource)
public static <T> void setProperty(JsonSerializable jsonSerializable, String propertyName, T value)
public static com.fasterxml.jackson.databind.node.ObjectNode getObjectNodeFromJsonSerializable(JsonSerializable jsonSerializable, String propertyName)
public static void removeFromJsonSerializable(JsonSerializable jsonSerializable, String propertyName)
public static Object getValue(com.fasterxml.jackson.databind.JsonNode value)
public static CosmosError createCosmosError(com.fasterxml.jackson.databind.node.ObjectNode objectNode)
public static CosmosError createCosmosError(String jsonString)
public static void populatePropertyBagJsonSerializable(JsonSerializable jsonSerializable)
public static JsonSerializable instantiateJsonSerializable(com.fasterxml.jackson.databind.node.ObjectNode objectNode, Class<?> klassType)
public static Map<String,Object> getMapFromJsonSerializable(JsonSerializable jsonSerializable)
public static CosmosResourceType fromServiceSerializedFormat(String cosmosResourceType)
public static Boolean getBooleanFromJsonSerializable(JsonSerializable jsonSerializable, String propertyName)
public static Double getDoubleFromJsonSerializable(JsonSerializable jsonSerializable, String propertyName)
public static Object getObjectByPathFromJsonSerializable(JsonSerializable jsonSerializable, List<String> propertyNames)
public static ByteBuffer serializeJsonToByteBuffer(JsonSerializable jsonSerializable)
public static <T> T toObjectFromJsonSerializable(JsonSerializable jsonSerializable, Class<T> c)
public static Object getObjectFromJsonSerializable(JsonSerializable jsonSerializable, String propertyName)
public static String getStringFromJsonSerializable(JsonSerializable jsonSerializable, String propertyName)
public static Integer getIntFromJsonSerializable(JsonSerializable jsonSerializable, String propertyName)
public static String toJsonFromJsonSerializable(JsonSerializable jsonSerializable)
public static com.fasterxml.jackson.databind.node.ObjectNode getPropertyBagFromJsonSerializable(JsonSerializable jsonSerializable)
Copyright © 2020 Microsoft Corporation. All rights reserved.