6
6
import io .tiledb .cloud .rest_api .api .GroupsApi ;
7
7
import io .tiledb .cloud .rest_api .api .ArrayApi ;
8
8
import io .tiledb .cloud .rest_api .model .*;
9
+ import jdk .swing .interop .SwingInterOpUtils ;
9
10
import org .apache .arrow .vector .ValueVector ;
10
11
11
12
import java .math .BigDecimal ;
@@ -24,7 +25,7 @@ public static void main(String[] args) {
24
25
TileDBClient tileDBClient = new TileDBClient (
25
26
new TileDBLogin (null ,
26
27
null ,
27
- "<TILEDB_API_TOKEN>" ,
28
+ System . getenv ( "API_TOKEN" ) ,
28
29
true ,
29
30
true ,
30
31
true ));
@@ -35,18 +36,18 @@ public static void main(String[] args) {
35
36
36
37
37
38
// Uncomment to run whichever example you want
38
- // runGenericUDF(tileDBClient);
39
- // runArrayUDF(tileDBClient);
40
- // runMultiArrayUDF(tileDBClient);
41
- // getArraySchema(tileDBClient);
39
+ runGenericUDF (tileDBClient );
40
+ runArrayUDF (tileDBClient );
41
+ runMultiArrayUDF (tileDBClient );
42
+ getArraySchema (tileDBClient );
42
43
// createArray(tileDBClient);
43
44
// registerArray(tileDBClient);
44
- // listArrays(tileDBClient);
45
- // listGroups(tileDBClient);
45
+ listArrays (tileDBClient );
46
+ listGroups (tileDBClient );
46
47
// deleteArray(tileDBClient);
47
48
// deregisterArray(tileDBClient);
48
- // runSQL(tileDBClient);
49
- // runSQLArrow(tileDBClient);
49
+ runSQL (tileDBClient );
50
+ runSQLArrow (tileDBClient );
50
51
51
52
}
52
53
@@ -205,7 +206,7 @@ private static void listGroups(TileDBClient tileDBClient)
205
206
Integer page = null ; // Integer | pagination offset
206
207
Integer perPage = null ; // Integer | pagination limit
207
208
String search = null ; // String | search string that will look at name, namespace or description fields
208
- String namespace = "<TILEDB_NAMESPACE> " ; // String | namespace
209
+ String namespace = "TileDB-Inc " ; // String | namespace
209
210
String orderby = null ; // String | sort by which field valid values include last_accessed, size, name
210
211
String permissions = null ; // String | permissions valid values include read, read_write, write, admin
211
212
List <String > tag = null ; // List<String> | tag to search for, more than one can be included
@@ -228,7 +229,7 @@ private static void listGroups(TileDBClient tileDBClient)
228
229
229
230
private static void listArrays (TileDBClient tileDBClient )
230
231
{
231
- String namespace = "<TILEDB_NAMESPACE> " ; // String | namespace array is in (an organization name or user's username)
232
+ String namespace = "dstara " ; // String | namespace array is in (an organization name or user's username)
232
233
ArrayApi apiInstance = new ArrayApi (tileDBClient .getApiClient ());
233
234
234
235
try {
0 commit comments