docs: Java client usage (#489)

* docs: java usage quick-start

* docs: collections java usage

* docs: payload java usage

* docs: points java-usage

* docs: search java-usage

* docs: explore java usage

* docs: filtering java usage

* docs: storage java-usage

* docs: indexing java usage

* docs: snapshots java-usage

* docs: list Java sdk
This commit is contained in:
Anush
2024-01-02 16:32:33 +05:30
committed by GitHub
parent 4e9b0d9555
commit e29c2f54ac
14 changed files with 1756 additions and 6 deletions
@@ -21,7 +21,7 @@ However, we recommend rotating the keys from time to time. To create additional
## Authenticate via SDK
Now that you have created your first cluster and key, you might want to access Qdrant Cloud from within your application.
Our official Qdrant clients for Python, TypeScript, Go, Rust, and .NET all support the API key parameter.
Our official Qdrant clients for Python, TypeScript, Go, Rust, .NET and Java all support the API key parameter.
```bash
curl \
@@ -70,3 +70,17 @@ let client = QdrantClient::from_url("xyz-example.eu-central.aws.cloud.qdrant.io:
.build()
.unwrap();
```
```java
import io.qdrant.client.QdrantClient;
import io.qdrant.client.QdrantGrpcClient;
QdrantClient client =
new QdrantClient(
QdrantGrpcClient.newBuilder(
"xyz-example.eu-central.aws.cloud.qdrant.io",
6334,
true)
.withApiKey("<paste-your-api-key-here>")
.build());
```