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