public static class GenericData.EnumSymbol extends Object implements GenericEnumSymbol, Comparable<GenericEnumSymbol>
GenericEnumSymbol
.Constructor and Description |
---|
GenericData.EnumSymbol(Schema schema,
Object symbol)
Maps existing Objects into an Avro enum
by calling toString(), eg for Java Enums
|
GenericData.EnumSymbol(Schema schema,
String symbol) |
public Schema getSchema()
GenericContainer
getSchema
in interface GenericContainer
public String toString()
GenericEnumSymbol
toString
in interface GenericEnumSymbol
toString
in class Object
public int compareTo(GenericEnumSymbol that)
compareTo
in interface Comparable<GenericEnumSymbol>
Copyright © 2009–2016 The Apache Software Foundation. All rights reserved.