Skip to content

Commit

Permalink
feat(avro schema): schemas hierarchy
Browse files Browse the repository at this point in the history
  • Loading branch information
Pakisan committed Apr 13, 2024
1 parent d5a67c7 commit e38fead
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@
/**
* @see <a href="https://avro.apache.org/docs/1.9.0/spec.html#Arrays">Arrays</a>
*/
public class AvroArraySchema {
public class AvroArraySchema extends AvroSchema {

public AvroArraySchema() {
super(AvroSchemaType.ARRAY);
}

@NotNull
@JsonProperty("items")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@
*
* @see <a href="https://avro.apache.org/docs/1.9.0/spec.html#Enums">Enums</a>
*/
public class AvroEnumSchema {
public class AvroEnumSchema extends AvroSchema {

public AvroEnumSchema() {
super(AvroSchemaType.ENUM);
}

@NotNull
@JsonProperty("name")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@
/**
* @see <a href="https://avro.apache.org/docs/1.9.0/spec.html#Arrays">Arrays</a>
*/
public class AvroFixedSchema {
public class AvroFixedSchema extends AvroSchema {

public AvroFixedSchema() {
super(AvroSchemaType.FIXED);
}

@NotNull
@JsonProperty("name")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@
/**
* @see <a href="https://avro.apache.org/docs/1.9.0/spec.html#Maps">Maps</a>
*/
public class AvroMapSchema {
public class AvroMapSchema extends AvroSchema {

public AvroMapSchema() {
super(AvroSchemaType.MAP);
}

@NotNull
@JsonProperty("values")
Expand Down

0 comments on commit e38fead

Please sign in to comment.