-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new helper module, full avro 1.4-1.9 support (#22)
* new helper module, full avro 1.4-1.9 support this commit includes the following: - new helper module build has a sub-module per major version of avro which compiles natively vs the target avro version. this eliminates the need for reflection in _most_ use cases. cases involving optional avro-compiler jar still rely on reflection - helper code now implemented across all major avro versions from 1.4 to 1.9 inclusive - code generation support has been extended to cover above avro versions - tests are now performed with multiple classpaths, including variants with and without the avro-compiler jar (on avro 1.5+) Signed-off-by: Radai Rosenblatt <[email protected]>
- Loading branch information
1 parent
abbe76f
commit 3365e27
Showing
199 changed files
with
10,014 additions
and
249 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Avro Codegen | ||
========= | ||
|
||
This module contains utility classes for generating java classes out of avro schema (*.avsc) files | ||
|
||
Major features include: | ||
|
||
* the ability to reuse ("import") schemas defined in either other *.avsc files in the same | ||
code generation scope of schemas defined by classes on the classpath when generating code, | ||
allowing for schema reuse inside and between large projects | ||
* the ability to generate java code for specific records that is runtime-compatible with a | ||
wide range of avro versions, allowing to reuse the same libraries of schemas between | ||
projects that use different versions of avro | ||
|
||
instructions and examples TBD |
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 |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
|
||
plugins { | ||
id "java-library" | ||
id "checkstyle" | ||
} | ||
|
||
dependencies { | ||
|
6 changes: 6 additions & 0 deletions
6
avro-codegen/src/main/java/com/linkedin/avro/codegen/ClassifiedIssue.java
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
avro-codegen/src/main/java/com/linkedin/avro/codegen/ClasspathFishingResults.java
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
avro-codegen/src/main/java/com/linkedin/avro/codegen/FileParseIssue.java
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
avro-codegen/src/main/java/com/linkedin/avro/codegen/IssueType.java
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
avro-codegen/src/main/java/com/linkedin/avro/codegen/SchemaDetails.java
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
avro-codegen/src/main/java/com/linkedin/avro/codegen/SchemaSource.java
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
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,12 @@ | ||
avro-fastserde | ||
========= | ||
|
||
This is a fork of https://github.com/RTBHOUSE/avro-fastserde | ||
|
||
Notable features include: | ||
|
||
* The code has been altered to support multiple major versions of avro at runtime (by using | ||
the helper module) | ||
* various performance improvements to array fields? | ||
|
||
instructions and examples TBD |
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 |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
|
||
plugins { | ||
id "java-library" | ||
id "checkstyle" | ||
} | ||
|
||
configurations { | ||
|
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
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
24 changes: 24 additions & 0 deletions
24
avro-migration-helper/src/main/java/org/apache/avro/io/avro18/Avro18BinaryData.java
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
24 changes: 24 additions & 0 deletions
24
avro-migration-helper/src/main/java/org/apache/avro/io/avro18/Avro18BinaryEncoder.java
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
...migration-helper/src/main/java/org/apache/avro/io/avro18/Avro18BufferedBinaryEncoder.java
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.