Package | Description |
---|---|
org.apache.avro.io |
Utilities for Encoding and Decoding Avro data.
|
org.apache.avro.io.parsing |
Implementation of Avro schemas as LL(1) grammars.
|
Modifier and Type | Method and Description |
---|---|
Symbol |
JsonEncoder.doAction(Symbol input,
Symbol top) |
Symbol |
JsonDecoder.doAction(Symbol input,
Symbol top) |
Symbol |
ValidatingEncoder.doAction(Symbol input,
Symbol top) |
Symbol |
ValidatingDecoder.doAction(Symbol input,
Symbol top) |
Symbol |
ResolvingDecoder.doAction(Symbol input,
Symbol top) |
Modifier and Type | Method and Description |
---|---|
Symbol |
JsonEncoder.doAction(Symbol input,
Symbol top) |
Symbol |
JsonDecoder.doAction(Symbol input,
Symbol top) |
Symbol |
ValidatingEncoder.doAction(Symbol input,
Symbol top) |
Symbol |
ValidatingDecoder.doAction(Symbol input,
Symbol top) |
Symbol |
ResolvingDecoder.doAction(Symbol input,
Symbol top) |
Constructor and Description |
---|
ParsingDecoder(Symbol root) |
Modifier and Type | Class and Description |
---|---|
static class |
Symbol.Alternative |
static class |
Symbol.DefaultStartAction |
static class |
Symbol.EnumAdjustAction |
static class |
Symbol.EnumLabelsAction |
static class |
Symbol.ErrorAction |
static class |
Symbol.FieldAdjustAction |
static class |
Symbol.FieldOrderAction |
static class |
Symbol.ImplicitAction |
static class |
Symbol.IntCheckAction |
static class |
Symbol.Repeater |
static class |
Symbol.ResolvingAction |
protected static class |
Symbol.Root |
protected static class |
Symbol.Sequence |
static class |
Symbol.SkipAction |
static class |
Symbol.UnionAdjustAction |
static class |
Symbol.WriterUnionAction |
Modifier and Type | Field and Description |
---|---|
static Symbol |
Symbol.ARRAY_END |
static Symbol |
Symbol.ARRAY_START |
static Symbol |
Symbol.BOOLEAN |
static Symbol |
Symbol.BYTES |
static Symbol |
Symbol.DEFAULT_END_ACTION |
static Symbol |
Symbol.DOUBLE |
Symbol |
Symbol.Repeater.end |
static Symbol |
Symbol.ENUM |
static Symbol |
Symbol.FIELD_ACTION |
static Symbol |
Symbol.FIELD_END |
static Symbol |
Symbol.FIXED |
static Symbol |
Symbol.FLOAT |
static Symbol |
Symbol.INT |
static Symbol |
Symbol.ITEM_END |
static Symbol |
Symbol.LONG |
static Symbol |
Symbol.MAP_END |
static Symbol |
Symbol.MAP_KEY_MARKER |
static Symbol |
Symbol.MAP_START |
static Symbol |
Symbol.NULL
The terminal symbols for the grammar.
|
Symbol[] |
Symbol.production
The production for this symbol.
|
Symbol |
Symbol.ResolvingAction.reader |
static Symbol |
Symbol.RECORD_END |
static Symbol |
Symbol.RECORD_START |
protected Symbol[] |
Parser.stack |
static Symbol |
Symbol.STRING |
Symbol[] |
Symbol.Alternative.symbols |
Symbol |
Symbol.UnionAdjustAction.symToParse |
Symbol |
Symbol.SkipAction.symToSkip |
static Symbol |
Symbol.UNION |
static Symbol |
Symbol.UNION_END |
Symbol |
Symbol.ResolvingAction.writer |
Modifier and Type | Method and Description |
---|---|
Symbol |
Parser.advance(Symbol input)
Recursively replaces the symbol at the top of the stack with its
production, until the top is a terminal.
|
Symbol |
Parser.ActionHandler.doAction(Symbol input,
Symbol top)
Handle the action symbol top when the input is
sought to be taken off the stack.
|
Symbol |
Symbol.flatten(Map<Symbol.Sequence,Symbol.Sequence> map,
Map<Symbol.Sequence,List<org.apache.avro.io.parsing.Symbol.Fixup>> map2) |
Symbol |
ValidatingGrammarGenerator.generate(Schema schema)
Returns the non-terminal that is the start symbol
for the grammar for the given schema sc.
|
Symbol |
JsonGrammarGenerator.generate(Schema schema)
Returns the non-terminal that is the start symbol
for the grammar for the grammar for the given schema sc.
|
Symbol |
ValidatingGrammarGenerator.generate(Schema sc,
Map<org.apache.avro.io.parsing.ValidatingGrammarGenerator.LitS,Symbol> seen)
Returns the non-terminal that is the start symbol
for the grammar for the given schema sc.
|
Symbol |
JsonGrammarGenerator.generate(Schema sc,
Map<org.apache.avro.io.parsing.ValidatingGrammarGenerator.LitS,Symbol> seen)
Returns the non-terminal that is the start symbol
for grammar of the given schema sc.
|
Symbol |
ResolvingGrammarGenerator.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 |
ResolvingGrammarGenerator.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.
|
Symbol |
Symbol.Sequence.get(int index) |
Symbol |
Symbol.Alternative.getSymbol(int index) |
Symbol |
Parser.popSymbol()
Pops and returns the top symbol from the stack.
|
Symbol |
Parser.topSymbol()
Returns the top symbol from the stack.
|
Modifier and Type | Method and Description |
---|---|
Iterator<Symbol> |
Symbol.Sequence.iterator() |
Modifier and Type | Method and Description |
---|---|
Symbol |
Parser.advance(Symbol input)
Recursively replaces the symbol at the top of the stack with its
production, until the top is a terminal.
|
Symbol |
Parser.ActionHandler.doAction(Symbol input,
Symbol top)
Handle the action symbol top when the input is
sought to be taken off the stack.
|
protected static int |
Symbol.flattenedSize(Symbol[] symbols,
int start)
Returns the amount of space required to flatten the given
sub-array of symbols.
|
static boolean |
Symbol.hasErrors(Symbol symbol)
Returns true if the Parser contains any Error symbol, indicating that it may fail
for some inputs.
|
void |
Parser.pushProduction(Symbol sym)
Pushes the production for the given symbol sym.
|
void |
Parser.pushSymbol(Symbol sym)
Pushes sym on to the stack.
|
static Symbol.SkipAction |
Symbol.skipAction(Symbol symToSkip) |
void |
SkipParser.skipSymbol(Symbol symToSkip)
Pushes the given symbol on to the skip and skips it.
|
static Symbol.UnionAdjustAction |
Symbol.unionAdjustAction(int rindex,
Symbol sym) |
Modifier and Type | Method and Description |
---|---|
Symbol |
ValidatingGrammarGenerator.generate(Schema sc,
Map<org.apache.avro.io.parsing.ValidatingGrammarGenerator.LitS,Symbol> seen)
Returns the non-terminal that is the start symbol
for the grammar for the given schema sc.
|
Symbol |
JsonGrammarGenerator.generate(Schema sc,
Map<org.apache.avro.io.parsing.ValidatingGrammarGenerator.LitS,Symbol> seen)
Returns the non-terminal that is the start symbol
for grammar of the given schema sc.
|
Symbol |
ResolvingGrammarGenerator.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.
|
Constructor and Description |
---|
Parser(Symbol root,
Parser.ActionHandler symbolHandler) |
SkipParser(Symbol root,
Parser.ActionHandler symbolHandler,
SkipParser.SkipHandler skipHandler) |
Symbol.SkipAction(Symbol symToSkip)
Deprecated.
|
Symbol.UnionAdjustAction(int rindex,
Symbol symToParse)
Deprecated.
|
Symbol(Symbol.Kind kind,
Symbol[] production) |
Copyright © 2009–2016 The Apache Software Foundation. All rights reserved.