Class GenericEnum

A generic container for Avro enums.

class GenericEnum
  : GenericContainer ;

Constructors

NameDescription
this (schema) Constructs a generic enum according to the given enum-type schema.

Methods

NameDescription
getEnumOrdinal (symbol) Returns the ordinal for the given symbol.
getSymbol (n) Returns the symbol corresponding to ordinal n.
getSymbol () Returns the symbol for the current value of this enum.
getValue () Returns the ordinal for the current value of the enum.
setEnumOrdinal (n) Set the value for the enum according to the given ordinal.
setSymbol (symbol) Set the value for this enum according to the given symbol.