Package | Description |
---|---|
org.apache.avro |
Avro kernel classes.
|
org.apache.avro.compiler.idl | |
org.apache.avro.compiler.specific | |
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.
|
Modifier and Type | Method and Description |
---|---|
Protocol |
Idl.CompilationUnit()
The input to Idl is a CompilationUnit, which is currently
just a single Protocol.
|
Protocol |
Idl.ImportIdl() |
Protocol |
Idl.ImportProtocol() |
Protocol |
Idl.ProtocolDeclaration() |
Modifier and Type | Method and Description |
---|---|
Protocol.Message |
Idl.MessageDeclaration(Protocol p,
Map<String,org.codehaus.jackson.JsonNode> props) |
void |
Idl.ProtocolBody(Protocol p) |
Constructor and Description |
---|
SpecificCompiler(Protocol protocol) |
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-2012 Apache Software Foundation. All Rights Reserved.