public final class JsonUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
COSMOS_ID_FIELD |
static String |
COSMOS_ID_PARAMETER |
static com.azure.cosmos.models.PartitionKey |
DEFAULT_PARTITION_KEY |
static String |
DEFAULT_PARTITION_KEY_NAME |
static String |
DEFAULT_PARTITION_KEY_PATH |
static com.azure.cosmos.models.PartitionKey |
DEFAULT_PARTITION_KEY_PERSIST |
static com.fasterxml.jackson.databind.ObjectMapper |
OBJECT_MAPPER |
static String |
QUERY_SELECT_ALL |
| Constructor and Description |
|---|
JsonUtils() |
| Modifier and Type | Method and Description |
|---|---|
static com.azure.cosmos.implementation.Document |
fromMap(Map<?,?> source) |
static com.azure.cosmos.implementation.Document |
mergeDocuments(com.azure.cosmos.implementation.Document destination,
com.azure.cosmos.implementation.Document source) |
static com.azure.cosmos.implementation.Document |
orEmptyDocument(String json) |
static com.azure.cosmos.models.SqlQuerySpec |
orEmptySqlQuerySpec(String json)
Deserialize the json to query parameters.
|
static com.azure.cosmos.models.CosmosStoredProcedureProperties |
orEmptyStoredProcedureProperties(String json)
Deserialize the json to Stored Procedure parameters.
|
static com.azure.cosmos.models.CosmosContainerProperties |
toContainerProperties(String containerName,
String containerPropertiesJson) |
static com.azure.cosmos.models.ThroughputProperties |
toThroughputProperties(String throughputPropertiesJson) |
public static final com.fasterxml.jackson.databind.ObjectMapper OBJECT_MAPPER
public static final String DEFAULT_PARTITION_KEY_NAME
public static final String DEFAULT_PARTITION_KEY_PATH
public static final com.azure.cosmos.models.PartitionKey DEFAULT_PARTITION_KEY
public static final com.azure.cosmos.models.PartitionKey DEFAULT_PARTITION_KEY_PERSIST
public static final String COSMOS_ID_FIELD
public static final String COSMOS_ID_PARAMETER
public static final String QUERY_SELECT_ALL
public static com.azure.cosmos.implementation.Document orEmptyDocument(String json)
public static com.azure.cosmos.models.SqlQuerySpec orEmptySqlQuerySpec(String json)
json - the query parameters in json format.
See request body: https://docs.microsoft.com/en-us/rest/api/cosmos-db/query-documents.SqlQuerySpec.public static com.azure.cosmos.models.CosmosStoredProcedureProperties orEmptyStoredProcedureProperties(String json)
json - the Stored Procedure in json format.
See request body: https://docs.microsoft.com/en-us/rest/api/cosmos-db/create-a-stored-procedure.CosmosStoredProcedureProperties.public static com.azure.cosmos.implementation.Document fromMap(Map<?,?> source)
public static com.azure.cosmos.implementation.Document mergeDocuments(com.azure.cosmos.implementation.Document destination,
com.azure.cosmos.implementation.Document source)
public static com.azure.cosmos.models.CosmosContainerProperties toContainerProperties(String containerName, String containerPropertiesJson)
public static com.azure.cosmos.models.ThroughputProperties toThroughputProperties(String throughputPropertiesJson)
Copyright © 2021 Liquibase.org. All rights reserved.