public class ResolvingGrammarGenerator extends ValidatingGrammarGenerator
Constructor and Description |
---|
ResolvingGrammarGenerator() |
Modifier and Type | Method and Description |
---|---|
static void |
encode(Encoder e,
Schema s,
org.codehaus.jackson.JsonNode n)
Deprecated.
internal method
|
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
@Deprecated public static void encode(Encoder e, Schema s, org.codehaus.jackson.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–2017 The Apache Software Foundation. All rights reserved.