-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GraalVM Reachability Metadata and corresponding nativeTest for Pr…
…esto
- Loading branch information
1 parent
1a4088f
commit 1440b65
Showing
19 changed files
with
636 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
...n/resources/META-INF/native-image/com.facebook.presto/presto-jdbc/0.290/proxy-config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[ | ||
{ | ||
"condition":{"typeReachable":"com.facebook.presto.jdbc.internal.guava.reflect.Reflection"}, | ||
"interfaces":["java.lang.reflect.TypeVariable"] | ||
} | ||
] |
182 changes: 182 additions & 0 deletions
182
...resources/META-INF/native-image/com.facebook.presto/presto-jdbc/0.290/reflect-config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,182 @@ | ||
[ | ||
{ | ||
"condition":{"typeReachable":"com.facebook.presto.jdbc.internal.client.StatementClientV1"}, | ||
"name":"com.facebook.presto.jdbc.internal.client.ClientTypeSignature", | ||
"methods":[{"name":"<init>","parameterTypes":["java.lang.String","java.util.List","java.util.List","java.util.List"] }] | ||
}, | ||
{ | ||
"condition":{"typeReachable":"com.facebook.presto.jdbc.internal.jackson.databind.ObjectReader"}, | ||
"name":"com.facebook.presto.jdbc.internal.client.ClientTypeSignature", | ||
"allDeclaredFields":true, | ||
"queryAllDeclaredMethods":true, | ||
"queryAllDeclaredConstructors":true | ||
}, | ||
{ | ||
"condition":{"typeReachable":"com.facebook.presto.jdbc.internal.jackson.databind.deser.DefaultDeserializationContext"}, | ||
"name":"com.facebook.presto.jdbc.internal.client.ClientTypeSignatureParameter$ClientTypeSignatureParameterDeserializer", | ||
"methods":[{"name":"<init>","parameterTypes":[] }] | ||
}, | ||
{ | ||
"condition":{"typeReachable":"com.facebook.presto.jdbc.internal.client.StatementClientV1"}, | ||
"name":"com.facebook.presto.jdbc.internal.client.Column", | ||
"methods":[{"name":"<init>","parameterTypes":["java.lang.String","java.lang.String","com.facebook.presto.jdbc.internal.client.ClientTypeSignature"] }] | ||
}, | ||
{ | ||
"condition":{"typeReachable":"com.facebook.presto.jdbc.internal.jackson.databind.ObjectReader"}, | ||
"name":"com.facebook.presto.jdbc.internal.client.Column", | ||
"allDeclaredFields":true, | ||
"queryAllDeclaredMethods":true, | ||
"queryAllDeclaredConstructors":true | ||
}, | ||
{ | ||
"condition":{"typeReachable":"com.facebook.presto.jdbc.internal.jackson.databind.ObjectReader"}, | ||
"name":"com.facebook.presto.jdbc.internal.client.ErrorLocation", | ||
"allDeclaredFields":true, | ||
"queryAllDeclaredMethods":true, | ||
"queryAllDeclaredConstructors":true | ||
}, | ||
{ | ||
"condition":{"typeReachable":"com.facebook.presto.jdbc.internal.jackson.databind.ObjectReader"}, | ||
"name":"com.facebook.presto.jdbc.internal.client.FailureInfo", | ||
"allDeclaredFields":true, | ||
"queryAllDeclaredMethods":true, | ||
"queryAllDeclaredConstructors":true, | ||
"allPublicConstructors": true | ||
}, | ||
{ | ||
"condition":{"typeReachable":"com.facebook.presto.jdbc.internal.jackson.databind.ObjectReader"}, | ||
"name":"com.facebook.presto.jdbc.internal.client.QueryData", | ||
"queryAllDeclaredMethods":true | ||
}, | ||
{ | ||
"condition":{"typeReachable":"com.facebook.presto.jdbc.internal.jackson.databind.ObjectReader"}, | ||
"name":"com.facebook.presto.jdbc.internal.client.QueryError", | ||
"allDeclaredFields":true, | ||
"queryAllDeclaredMethods":true, | ||
"queryAllDeclaredConstructors":true, | ||
"allPublicConstructors": true | ||
}, | ||
{ | ||
"condition":{"typeReachable":"com.facebook.presto.jdbc.internal.jackson.databind.ObjectReader"}, | ||
"name":"com.facebook.presto.jdbc.internal.client.QueryResults", | ||
"allDeclaredFields":true, | ||
"queryAllDeclaredMethods":true, | ||
"queryAllDeclaredConstructors":true, | ||
"methods":[{"name":"<init>","parameterTypes":["java.lang.String","java.net.URI","java.net.URI","java.net.URI","java.util.List","java.util.List","java.util.List","com.facebook.presto.jdbc.internal.client.StatementStats","com.facebook.presto.jdbc.internal.client.QueryError","java.util.List","java.lang.String","java.lang.Long"] }] | ||
}, | ||
{ | ||
"condition":{"typeReachable":"com.facebook.presto.jdbc.internal.jackson.databind.ObjectReader"}, | ||
"name":"com.facebook.presto.jdbc.internal.client.QueryStatusInfo", | ||
"queryAllDeclaredMethods":true | ||
}, | ||
{ | ||
"condition":{"typeReachable":"com.facebook.presto.jdbc.PrestoPreparedStatement"}, | ||
"name":"com.facebook.presto.jdbc.internal.client.StageStats", | ||
"methods":[{"name":"<init>","parameterTypes":["java.lang.String","java.lang.String","boolean","int","int","int","int","int","long","long","long","long","java.util.List"] }] | ||
}, | ||
{ | ||
"condition":{"typeReachable":"com.facebook.presto.jdbc.PrestoResultSet$ResultsPageIterator"}, | ||
"name":"com.facebook.presto.jdbc.internal.client.StageStats", | ||
"methods":[{"name":"<init>","parameterTypes":["java.lang.String","java.lang.String","boolean","int","int","int","int","int","long","long","long","long","java.util.List"] }] | ||
}, | ||
{ | ||
"condition":{"typeReachable":"com.facebook.presto.jdbc.PrestoStatement"}, | ||
"name":"com.facebook.presto.jdbc.internal.client.StageStats", | ||
"methods":[{"name":"<init>","parameterTypes":["java.lang.String","java.lang.String","boolean","int","int","int","int","int","long","long","long","long","java.util.List"] }] | ||
}, | ||
{ | ||
"condition":{"typeReachable":"com.facebook.presto.jdbc.internal.jackson.databind.ObjectReader"}, | ||
"name":"com.facebook.presto.jdbc.internal.client.StageStats", | ||
"allDeclaredFields":true, | ||
"queryAllDeclaredMethods":true, | ||
"queryAllDeclaredConstructors":true | ||
}, | ||
{ | ||
"condition":{"typeReachable":"com.facebook.presto.jdbc.internal.jackson.databind.ObjectReader"}, | ||
"name":"com.facebook.presto.jdbc.internal.client.StatementStats", | ||
"allDeclaredFields":true, | ||
"queryAllDeclaredMethods":true, | ||
"queryAllDeclaredConstructors":true, | ||
"methods":[{"name":"<init>","parameterTypes":["java.lang.String","boolean","boolean","boolean","int","int","int","int","int","long","long","long","long","long","long","long","long","long","long","long","com.facebook.presto.jdbc.internal.client.StageStats","com.facebook.presto.jdbc.internal.common.RuntimeStats"] }] | ||
}, | ||
{ | ||
"condition":{"typeReachable":"com.facebook.presto.jdbc.internal.jackson.databind.deser.std.MapDeserializer"}, | ||
"name":"com.facebook.presto.jdbc.internal.common.RuntimeMetric", | ||
"allDeclaredFields":true, | ||
"queryAllDeclaredMethods":true, | ||
"queryAllDeclaredConstructors":true, | ||
"methods":[{"name":"<init>","parameterTypes":["java.lang.String","com.facebook.presto.jdbc.internal.common.RuntimeUnit","long","long","long","long"] }] | ||
}, | ||
{ | ||
"condition":{"typeReachable":"com.facebook.presto.jdbc.internal.jackson.databind.ObjectReader"}, | ||
"name":"com.facebook.presto.jdbc.internal.common.RuntimeStats", | ||
"allDeclaredFields":true, | ||
"queryAllDeclaredMethods":true, | ||
"queryAllDeclaredConstructors":true | ||
}, | ||
{ | ||
"condition":{"typeReachable":"com.facebook.presto.jdbc.internal.jackson.databind.introspect.AnnotatedConstructor"}, | ||
"name":"com.facebook.presto.jdbc.internal.common.RuntimeStats", | ||
"methods":[{"name":"<init>","parameterTypes":["java.util.Map"] }] | ||
}, | ||
{ | ||
"condition":{"typeReachable":"com.facebook.presto.jdbc.internal.jackson.databind.deser.std.MapDeserializer"}, | ||
"name":"com.facebook.presto.jdbc.internal.common.RuntimeUnit", | ||
"allDeclaredFields":true, | ||
"queryAllDeclaredMethods":true | ||
}, | ||
{ | ||
"condition":{"typeReachable":"com.facebook.presto.jdbc.internal.jackson.databind.introspect.JacksonAnnotationIntrospector"}, | ||
"name":"com.facebook.presto.jdbc.internal.common.RuntimeUnit", | ||
"allDeclaredFields":true | ||
}, | ||
{ | ||
"condition":{"typeReachable":"com.facebook.presto.jdbc.internal.jackson.databind.util.ClassUtil"}, | ||
"name":"com.facebook.presto.jdbc.internal.common.RuntimeUnit", | ||
"allDeclaredFields":true | ||
}, | ||
{ | ||
"condition":{"typeReachable":"com.facebook.presto.jdbc.internal.jackson.databind.ObjectMapper"}, | ||
"name":"com.facebook.presto.jdbc.internal.common.type.ParameterKind", | ||
"allDeclaredFields":true, | ||
"queryAllDeclaredMethods":true | ||
}, | ||
{ | ||
"condition":{"typeReachable":"com.facebook.presto.jdbc.internal.jackson.databind.introspect.AnnotatedMethod"}, | ||
"name":"com.facebook.presto.jdbc.internal.common.type.ParameterKind", | ||
"methods":[{"name":"fromJsonValue","parameterTypes":["java.lang.String"] }] | ||
}, | ||
{ | ||
"condition":{"typeReachable":"com.facebook.presto.jdbc.internal.guava.reflect.Types$TypeVariableInvocationHandler"}, | ||
"name":"com.facebook.presto.jdbc.internal.guava.reflect.Types$TypeVariableImpl", | ||
"queryAllPublicMethods":true | ||
}, | ||
{ | ||
"condition":{"typeReachable":"com.facebook.presto.jdbc.internal.jackson.databind.ext.Java7Handlers"}, | ||
"name":"com.facebook.presto.jdbc.internal.jackson.databind.ext.Java7HandlersImpl", | ||
"methods":[{"name":"<init>","parameterTypes":[] }] | ||
}, | ||
{ | ||
"condition":{"typeReachable":"com.facebook.presto.jdbc.internal.jackson.databind.ext.Java7Support"}, | ||
"name":"com.facebook.presto.jdbc.internal.jackson.databind.ext.Java7SupportImpl", | ||
"methods":[{"name":"<init>","parameterTypes":[] }] | ||
}, | ||
{ | ||
"condition":{"typeReachable":"com.facebook.presto.jdbc.internal.com.facebook.airlift.json.ObjectMapperProvider"}, | ||
"name":"com.facebook.presto.jdbc.internal.joda.time.DateTime" | ||
}, | ||
{ | ||
"condition":{"typeReachable":"com.facebook.presto.jdbc.internal.jackson.databind.ObjectReader"}, | ||
"name":"com.facebook.presto.jdbc.internal.spi.PrestoWarning", | ||
"allDeclaredFields":true, | ||
"queryAllDeclaredMethods":true, | ||
"queryAllDeclaredConstructors":true | ||
}, | ||
{ | ||
"condition":{"typeReachable":"com.facebook.presto.jdbc.internal.jackson.databind.ObjectReader"}, | ||
"name":"com.facebook.presto.jdbc.internal.spi.WarningCode", | ||
"allDeclaredFields":true, | ||
"queryAllDeclaredMethods":true, | ||
"queryAllDeclaredConstructors":true | ||
} | ||
] |
17 changes: 17 additions & 0 deletions
17
...esources/META-INF/native-image/com.facebook.presto/presto-jdbc/0.290/resource-config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"resources":{ | ||
"includes":[{ | ||
"condition":{"typeReachable":"com.facebook.presto.jdbc.internal.common.type.TimeZoneKey"}, | ||
"pattern":"\\Qcom/facebook/presto/jdbc/internal/common/type/zone-index.properties\\E" | ||
}, { | ||
"condition":{"typeReachable":"com.facebook.presto.jdbc.internal.joda.time.tz.ZoneInfoProvider"}, | ||
"pattern":"\\Qcom/facebook/presto/jdbc/internal/joda/time/tz/data/ZoneInfoMap\\E" | ||
}, { | ||
"condition":{"typeReachable":"com.facebook.presto.jdbc.internal.joda.time.tz.ZoneInfoProvider"}, | ||
"pattern":"\\Qcom/facebook/presto/jdbc/internal/joda/time/tz/data/Asia/Shanghai\\E" | ||
}, { | ||
"condition":{"typeReachable":"com.facebook.presto.jdbc.internal.joda.time.tz.ZoneInfoProvider"}, | ||
"pattern":"\\Qcom/facebook/presto/jdbc/internal/joda/time/tz/data/Etc/UTC\\E" | ||
}]}, | ||
"bundles":[] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.