public class ResolvingGrammarGenerator extends ValidatingGrammarGenerator
Constructor and Description |
---|
ResolvingGrammarGenerator() |
Modifier and Type | Method and Description |
---|---|
static void |
encode(Encoder e,
Schema s,
JsonNode n)
Encodes the given Json node n on to the encoder e
according to the schema s.
|
Symbol |
generate(Schema writer,
Schema reader)
Resolves the writer schema writer and the reader schema
reader and returns the start symbol for the grammar generated.
|
Symbol |
generate(Schema writer,
Schema reader,
Map<org.apache.avro.io.parsing.ValidatingGrammarGenerator.LitS,Symbol> seen)
Resolves the writer schema writer and the reader schema
reader and returns the start symbol for the grammar generated.
|
generate, generate
public final Symbol generate(Schema writer, Schema reader) throws IOException
writer
- The schema used by the writerreader
- The schema used by the readerIOException
public Symbol generate(Schema writer, Schema reader, Map<org.apache.avro.io.parsing.ValidatingGrammarGenerator.LitS,Symbol> seen) throws IOException
writer
- The schema used by the writerreader
- The schema used by the readerseen
- The <reader-schema, writer-schema> to symbol
map of start symbols of resolving grammars so far.IOException
public static void encode(Encoder e, Schema s, JsonNode n) throws IOException
e
- The encoder to encode into.s
- The schema for the object being encoded.n
- The Json node to encode.IOException
Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.