Skip to content

Commit 7e8807d

Browse files
authored
Update import examples in README (#167)
## Problem The import examples in the README are missing some class imports. ## Solution Add the imports. ## Type of Change - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] This change requires a documentation update - [ ] Infrastructure change (CI configs, etc) - [x] Non-code change (docs, etc) - [ ] None of the above: (explain here) ## Test Plan Describe specific steps for validating this change.
1 parent a6f34ab commit 7e8807d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -658,6 +658,8 @@ System.out.println(result.getData());
658658
The following example initiates an asynchronous import of vectors from object storage into the index.
659659

660660
```java
661+
import io.pinecone.clients.Pinecone;
662+
import io.pinecone.clients.AsyncIndex;
661663
import org.openapitools.db_data.client.ApiException;
662664
import org.openapitools.db_data.client.model.ImportErrorMode;
663665
import org.openapitools.db_data.client.model.StartImportResponse;
@@ -680,6 +682,8 @@ StartImportResponse response = asyncIndex.startImport(uri, "123-456-789", Import
680682
The following example lists all recent and ongoing import operations for the specified index.
681683

682684
```java
685+
import io.pinecone.clients.Pinecone;
686+
import io.pinecone.clients.AsyncIndex;
683687
import org.openapitools.db_data.client.ApiException;
684688
import org.openapitools.db_data.client.model.ListImportsResponse;
685689
...
@@ -698,6 +702,8 @@ ListImportsResponse response = asyncIndex.listImports(100, "some-pagination-toke
698702
The following example retrieves detailed information about a specific import operation using its unique identifier.
699703

700704
```java
705+
import io.pinecone.clients.Pinecone;
706+
import io.pinecone.clients.AsyncIndex;
701707
import org.openapitools.db_data.client.ApiException;
702708
import org.openapitools.db_data.client.model.ImportModel;
703709
...
@@ -716,6 +722,8 @@ ImportModel importDetails = asyncIndex.describeImport("1");
716722
The following example attempts to cancel an ongoing import operation using its unique identifier.
717723

718724
```java
725+
import io.pinecone.clients.Pinecone;
726+
import io.pinecone.clients.AsyncIndex;
719727
import org.openapitools.db_data.client.ApiException;
720728
...
721729

0 commit comments

Comments
 (0)