Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add byte support for the module #15

Merged
merged 48 commits into from
May 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
431711f
[Automated] Update the native jar versions
Nuvindu May 6, 2024
4d4594b
Remove unnecessary avro jackson dataformat version
Nuvindu May 6, 2024
73655c4
Add visitable classes for each Avro schema type
Nuvindu May 6, 2024
9e1251e
Add factory pattern to generate visitable Avro schema objects
Nuvindu May 6, 2024
b8f6d59
Add visitor APIs to generate Avro messages for serialization
Nuvindu May 6, 2024
d010c13
Add visitable classes for each Avro schema type in deserialization
Nuvindu May 6, 2024
9dd6f82
Add factory pattern to generate Avro messages from deserialized data
Nuvindu May 6, 2024
05ecab3
Add visitor APIs to generate deserialized message
Nuvindu May 6, 2024
7e9c235
Add visitable for the string type
Nuvindu May 6, 2024
f423aaf
Add support for fixed and byte values
Nuvindu May 6, 2024
c96bd77
Add API to extract mutable type from an intersection type
Nuvindu May 6, 2024
2941907
Remove load test workflow file
Nuvindu May 6, 2024
f10faa4
Add test cases to validate the functioanlity
Nuvindu May 6, 2024
9177348
Add test cases for map and array types
Nuvindu May 6, 2024
076a84e
Add test cases for bytes
Nuvindu May 6, 2024
fb87645
Merge branch 'ballerina-platform:main' into revamped
Nuvindu May 6, 2024
8e50f82
Move classes to separate packages
Nuvindu May 9, 2024
17fec3f
Update APIs of the deserializer class
Nuvindu May 9, 2024
83f3cea
Update API of the Serializer classes
Nuvindu May 9, 2024
dab95d3
Update generating serializer classes
Nuvindu May 9, 2024
3120fa0
Add utils functions for union records into separate class
Nuvindu May 9, 2024
0e9429e
Update visitors to generate deserialized values
Nuvindu May 9, 2024
7b4b413
Apply review comments
Nuvindu May 9, 2024
6fe6a3c
Update tests for new use cases
Nuvindu May 9, 2024
527f356
Fix review comment to use type tags
Nuvindu May 9, 2024
5abe679
Update API in Deserializer classes
Nuvindu May 9, 2024
1d06023
Update API to deserialize fixed data
Nuvindu May 9, 2024
a5fef53
Update ser/des classes for primitive types
Nuvindu May 9, 2024
a4d9890
Move utility functions of record APIs to a seperate class
Nuvindu May 9, 2024
67082db
Fix review comments
Nuvindu May 9, 2024
64e73f3
Exclude unconfirmed cast bug by using type tags for type confirmation
Nuvindu May 9, 2024
e09ff1b
Remove unnecessary type tag declarations
Nuvindu May 9, 2024
e2f90c0
Update serializing APIs
Nuvindu May 9, 2024
9ee7488
Add license headers
Nuvindu May 9, 2024
29cb2fc
Fix readonly data support
Nuvindu May 9, 2024
6666d9c
Apply review suggestions
Nuvindu May 9, 2024
e843916
Move large schemas to separate files
Nuvindu May 10, 2024
0db30cb
Fix review comments
Nuvindu May 10, 2024
dc4d1b6
Exclude spotbugs using the method names
Nuvindu May 10, 2024
2e97eb4
Fix a review comment
Nuvindu May 10, 2024
4702208
Change the parameter order in Deserializer classes
Nuvindu May 10, 2024
cd8b207
Remove redundant constructor in Deserializer
Nuvindu May 10, 2024
1423760
Update variable names in tests
Nuvindu May 10, 2024
5e36825
Move redundant codes in test cases to a separate method
Nuvindu May 10, 2024
b81fea9
Fix visitor APIs in Serializer classes
Nuvindu May 13, 2024
8468be6
Fix APIs in Deserializer classes
Nuvindu May 13, 2024
6197f36
Combine deserializing all primtive data types
Nuvindu May 13, 2024
6205b51
Exclude spotbugs to avoid reinitiating field values
Nuvindu May 13, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 3 additions & 9 deletions ballerina/Ballerina.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
org = "ballerina"
name = "avro"
version = "0.1.2"
version = "0.1.3"
authors = ["Ballerina"]
export=["avro"]
keywords = ["avro", "serialization", "deserialization", "serdes"]
Expand All @@ -18,8 +18,8 @@ graalvmCompatible = true
[[platform.java17.dependency]]
groupId = "io.ballerina.lib"
artifactId = "avro-native"
version = "0.1.2"
path = "../native/build/libs/avro-native-0.1.2.jar"
version = "0.1.3"
path = "../native/build/libs/avro-native-0.1.3-SNAPSHOT.jar"

[[platform.java17.dependency]]
groupId = "org.apache.avro"
Expand All @@ -44,9 +44,3 @@ groupId = "com.fasterxml.jackson.core"
artifactId = "jackson-databind"
version = "2.17.0"
path = "./lib/jackson-databind-2.17.0.jar"

[[platform.java11.dependency]]
groupId = "com.fasterxml.jackson.dataformat"
artifactId = "jackson-dataformat-avro"
version = "2.17.0"
path = "./lib/jackson-dataformat-avro-2.17.0.jar"
2 changes: 1 addition & 1 deletion ballerina/Dependencies.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ distribution-version = "2201.9.0"
[[package]]
org = "ballerina"
name = "avro"
version = "0.1.2"
version = "0.1.3"
dependencies = [
{org = "ballerina", name = "io"},
{org = "ballerina", name = "jballerina.java"},
Expand Down
3 changes: 0 additions & 3 deletions ballerina/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,6 @@ dependencies {
externalJars(group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: "${jacksonVersion}") {
transitive = false
}
externalJars(group: 'com.fasterxml.jackson.dataformat', name: 'jackson-dataformat-avro', version: "${jacksonVersion}") {
transitive = false
}
}

task updateTomlFiles {
Expand Down
Loading
Loading