Skip to content

Commit 7165f97

Browse files
authored
Merge pull request #115377 from anfeldma-ms/CosmosJavaSamples
Cosmos java samples
2 parents b76dcf1 + b0d26e7 commit 7165f97

10 files changed

+245
-338
lines changed

.openpublishing.redirection.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
{
22
"redirections": [
3+
{
4+
"source_path": "articles/cosmos-db/sql-api-async-java-samples.md",
5+
"redirect_url": "/azure/cosmos-db/sql-api-java-sdk-samples",
6+
"redirect_document_id": false
7+
},
8+
{
9+
"source_path": "articles/cosmos-db/sql-api-java-samples.md",
10+
"redirect_url": "/azure/cosmos-db/sql-api-java-sdk-samples",
11+
"redirect_document_id": false
12+
},
313
{
414
"source_path": "articles/openshift/howto-azure-monitor-v4.md",
515
"redirect_url": "articles/azure-monitor/insights/container-insights-azure-redhat4-setup.md",

articles/cosmos-db/TOC.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,8 @@
7171
href: sql-api-dotnet-samples.md
7272
- name: .NET V3 SDK samples
7373
href: sql-api-dotnet-v3sdk-samples.md
74-
- name: Java samples
75-
href: sql-api-java-samples.md
76-
- name: Async Java samples
77-
href: sql-api-async-java-samples.md
74+
- name: Java SDK v4 samples
75+
href: sql-api-java-sdk-samples.md
7876
- name: Node.js samples
7977
href: sql-api-nodejs-samples.md
8078
- name: Python samples

articles/cosmos-db/set-throughput.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ After you create an Azure Cosmos container or a database, you can update the pro
9090
* The maximum throughput that you ever provision on the container
9191
* The current number of Azure Cosmos containers that you have in a database with shared throughput.
9292

93-
You can retrieve the minimum throughput of a container or a database programmatically by using the SDKs or view the value in the Azure portal. When using the .NET SDK, the [DocumentClient.ReplaceOfferAsync](https://docs.microsoft.com/dotnet/api/microsoft.azure.documents.client.documentclient.replaceofferasync?view=azure-dotnet) method allows you to scale the provisioned throughput value. When using the Java SDK, the [RequestOptions.setOfferThroughput](sql-api-java-samples.md#offer-examples) method allows you to scale the provisioned throughput value.
93+
You can retrieve the minimum throughput of a container or a database programmatically by using the SDKs or view the value in the Azure portal. When using the .NET SDK, the [DocumentClient.ReplaceOfferAsync](https://docs.microsoft.com/dotnet/api/microsoft.azure.documents.client.documentclient.replaceofferasync?view=azure-dotnet) method allows you to scale the provisioned throughput value. When using the Java SDK, the [RequestOptions.setOfferThroughput](sql-api-java-sdk-samples.md) method allows you to scale the provisioned throughput value.
9494

9595
When using the .NET SDK, the [DocumentClient.ReadOfferAsync](https://docs.microsoft.com/dotnet/api/microsoft.azure.documents.client.documentclient.readofferasync?view=azure-dotnet) method allows you to retrieve the minimum throughput of a container or a database.
9696

articles/cosmos-db/sql-api-async-java-samples.md

Lines changed: 0 additions & 167 deletions
This file was deleted.

articles/cosmos-db/sql-api-dotnet-samples.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@ ms.author: sngun
1010

1111
---
1212
# Azure Cosmos DB: .NET examples for the SQL API
13+
1314
> [!div class="op_single_selector"]
14-
> * [.NET Examples](sql-api-dotnet-samples.md)
15-
> * [Java Examples](sql-api-java-samples.md)
16-
> * [Async Java Examples](sql-api-async-java-samples.md)
15+
> * [.NET V2 SDK Examples](sql-api-dotnet-samples.md)
16+
> * [.NET V3 SDK Examples](sql-api-dotnet-v3sdk-samples.md)
17+
> * [Java V4 SDK Examples](sql-api-java-sdk-samples.md)
1718
> * [Node.js Examples](sql-api-nodejs-samples.md)
1819
> * [Python Examples](sql-api-python-samples.md)
1920
> * [Azure Code Sample Gallery](https://azure.microsoft.com/resources/samples/?sort=0&service=cosmos-db)

articles/cosmos-db/sql-api-dotnet-v3sdk-samples.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ ms.author: sngun
1414
> [!div class="op_single_selector"]
1515
> * [.NET V2 SDK Examples](sql-api-dotnet-samples.md)
1616
> * [.NET V3 SDK Examples](sql-api-dotnet-v3sdk-samples.md)
17-
> * [Java Examples](sql-api-java-samples.md)
18-
> * [Async Java Examples](sql-api-async-java-samples.md)
17+
> * [Java V4 SDK Examples](sql-api-java-sdk-samples.md)
1918
> * [Node.js Examples](sql-api-nodejs-samples.md)
2019
> * [Python Examples](sql-api-python-samples.md)
2120
> * [Azure Code Sample Gallery](https://azure.microsoft.com/resources/samples/?sort=0&service=cosmos-db)

articles/cosmos-db/sql-api-java-samples.md

Lines changed: 0 additions & 157 deletions
This file was deleted.

0 commit comments

Comments
 (0)