| Package | Description |
|---|---|
| org.apache.avro |
Avro kernel classes.
|
| org.apache.avro.reflect |
Use Java reflection to generate schemas and protocols for existing
classes.
|
| org.apache.avro.specific |
Generate specific Java classes for schemas and protocols.
|
| Modifier and Type | Method and Description |
|---|---|
static Protocol |
Protocol.parse(File file)
Read a protocol from a Json file.
|
static Protocol |
Protocol.parse(InputStream stream)
Read a protocol from a Json stream.
|
static Protocol |
Protocol.parse(String string)
Read a protocol from a Json string.
|
static Protocol |
Protocol.parse(String string,
String... more)
Read a protocol from one or more json strings
|
| Constructor and Description |
|---|
Protocol(Protocol p)
Constructs a similar Protocol instance with the same
name,
doc, and namespace as {code p} has. |
| Modifier and Type | Method and Description |
|---|---|
Protocol |
ReflectData.getProtocol(Class iface)
Return the protocol for a Java interface.
|
| Modifier and Type | Method and Description |
|---|---|
Protocol |
SpecificData.getProtocol(Class iface)
Return the protocol for a Java interface.
|
Copyright © 2009–2023 The Apache Software Foundation. All rights reserved.