@@ -55,14 +55,14 @@ public static void main(String[] args) throws ApiException {
5555 private static void runSQL (TileDBClient tileDBClient ) {
5656 SQLParameters sqlParameters = new SQLParameters ();
5757 sqlParameters .setQuery ("SELECT * FROM `tiledb://TileDB-Inc/quickstart_sparse`" );
58- TileDBSQL tileDBSQL = new TileDBSQL (tileDBClient , "unittest" , sqlParameters );
58+ TileDBSQL tileDBSQL = new TileDBSQL (tileDBClient , "workspace" , " unittest" , sqlParameters );
5959 System .out .println (tileDBSQL .exec ());
6060 }
6161
6262 private static void runSQLArrow (TileDBClient tileDBClient ) {
6363 SQLParameters sqlParameters = new SQLParameters ();
6464 sqlParameters .setQuery ("SELECT * FROM `tiledb://TileDB-Inc/quickstart_sparse`" );
65- TileDBSQL tileDBSQL = new TileDBSQL (tileDBClient , "unittest" , sqlParameters );
65+ TileDBSQL tileDBSQL = new TileDBSQL (tileDBClient , "workspace" , " unittest" , sqlParameters );
6666 Pair <ArrayList <ValueVector >, Integer > a = tileDBSQL .execArrow ();
6767 }
6868
@@ -167,11 +167,12 @@ public static void runMultiArrayUDF(TileDBClient tileDBClient){
167167 */
168168 private static void deregisterArray (TileDBClient tileDBClient )
169169 {
170+ String workspace = "<TILEDB_WORKSPACE>" ;
170171 String namespace = "<TILEDB_NAMESPACE>" ; // String | namespace array is in (an organization name or user's username)
171172 String array = "<ARRAY_NAME>" ; // String | name/uri of array that is url-encoded
172173 ArrayApi apiInstance = new ArrayApi (tileDBClient .getApiClient ());
173174 try {
174- apiInstance .deregisterArray (namespace , array );
175+ apiInstance .deregisterArray (workspace , namespace , array );
175176 } catch (ApiException e ) {
176177 System .err .println ("Exception when calling ArrayApi#deregisterArray" );
177178 System .err .println ("Status code: " + e .getCode ());
@@ -186,12 +187,13 @@ private static void deregisterArray(TileDBClient tileDBClient)
186187 */
187188 private static void deleteArray (TileDBClient tileDBClient )
188189 {
190+ String workspace = "<TILEDB_WORKSPACE>" ;
189191 String namespace = "<TILEDB_NAMESPACE>" ; // String | namespace array is in (an organization name or user's username)
190192 String array = "<ARRAY_NAME>" ; // String | name/uri of array that is url-encoded
191193 String contentType = "application/json" ; // String | Content Type of input and return mime
192194 ArrayApi apiInstance = new ArrayApi (tileDBClient .getApiClient ());
193195 try {
194- apiInstance .deleteArray (namespace , array , contentType );
196+ apiInstance .deleteArray (workspace , namespace , array , contentType );
195197 } catch (ApiException e ) {
196198 System .err .println ("Exception when calling ArrayApi#deleteArray" );
197199 System .err .println ("Status code: " + e .getCode ());
@@ -232,12 +234,13 @@ private static void listGroups(TileDBClient tileDBClient)
232234
233235 private static void listArrays (TileDBClient tileDBClient )
234236 {
237+ String workspace = "workspace" ;
235238 String namespace = "unittest" ; // String | namespace array is in (an organization name or user's username)
236239 Boolean withMetadata = false ;
237240 ArrayApi apiInstance = new ArrayApi (tileDBClient .getApiClient ());
238241
239242 try {
240- List <ArrayInfo > result = apiInstance .getArraysInNamespace (namespace , withMetadata );
243+ List <ArrayInfo > result = apiInstance .getArraysInNamespace (workspace , namespace , withMetadata );
241244 System .out .println (result );
242245 } catch (ApiException e ) {
243246 System .err .println ("Exception when calling ArrayApi#getArraysInNamespace" );
@@ -249,13 +252,14 @@ private static void listArrays(TileDBClient tileDBClient)
249252 }
250253
251254 private static void getArray (TileDBClient tileDBClient ){
255+ String workspace = "workspace" ;
252256 String namespace = "TileDB-Inc" ; // String | namespace array is in (an organization name or user's username)
253257 String array = "quickstart_sparse" ; // String | name/uri of array that is url-encoded
254258 String contentType = "application/json" ; // String | Content Type of input and return mime
255259 ArrayApi apiInstance = new ArrayApi (tileDBClient .getApiClient ());
256260
257261 try {
258- ArraySchema result = apiInstance .getArray (namespace , array , contentType );
262+ ArraySchema result = apiInstance .getArray (workspace , namespace , array , contentType );
259263 System .out .println (result );
260264 } catch (ApiException e ) {
261265 System .err .println ("Exception when calling ArrayApi#getArray" );
@@ -267,6 +271,7 @@ private static void getArray(TileDBClient tileDBClient){
267271 }
268272
269273 private static void createArray (TileDBClient tileDBClient ){
274+ String workspace = "<TILEDB_WORKSPACE>" ;
270275 String namespace = "<TILEDB_NAMESPACE>" ; // String | namespace array is in (an organization name or user's username)
271276 String arrayName = "s3://<BUCKET-NAME>/my_array" ; // String | name/uri of array that is url-encoded //
272277 String contentType = "application/json" ; // String | Content Type of input and return mime
@@ -319,7 +324,7 @@ private static void createArray(TileDBClient tileDBClient){
319324 ArrayApi apiInstance = new ArrayApi (tileDBClient .getApiClient ());
320325
321326 try {
322- apiInstance .createArray (namespace , arrayName , contentType , schema , null );
327+ apiInstance .createArray (workspace , namespace , arrayName , contentType , schema , null );
323328 } catch (ApiException e ) {
324329 System .err .println ("Exception when calling ArrayApi#createArray" );
325330 System .err .println ("Status code: " + e .getCode ());
@@ -330,6 +335,7 @@ private static void createArray(TileDBClient tileDBClient){
330335 }
331336
332337 public static void registerArray (TileDBClient tileDBClient ){
338+ String workspace = "<TILEDB_WORKSPACE>" ;
333339 String namespace = "<TILEDB_NAMESPACE>" ; // String | namespace array is in (an organization name or user's username)
334340 String array = "s3://<BUCKET-NAME>/<ARRAY-URI>/" ; // String | name/uri of array that is url-encoded
335341 ArrayInfoUpdate arrayMetadata = new ArrayInfoUpdate (); // ArrayInfoUpdate | metadata associated with array
@@ -338,7 +344,7 @@ public static void registerArray(TileDBClient tileDBClient){
338344 ArrayApi apiInstance = new ArrayApi (tileDBClient .getApiClient ());
339345
340346 try {
341- ArrayInfo result = apiInstance .registerArray (namespace , array , arrayMetadata );
347+ ArrayInfo result = apiInstance .registerArray (workspace , namespace , array , arrayMetadata );
342348 System .out .println (result );
343349 } catch (ApiException e ) {
344350 System .err .println ("Exception when calling ArrayApi#registerArray" );
0 commit comments