ModelBridgeInternal Class
- java.
lang. Object - com.
azure. cosmos. models. ModelBridgeInternal
- com.
public final class ModelBridgeInternal
DO NOT USE. This is meant to be used only internally as a bridge access to classes in com.azure.cosmos.model package
Method Summary
Methods inherited from java.lang.Object
Method Details
createCosmosAsyncItemResponse
public static CosmosItemResponse
Parameters:
createFeedResponse
public static FeedResponse
Parameters:
createFeedResponseWithQueryMetrics
public static FeedResponse
Parameters:
getInternalObjectNode
public static InternalObjectNode
Parameters:
getJsonSerializable
public static JsonSerializable
Parameters:
getPayloadLength
public static int
Parameters:
getQueryPlanDiagnosticsContext
public static QueryInfo.QueryPlanDiagnosticsContext
Parameters:
getResource
public static Resource
Parameters:
instantiateByObjectNode
public static T
Parameters:
noChanges
public static boolean
Parameters:
noChanges
public static boolean
Parameters:
populatePropertyBag
public static void
Parameters:
queryMetrics
public static ConcurrentMap
Parameters:
queryMetricsMap
public static ConcurrentMap
Parameters:
setFeedResponseContinuationToken
public static void
Parameters:
setProperty
public static void
Parameters:
toChangeFeedResponsePage
public static FeedResponse
Parameters:
toFeedResponsePage
public static FeedResponse
Parameters:
toFeedResponsePage
public static FeedResponse
Parameters:
toObjectFromJsonSerializable
public static T
Parameters:
createCosmosBulkOperationResponse
public static CosmosBulkOperationResponse
Parameters:
createCosmosBulkOperationResponse
public static CosmosBulkOperationResponse
Parameters:
addCosmosBatchResultInResponse
public static void addCosmosBatchResultInResponse(CosmosBatchResponse cosmosBatchResponse, List
Parameters:
addQueryInfoToFeedResponse
public static void addQueryInfoToFeedResponse(FeedResponse> feedResponse, QueryInfo queryInfo)
Parameters:
addQueryPlanDiagnosticsContextToFeedResponse
public static void addQueryPlanDiagnosticsContextToFeedResponse(FeedResponse> feedResponse, QueryInfo.QueryPlanDiagnosticsContext queryPlanDiagnosticsContext)
Parameters:
clone
public static CosmosItemRequestOptions clone(CosmosItemRequestOptions options)
Parameters:
createChangeFeedRequestOptionsForChangeFeedState
public static CosmosChangeFeedRequestOptions createChangeFeedRequestOptionsForChangeFeedState(ChangeFeedState state)
Parameters:
createCosmosAsyncItemResponseWithObjectType
public static CosmosItemResponse
Parameters:
createCosmosBatchResponse
public static CosmosBatchResponse createCosmosBatchResponse(int responseStatusCode, int responseSubStatusCode, String errorMessage, Map
Parameters:
createCosmosBatchResult
public static CosmosBatchOperationResult createCosmosBatchResult(String eTag, double requestCharge, ObjectNode resourceObject, int statusCode, Duration retryAfter, int subStatusCode, CosmosItemOperation cosmosItemOperation)
Parameters:
createCosmosBulkItemResponse
public static CosmosBulkItemResponse createCosmosBulkItemResponse(CosmosBatchOperationResult result, CosmosBatchResponse response)
Parameters:
createCosmosClientEncryptionKeyResponse
public static CosmosClientEncryptionKeyResponse createCosmosClientEncryptionKeyResponse(ResourceResponse
Parameters:
createCosmosConflictResponse
public static CosmosConflictResponse createCosmosConflictResponse(ResourceResponse
Parameters:
createCosmosContainerResponse
public static CosmosContainerResponse createCosmosContainerResponse(ResourceResponse
Parameters:
createCosmosDatabaseResponse
public static CosmosDatabaseResponse createCosmosDatabaseResponse(ResourceResponse
Parameters:
createCosmosItemRequestOptions
public static CosmosItemRequestOptions createCosmosItemRequestOptions(PartitionKey partitionKey)
Parameters:
createCosmosPermissionProperties
public static CosmosPermissionProperties createCosmosPermissionProperties(String jsonString)
Parameters:
createCosmosPermissionResponse
public static CosmosPermissionResponse createCosmosPermissionResponse(ResourceResponse
Parameters:
createCosmosStoredProcedureProperties
public static CosmosStoredProcedureProperties createCosmosStoredProcedureProperties(String jsonString)
Parameters:
createCosmosStoredProcedureResponse
public static CosmosStoredProcedureResponse createCosmosStoredProcedureResponse(ResourceResponse
Parameters:
createCosmosStoredProcedureResponse
public static CosmosStoredProcedureResponse createCosmosStoredProcedureResponse(StoredProcedureResponse response)
Parameters:
createCosmosTriggerResponse
public static CosmosTriggerResponse createCosmosTriggerResponse(ResourceResponse
Parameters:
createCosmosUserDefinedFunctionResponse
public static CosmosUserDefinedFunctionResponse createCosmosUserDefinedFunctionResponse(ResourceResponse
Parameters:
createCosmosUserResponse
public static CosmosUserResponse createCosmosUserResponse(ResourceResponse
Parameters:
createIndexingPolicy
public static IndexingPolicy createIndexingPolicy(Index[] indexes)
Parameters:
createThroughputRespose
public static ThroughputResponse createThroughputRespose(ResourceResponse
Parameters:
disableSplitHandling
public static CosmosChangeFeedRequestOptions disableSplitHandling(CosmosChangeFeedRequestOptions requestOptions)
Parameters:
fromServiceSerializedFormat
public static CosmosResourceType fromServiceSerializedFormat(String cosmosResourceType)
Parameters:
getAltLink
public static String getAltLink(Resource resource)
Parameters:
getBooleanFromJsonSerializable
public static Boolean getBooleanFromJsonSerializable(JsonSerializable jsonSerializable, String propertyName)
Parameters:
getChangeFeedContinuationState
public static ChangeFeedState getChangeFeedContinuationState(CosmosChangeFeedRequestOptions requestOptions)
Parameters:
getChangeFeedIsSplitHandlingDisabled
public static boolean getChangeFeedIsSplitHandlingDisabled(CosmosChangeFeedRequestOptions requestOptions)
Parameters:
getChangeFeedMode
public static ChangeFeedMode getChangeFeedMode(CosmosChangeFeedRequestOptions requestOptions)
Parameters:
getChangeFeedStartFromSettings
public static ChangeFeedStartFromInternal getChangeFeedStartFromSettings(CosmosChangeFeedRequestOptions requestOptions)
Parameters:
getClientEncryptionKey
public static ClientEncryptionKey getClientEncryptionKey(CosmosClientEncryptionKeyProperties cosmosClientEncryptionKeyProperties)
Parameters:
getClientEncryptionKeyPropertiesList
public static List
Parameters:
getConsistencyLevel
public static ConsistencyLevel getConsistencyLevel(CosmosItemRequestOptions options)
Parameters:
getCosmosConflictPropertiesFromV2Results
public static List
Parameters:
getCosmosContainerPropertiesFromV2Results
public static List
Parameters:
getCosmosDatabasePropertiesFromV2Results
public static List
Parameters:
getCosmosPermissionPropertiesFromResults
public static List
Parameters:
getCosmosStoredProcedurePropertiesFromV2Results
public static List
Parameters:
getCosmosTriggerPropertiesFromV2Results
public static List
Parameters:
getCosmosUserDefinedFunctionPropertiesFromV2Results
public static List
Parameters:
getCosmosUserPropertiesFromV2Results
public static List
Parameters:
getDoubleFromJsonSerializable
public static Double getDoubleFromJsonSerializable(JsonSerializable jsonSerializable, String propertyName)
Parameters:
getEffectiveChangeFeedRequestOptions
public static CosmosChangeFeedRequestOptions getEffectiveChangeFeedRequestOptions(CosmosChangeFeedRequestOptions cosmosChangeFeedRequestOptions, CosmosPagedFluxOptions pagedFlexOptions)
Parameters:
getIntFromJsonSerializable
public static Integer getIntFromJsonSerializable(JsonSerializable jsonSerializable, String propertyName)
Parameters:
getMapFromJsonSerializable
public static Map
Parameters:
getMaxItemCountFromQueryRequestOptions
public static Integer getMaxItemCountFromQueryRequestOptions(CosmosQueryRequestOptions options)
Parameters:
getNoChangesFromFeedResponse
public static boolean getNoChangesFromFeedResponse(FeedResponse> response)
Parameters:
getNonePartitionKey
public static PartitionKeyInternal getNonePartitionKey(PartitionKeyDefinition partitionKeyDefinition)
Parameters:
getObjectByPathFromJsonSerializable
public static Object getObjectByPathFromJsonSerializable(JsonSerializable jsonSerializable, List
Parameters:
getObjectFromJsonSerializable
public static Object getObjectFromJsonSerializable(JsonSerializable jsonSerializable, String propertyName)
Parameters:
getObjectNodeFromJsonSerializable
public static ObjectNode getObjectNodeFromJsonSerializable(JsonSerializable jsonSerializable, String propertyName)
Parameters:
getOfferFromThroughputProperties
public static Offer getOfferFromThroughputProperties(ThroughputProperties properties)
Parameters:
getOperationValueForCosmosItemOperationType
public static String getOperationValueForCosmosItemOperationType(CosmosItemOperationType cosmosItemOperationType)
Parameters:
getPartitionKeyInternal
public static PartitionKeyInternal getPartitionKeyInternal(PartitionKey partitionKey)
Parameters:
getPartitionKeyObject
public static Object getPartitionKeyObject(PartitionKey right)
Parameters:
getPartitionKeyRangeIdInternal
public static String getPartitionKeyRangeIdInternal(CosmosQueryRequestOptions options)
Gets the partitionKeyRangeId.
Parameters:
Returns:
getPatchOperationsFromCosmosPatch
public static List
Parameters:
getPermission
public static Permission getPermission(CosmosPermissionProperties permissionProperties)
Parameters:
getPermission
public static Permission getPermission(CosmosPermissionProperties permissionProperties, String databaseName)
Parameters:
getPropertiesFromChangeFeedRequestOptions
public static Map
Parameters:
getPropertiesFromQueryRequestOptions
public static Map
Parameters:
getPropertyBagFromJsonSerializable
public static ObjectNode getPropertyBagFromJsonSerializable(JsonSerializable jsonSerializable)
Parameters:
getRequestContinuationFromQueryRequestOptions
public static String getRequestContinuationFromQueryRequestOptions(CosmosQueryRequestOptions options)
Parameters:
getStringFromJsonSerializable
public static String getStringFromJsonSerializable(JsonSerializable jsonSerializable, String propertyName)
Parameters:
getV2Collection
public static DocumentCollection getV2Collection(CosmosContainerProperties containerProperties)
Parameters:
getV2User
public static User getV2User(CosmosUserProperties cosmosUserProperties)
Parameters:
getValue
public static Object getValue(JsonNode value)
Parameters:
initializeAllAccessors
public static void initializeAllAccessors()
isV2
public static boolean isV2(PartitionKeyDefinition pkd)
Parameters:
partitionKeyfromJsonString
public static PartitionKey partitionKeyfromJsonString(String jsonString)
Parameters:
removeFromJsonSerializable
public static void removeFromJsonSerializable(JsonSerializable jsonSerializable, String propertyName)
Parameters:
serializeJsonToByteBuffer
public static ByteBuffer serializeJsonToByteBuffer(JsonSerializable jsonSerializable)
Parameters:
serializeJsonToByteBuffer
public static ByteBuffer serializeJsonToByteBuffer(JsonSerializable jsonSerializable, ObjectMapper objectMapper)
Parameters:
serializeJsonToByteBuffer
public static ByteBuffer serializeJsonToByteBuffer(SqlQuerySpec sqlQuerySpec)
Parameters:
setAltLink
public static void setAltLink(Resource resource, String altLink)
Parameters:
setChangeFeedRequestOptionsContinuation
public static void setChangeFeedRequestOptionsContinuation(String eTag, CosmosChangeFeedRequestOptions options)
Parameters:
setPartitionKey
public static CosmosItemRequestOptions setPartitionKey(CosmosItemRequestOptions cosmosItemRequestOptions, PartitionKey partitionKey)
Parameters:
setPartitionKeyRangeIdInternal
public static CosmosQueryRequestOptions setPartitionKeyRangeIdInternal(CosmosQueryRequestOptions options, String partitionKeyRangeId)
Sets the PartitionKeyRangeId.
Parameters:
Returns:
setQueryRequestOptionsContinuationToken
public static void setQueryRequestOptionsContinuationToken(CosmosQueryRequestOptions cosmosQueryRequestOptions, String continuationToken)
Parameters:
setQueryRequestOptionsContinuationTokenAndMaxItemCount
public static void setQueryRequestOptionsContinuationTokenAndMaxItemCount(CosmosQueryRequestOptions options, String continuationToken, Integer maxItemCount)
Parameters:
setQueryRequestOptionsMaxItemCount
public static void setQueryRequestOptionsMaxItemCount(CosmosQueryRequestOptions cosmosQueryRequestOptions, Integer maxItemCount)
Parameters:
setQueryRequestOptionsProperties
public static CosmosQueryRequestOptions setQueryRequestOptionsProperties(CosmosQueryRequestOptions options, Map
Parameters:
setResourceId
public static void setResourceId(Resource resource, String resourceId)
Parameters:
setResourceSelfLink
public static void setResourceSelfLink(Resource resource, String selfLink)
Parameters:
setThroughputProperties
public static CosmosContainerRequestOptions setThroughputProperties(CosmosContainerRequestOptions containerRequestOptions, ThroughputProperties throughputProperties)
Parameters:
setThroughputProperties
public static CosmosDatabaseRequestOptions setThroughputProperties(CosmosDatabaseRequestOptions cosmosDatabaseRequestOptions, ThroughputProperties throughputProperties)
Parameters:
setTimestamp
public static void setTimestamp(Resource resource, Instant date)
Parameters:
toDatabaseAccount
public static DatabaseAccount toDatabaseAccount(RxDocumentServiceResponse response)
Parameters:
toJsonFromJsonSerializable
public static String toJsonFromJsonSerializable(JsonSerializable jsonSerializable)
Parameters:
toLower
public static String toLower(RequestVerb verb)
Parameters:
toRequestOptions
public static RequestOptions toRequestOptions(CosmosBatchRequestOptions cosmosBatchRequestOptions)
Parameters:
toRequestOptions
public static RequestOptions toRequestOptions(CosmosConflictRequestOptions cosmosConflictRequestOptions)
Parameters:
toRequestOptions
public static RequestOptions toRequestOptions(CosmosContainerRequestOptions cosmosContainerRequestOptions)
Parameters:
toRequestOptions
public static RequestOptions toRequestOptions(CosmosDatabaseRequestOptions cosmosDatabaseRequestOptions)
Parameters:
toRequestOptions
public static RequestOptions toRequestOptions(CosmosItemRequestOptions cosmosItemRequestOptions)
Parameters:
toRequestOptions
public static RequestOptions toRequestOptions(CosmosPatchItemRequestOptions cosmosPatchItemRequestOptions)
Parameters:
toRequestOptions
public static RequestOptions toRequestOptions(CosmosPermissionRequestOptions cosmosPermissionRequestOptions)
Parameters:
toRequestOptions
public static RequestOptions toRequestOptions(CosmosStoredProcedureRequestOptions cosmosStoredProcedureRequestOptions)
Parameters:
updateOfferFromProperties
public static Offer updateOfferFromProperties(Offer offer, ThroughputProperties properties)
Parameters:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for