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
addCosmosBatchResultInResponse
public static void addCosmosBatchResultInResponse(CosmosBatchResponse cosmosBatchResponse, List<CosmosBatchOperationResult> cosmosBatchOperationResults)
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:
createCosmosBatchResponse
public static CosmosBatchResponse createCosmosBatchResponse(int responseStatusCode, int responseSubStatusCode, String errorMessage, Map<String,String> responseHeaders, CosmosDiagnostics cosmosDiagnostics)
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:
createCosmosBulkOperationResponse
public static CosmosBulkOperationResponse<TContext> <TContext>createCosmosBulkOperationResponse(CosmosItemOperation operation, CosmosBulkItemResponse response, TContext batchContext)
Parameters:
createCosmosBulkOperationResponse
public static CosmosBulkOperationResponse<TContext> <TContext>createCosmosBulkOperationResponse(CosmosItemOperation operation, Exception exception, TContext batchContext)
Parameters:
createCosmosClientEncryptionKeyResponse
public static CosmosClientEncryptionKeyResponse createCosmosClientEncryptionKeyResponse(ResourceResponse<ClientEncryptionKey> response)
Parameters:
createCosmosConflictResponse
public static CosmosConflictResponse createCosmosConflictResponse(ResourceResponse<Conflict> response)
Parameters:
createCosmosContainerResponse
public static CosmosContainerResponse createCosmosContainerResponse(ResourceResponse<DocumentCollection> response)
Parameters:
createCosmosDatabaseResponse
public static CosmosDatabaseResponse createCosmosDatabaseResponse(ResourceResponse<Database> response)
Parameters:
createCosmosItemRequestOptions
public static CosmosItemRequestOptions createCosmosItemRequestOptions(PartitionKey partitionKey)
Parameters:
createCosmosPermissionProperties
public static CosmosPermissionProperties createCosmosPermissionProperties(String jsonString)
Parameters:
createCosmosPermissionResponse
public static CosmosPermissionResponse createCosmosPermissionResponse(ResourceResponse<Permission> response)
Parameters:
createCosmosStoredProcedureProperties
public static CosmosStoredProcedureProperties createCosmosStoredProcedureProperties(String jsonString)
Parameters:
createCosmosStoredProcedureResponse
public static CosmosStoredProcedureResponse createCosmosStoredProcedureResponse(ResourceResponse<StoredProcedure> response)
Parameters:
createCosmosStoredProcedureResponse
public static CosmosStoredProcedureResponse createCosmosStoredProcedureResponse(StoredProcedureResponse response)
Parameters:
createCosmosTriggerResponse
public static CosmosTriggerResponse createCosmosTriggerResponse(ResourceResponse<Trigger> response)
Parameters:
createCosmosUserDefinedFunctionResponse
public static CosmosUserDefinedFunctionResponse createCosmosUserDefinedFunctionResponse(ResourceResponse<UserDefinedFunction> response)
Parameters:
createCosmosUserResponse
public static CosmosUserResponse createCosmosUserResponse(ResourceResponse<User> response)
Parameters:
createFeedResponse
public static FeedResponse<T> <T>createFeedResponse(List<T> results, Map<String,String> headers)
Parameters:
createFeedResponseWithQueryMetrics
public static FeedResponse<T> <T>createFeedResponseWithQueryMetrics(List<T> results, Map<String,String> headers, ConcurrentMap<String,QueryMetrics> queryMetricsMap, QueryInfo.QueryPlanDiagnosticsContext diagnosticsContext, boolean useEtagAsContinuation, boolean isNoChanges)
Parameters:
createIndexingPolicy
public static IndexingPolicy createIndexingPolicy(Index[] indexes)
Parameters:
createThroughputRespose
public static ThroughputResponse createThroughputRespose(ResourceResponse<Offer> offerResourceResponse)
Parameters:
fromServiceSerializedFormat
public static CosmosResourceType fromServiceSerializedFormat(String cosmosResourceType)
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<CosmosClientEncryptionKeyProperties> getClientEncryptionKeyPropertiesList(List<ClientEncryptionKey> results)
Parameters:
getConsistencyLevel
public static ConsistencyLevel getConsistencyLevel(CosmosItemRequestOptions options)
Parameters:
getCosmosConflictPropertiesFromV2Results
public static List<CosmosConflictProperties> getCosmosConflictPropertiesFromV2Results(List<Conflict> results)
Parameters:
getCosmosContainerPropertiesFromV2Results
public static List<CosmosContainerProperties> getCosmosContainerPropertiesFromV2Results(List<DocumentCollection> results)
Parameters:
getCosmosDatabasePropertiesFromV2Results
public static List<CosmosDatabaseProperties> getCosmosDatabasePropertiesFromV2Results(List<Database> results)
Parameters:
getCosmosPermissionPropertiesFromResults
public static List<CosmosPermissionProperties> getCosmosPermissionPropertiesFromResults(List<Permission> results)
Parameters:
getCosmosStoredProcedurePropertiesFromV2Results
public static List<CosmosStoredProcedureProperties> getCosmosStoredProcedurePropertiesFromV2Results(List<StoredProcedure> results)
Parameters:
getCosmosTriggerPropertiesFromV2Results
public static List<CosmosTriggerProperties> getCosmosTriggerPropertiesFromV2Results(List<Trigger> results)
Parameters:
getCosmosUserDefinedFunctionPropertiesFromV2Results
public static List<CosmosUserDefinedFunctionProperties> getCosmosUserDefinedFunctionPropertiesFromV2Results(List<UserDefinedFunction> results)
Parameters:
getCosmosUserPropertiesFromV2Results
public static List<CosmosUserProperties> getCosmosUserPropertiesFromV2Results(List<User> results)
Parameters:
getEffectiveChangeFeedRequestOptions
public static CosmosChangeFeedRequestOptions getEffectiveChangeFeedRequestOptions(CosmosChangeFeedRequestOptions cosmosChangeFeedRequestOptions, CosmosPagedFluxOptions pagedFlexOptions)
Parameters:
getInternalObjectNode
public static InternalObjectNode <T>getInternalObjectNode(CosmosItemResponse<T> cosmosItemResponse)
Parameters:
getJsonSerializable
public static JsonSerializable <T>getJsonSerializable(T t)
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:
getOfferFromThroughputProperties
public static Offer getOfferFromThroughputProperties(ThroughputProperties properties)
Parameters:
getOperationValueForCosmosItemOperationType
public static String getOperationValueForCosmosItemOperationType(CosmosItemOperationType cosmosItemOperationType)
Parameters:
getPartitionKeyInternal
public static PartitionKeyInternal getPartitionKeyInternal(PartitionKey partitionKey)
Parameters:
getPartitionKeyRangeIdInternal
public static String getPartitionKeyRangeIdInternal(CosmosQueryRequestOptions options)
Gets the partitionKeyRangeId.
Parameters:
Returns:
getPatchOperationsFromCosmosPatch
public static List<PatchOperation> getPatchOperationsFromCosmosPatch(CosmosPatchOperations cosmosPatchOperations)
Parameters:
getPayloadLength
public static int <T>getPayloadLength(CosmosItemResponse<T> cosmosItemResponse)
Parameters:
getPermission
public static Permission getPermission(CosmosPermissionProperties permissionProperties)
Parameters:
getPermission
public static Permission getPermission(CosmosPermissionProperties permissionProperties, String databaseName)
Parameters:
getPropertiesFromChangeFeedRequestOptions
public static Map<String,Object> getPropertiesFromChangeFeedRequestOptions(CosmosChangeFeedRequestOptions options)
Parameters:
getQueryPlanDiagnosticsContext
public static QueryInfo.QueryPlanDiagnosticsContext <T>getQueryPlanDiagnosticsContext(FeedResponse<T> feedResponse)
Parameters:
getRequestContinuationFromQueryRequestOptions
public static String getRequestContinuationFromQueryRequestOptions(CosmosQueryRequestOptions options)
Parameters:
getResource
public static Resource <T>getResource(T t)
Parameters:
getV2Collection
public static DocumentCollection getV2Collection(CosmosContainerProperties containerProperties)
Parameters:
getV2User
public static User getV2User(CosmosUserProperties cosmosUserProperties)
Parameters:
initializeAllAccessors
public static void initializeAllAccessors()
instantiateByObjectNode
public static T <T>instantiateByObjectNode(ObjectNode objectNode, Class<T> c)
Parameters:
isV2
public static boolean isV2(PartitionKeyDefinition pkd)
Parameters:
noChanges
public static boolean <T>noChanges(FeedResponse<T> page)
Parameters:
partitionKeyfromJsonString
public static PartitionKey partitionKeyfromJsonString(String jsonString)
Parameters:
populatePropertyBag
public static void <T>populatePropertyBag(T t)
Parameters:
queryMetrics
public static ConcurrentMap<String,QueryMetrics> <T>queryMetrics(FeedResponse<T> feedResponse)
Parameters:
queryMetricsMap
public static ConcurrentMap<String,QueryMetrics> <T>queryMetricsMap(FeedResponse<T> feedResponse)
Parameters:
serializeJsonToByteBuffer
public static ByteBuffer serializeJsonToByteBuffer(SqlQuerySpec sqlQuerySpec)
Parameters:
setChangeFeedRequestOptionsContinuation
public static void setChangeFeedRequestOptionsContinuation(String eTag, CosmosChangeFeedRequestOptions options)
Parameters:
setFeedResponseContinuationToken
public static void <T>setFeedResponseContinuationToken(String continuationToken, FeedResponse<T> response)
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<String,Object> properties)
Parameters:
setThroughputProperties
public static CosmosContainerRequestOptions setThroughputProperties(CosmosContainerRequestOptions containerRequestOptions, ThroughputProperties throughputProperties)
Parameters:
setThroughputProperties
public static CosmosDatabaseRequestOptions setThroughputProperties(CosmosDatabaseRequestOptions cosmosDatabaseRequestOptions, ThroughputProperties throughputProperties)
Parameters:
toDatabaseAccount
public static DatabaseAccount toDatabaseAccount(RxDocumentServiceResponse response)
Parameters:
toFeedResponsePage
public static FeedResponse<T> <T>toFeedResponsePage(List<T> results, Map<String,String> headers, boolean noChanges)
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(CosmosPermissionRequestOptions cosmosPermissionRequestOptions)
Parameters:
toRequestOptions
public static RequestOptions toRequestOptions(CosmosStoredProcedureRequestOptions cosmosStoredProcedureRequestOptions)
Parameters:
updateOfferFromProperties
public static Offer updateOfferFromProperties(Offer offer, ThroughputProperties properties)
Parameters: