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()
GenericContainergetSchema in interface GenericContainerpublic String toString()
GenericEnumSymboltoString in interface GenericEnumSymbol<GenericData.EnumSymbol>toString in class Objectpublic int compareTo(GenericData.EnumSymbol that)
compareTo in interface Comparable<GenericData.EnumSymbol>Copyright © 2009–2023 The Apache Software Foundation. All rights reserved.