Skip to content

Commit

Permalink
AVRO-1524: update documents
Browse files Browse the repository at this point in the history
  • Loading branch information
databius committed Nov 2, 2023
1 parent 7b2d368 commit e8ac07c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
11 changes: 5 additions & 6 deletions doc/content/en/docs/++version++/IDL Language/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,19 +66,18 @@ A Maven plugin is also provided to generate _.java_, _.avpr_ and _.avsc_ files f
<executions>
<execution>
<goals>
<goal>idl</goal>
<goal>idl2java</goal>
</goals>
</execution>
</executions>
<configuration>
<generateJava>true</generateJava>
<generateProtocol>false</generateProtocol>
<generateSchema>true</generateSchema>
</configuration>
</plugin>
</plugins>
</build>
```
goals:
- `idl2java`: Generate Java classes and interfaces (.java) from AvroIDL files (.avdl)
- `idl2protocol`: Generate JSON Avro protocol files (.avpr) from AvroIDL files (.avdl)
- `idl2schema`: Generate JSON Avro schema files (.avsc) from AvroIDL files (.avdl)
## Defining a Schema in Avro IDL
An Avro IDL file consists of exactly one (main) schema definition. The minimal schema is defined by the following code:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import java.io.IOException;

/**
* Generate Java classes and interfaces from AvroIDL files (.avdl)
* Generate Java classes and interfaces (.java) from AvroIDL files (.avdl)
*
* @goal idl2java
* @requiresDependencyResolution runtime
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
import static org.apache.avro.compiler.specific.SpecificCompiler.mangleTypeIdentifier;

/**
* Generate Java classes and interfaces from AvroIDL files (.avdl)
* Generate JSON Avro protocol files (.avpr) from AvroIDL files (.avdl)
*
* @goal idl2protocol
* @requiresDependencyResolution runtime
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
import static org.apache.avro.compiler.specific.SpecificCompiler.mangleTypeIdentifier;

/**
* Generate Java classes and interfaces from AvroIDL files (.avdl)
* Generate JSON Avro schema files (.avsc) from AvroIDL files (.avdl)
*
* @goal idl2schema
* @requiresDependencyResolution runtime
Expand Down

0 comments on commit e8ac07c

Please sign in to comment.