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, generatepublic final Symbol generate(Schema writer, Schema reader) throws IOException
writer - The schema used by the writerreader - The schema used by the readerIOExceptionpublic 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.IOExceptionpublic 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.IOExceptionCopyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.