Skip to content

Commit

Permalink
removing warning in native compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
clun committed Jan 15, 2025
1 parent 44cfe75 commit edce75c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 83 deletions.
87 changes: 4 additions & 83 deletions src/main/resources/META-INF/native-image/reflect-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,12 @@
"methods":[{"name":"<init>","parameterTypes":[] }]
},
{
"name":"com.dtsx.astra.cli.db.cdc.DbgDeleteCdcCmd",
"name":"com.dtsx.astra.cli.db.cdc.DbDeleteCdcCmd",
"allDeclaredFields":true,
"methods":[{"name":"<init>","parameterTypes":[] }]
},
{
"name":"com.dtsx.astra.cli.db.cdc.DbgListCdcCmd",
"name":"com.dtsx.astra.cli.db.cdc.DbListCdcCmd",
"allDeclaredFields":true,
"methods":[{"name":"<init>","parameterTypes":[] }]
},
Expand Down Expand Up @@ -178,10 +178,6 @@
"name":"com.dtsx.astra.cli.db.dsbulk.AbstractDsbulkCmd",
"allDeclaredFields":true
},
{
"name":"com.dtsx.astra.cli.db.dsbulk.AbstractDsbulkDataCmd",
"allDeclaredFields":true
},
{
"name":"com.dtsx.astra.cli.db.dsbulk.DbCountCmd",
"allDeclaredFields":true,
Expand Down Expand Up @@ -247,7 +243,7 @@
"methods":[{"name":"<init>","parameterTypes":[] }]
},
{
"name":"com.dtsx.astra.cli.db.collection.DbTruncateCollectionsCmd",
"name":"com.dtsx.astra.cli.db.collection.DbTruncateCollectionCmd",
"allDeclaredFields":true,
"methods":[{"name":"<init>","parameterTypes":[] }]
},
Expand Down Expand Up @@ -1031,68 +1027,6 @@
]
},

{
"name":"io.stargate.sdk.json.domain.JsonApiResponse",
"allDeclaredFields":true,
"queryAllDeclaredMethods":true,
"queryAllDeclaredConstructors":true,
"methods":[
{"name":"<init>","parameterTypes":[] },
{"name":"setStatus","parameterTypes":["java.util.Map"] },
{"name":"getStatus","parameterTypes":[""] },
{"name":"setData","parameterTypes":["io.stargate.sdk.json.domain.JsonApiData"] },
{"name":"getData","parameterTypes":[""] },
{"name":"setErrors","parameterTypes":["java.util.List"] },
{"name":"getErrors","parameterTypes":[""] }
]
},
{
"name":"io.stargate.sdk.json.domain.JsonApiData",
"allDeclaredFields":true,
"queryAllDeclaredMethods":true,
"queryAllDeclaredConstructors":true,
"methods":[
{"name":"<init>","parameterTypes":[] },
{"name":"setDocuments","parameterTypes":["java.util.List"] },
{"name":"getDocuments","parameterTypes":[""] },
{"name":"setDocument","parameterTypes":["io.stargate.sdk.json.domain.JsonResult"] },
{"name":"getDocument","parameterTypes":[""] },
{"name":"setNextPageState","parameterTypes":["java.lang.String"] },
{"name":"getNextPageState","parameterTypes":[""] }
]
},
{
"name":"io.stargate.sdk.json.domain.JsonResult",
"allDeclaredFields":true,
"queryAllDeclaredMethods":true,
"queryAllDeclaredConstructors":true,
"methods":[
{"name":"<init>","parameterTypes":[] },
{"name":"setData","parameterTypes":["java.util.Map"] },
{"name":"getData","parameterTypes":[""] },
{"name":"setVector","parameterTypes":["[F"] },
{"name":"getVector","parameterTypes":[""] },
{"name":"setSimilarity","parameterTypes":["java.lang.Float"] },
{"name":"getSimilarity","parameterTypes":[""] }
]
},
{
"name":"io.stargate.sdk.json.domain.JsonApiError",
"allDeclaredFields":true,
"queryAllDeclaredMethods":true,
"queryAllDeclaredConstructors":true,
"methods":[
{"name":"<init>","parameterTypes":[] },
{"name":"setMessage","parameterTypes":["java.lang.String"] },
{"name":"getMessage","parameterTypes":[""] },
{"name":"setErrorCode","parameterTypes":["java.lang.String"] },
{"name":"getErrorCode","parameterTypes":[""] },
{"name":"setExceptionClass","parameterTypes":["java.lang.String"] },
{"name":"getExceptionClass","parameterTypes":[""] }
]
},



{
"name": "com.datastax.astra.client.core.commands.Command",
Expand Down Expand Up @@ -1137,12 +1071,6 @@
"allDeclaredMethods": true,
"allDeclaredConstructors": true
},
{
"name": "com.datastax.astra.client.collections.definition.CollectionDefinition$VectorOptions",
"allDeclaredFields": true,
"allDeclaredMethods": true,
"allDeclaredConstructors": true
},
{
"name": "com.datastax.astra.client.collections.definition.CollectionDefinition$IndexingOptions",
"allDeclaredFields": true,
Expand Down Expand Up @@ -1211,7 +1139,7 @@
"allDeclaredConstructors": true
},
{
"name": "com.datastax.astra.client.collections.definition.CollectionDefaultIdTypes,",
"name": "com.datastax.astra.client.collections.definition.CollectionDefaultIdTypes",
"allDeclaredFields": true,
"allDeclaredMethods": true,
"allDeclaredConstructors": true
Expand Down Expand Up @@ -1371,10 +1299,6 @@
"methods":[{"name":"<init>","parameterTypes":[] }]
},


{
"name":"jakarta.inject.Inject"
},
{
"name":"java.io.Serializable",
"queryAllDeclaredMethods":true
Expand Down Expand Up @@ -1412,9 +1336,6 @@
"queryAllDeclaredConstructors":true,
"methods":[{"name":"<init>","parameterTypes":[] }]
},
{
"name":"javax.inject.Inject"
},
{
"name":"javax.security.auth.x500.X500Principal",
"fields":[{"name":"thisX500Name"}],
Expand Down
8 changes: 8 additions & 0 deletions src/test/java/com/dtsx/astra/cli/test/db/DbTablesTest.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.dtsx.astra.cli.test.db;

import com.datastax.astra.client.DataAPIClient;
import com.datastax.astra.client.collections.definition.CollectionDefinition;
import com.datastax.astra.client.databases.Database;
import com.datastax.astra.client.tables.Table;
import com.datastax.astra.client.tables.commands.options.CreateTableOptions;
Expand All @@ -10,6 +11,7 @@
import com.datastax.astra.client.tables.definition.rows.Row;
import com.dtsx.astra.cli.core.CliContext;
import com.dtsx.astra.cli.db.DaoDatabase;
import com.dtsx.astra.cli.db.cdc.DbDeleteCdcCmd;
import com.dtsx.astra.cli.test.AbstractCmdTest;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.MethodOrderer;
Expand Down Expand Up @@ -123,4 +125,10 @@ public void shouldDeleteTableIfExists() {
assertSuccessCli("db delete-table %s --table %s --if-exists".formatted(DB_TEST_VECTOR, TEST_TABLE_SIMPLE));
}

@Test
public void test() {
CollectionDefinition cd;

}

}

0 comments on commit edce75c

Please sign in to comment.