org.apache.avro.io.parsing
Class Symbol.EnumLabelsAction

java.lang.Object
  extended by org.apache.avro.io.parsing.Symbol
      extended by org.apache.avro.io.parsing.Symbol.IntCheckAction
          extended by org.apache.avro.io.parsing.Symbol.EnumLabelsAction
Enclosing class:
Symbol

public static class Symbol.EnumLabelsAction
extends Symbol.IntCheckAction

For JSON.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.avro.io.parsing.Symbol
Symbol.Alternative, Symbol.DefaultStartAction, Symbol.EnumAdjustAction, Symbol.EnumLabelsAction, Symbol.ErrorAction, Symbol.FieldAdjustAction, Symbol.FieldOrderAction, Symbol.ImplicitAction, Symbol.IntCheckAction, Symbol.Kind, Symbol.Repeater, Symbol.ResolvingAction, Symbol.Root, Symbol.Sequence, Symbol.SkipAction, Symbol.UnionAdjustAction, Symbol.WriterUnionAction
 
Field Summary
 List<String> symbols
           
 
Fields inherited from class org.apache.avro.io.parsing.Symbol.IntCheckAction
size
 
Fields inherited from class org.apache.avro.io.parsing.Symbol
ARRAY_END, ARRAY_START, BOOLEAN, BYTES, DEFAULT_END_ACTION, DOUBLE, ENUM, FIELD_ACTION, FIXED, FLOAT, INT, ITEM_END, kind, LONG, MAP_END, MAP_KEY_MARKER, MAP_START, NULL, production, RECORD_END, RECORD_START, STRING, UNION, UNION_END
 
Constructor Summary
Symbol.EnumLabelsAction(List<String> symbols)
           
 
Method Summary
 int findLabel(String l)
           
 String getLabel(int n)
           
 
Methods inherited from class org.apache.avro.io.parsing.Symbol
flatten, flattenedSize, flattenedSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

symbols

public final List<String> symbols
Constructor Detail

Symbol.EnumLabelsAction

public Symbol.EnumLabelsAction(List<String> symbols)
Method Detail

getLabel

public String getLabel(int n)

findLabel

public int findLabel(String l)


Copyright © 2010 The Apache Software Foundation