public class Enums
extends org.apache.avro.specific.SpecificRecordBase
implements org.apache.avro.specific.SpecificRecord
| Modifier and Type | Class and Description |
|---|---|
static class |
Enums.Builder
RecordBuilder for Enums instances.
|
| Modifier and Type | Field and Description |
|---|---|
Enum1 |
enum1
Deprecated.
|
Enum2 |
enum2
Deprecated.
|
Enum3 |
enum3
Deprecated.
|
java.util.List<Enum4> |
enum4
Deprecated.
|
static org.apache.avro.Schema |
SCHEMA$ |
| Constructor and Description |
|---|
Enums()
Default constructor.
|
Enums(Enum1 enum1,
Enum2 enum2,
Enum3 enum3,
java.util.List<Enum4> enum4)
All-args constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
get(int field$) |
static org.apache.avro.Schema |
getClassSchema() |
Enum1 |
getEnum1()
Gets the value of the 'enum1' field.
|
Enum2 |
getEnum2()
Gets the value of the 'enum2' field.
|
Enum3 |
getEnum3()
Gets the value of the 'enum3' field.
|
java.util.List<Enum4> |
getEnum4()
Gets the value of the 'enum4' field.
|
org.apache.avro.Schema |
getSchema() |
static Enums.Builder |
newBuilder()
Creates a new Enums RecordBuilder
|
static Enums.Builder |
newBuilder(Enums.Builder other)
Creates a new Enums RecordBuilder by copying an existing Builder
|
static Enums.Builder |
newBuilder(Enums other)
Creates a new Enums RecordBuilder by copying an existing Enums instance
|
void |
put(int field$,
java.lang.Object value$) |
void |
setEnum1(Enum1 value)
Sets the value of the 'enum1' field.
|
void |
setEnum2(Enum2 value)
Sets the value of the 'enum2' field.
|
void |
setEnum3(Enum3 value)
Sets the value of the 'enum3' field.
|
void |
setEnum4(java.util.List<Enum4> value)
Sets the value of the 'enum4' field.
|
public static final org.apache.avro.Schema SCHEMA$
@Deprecated public Enum1 enum1
@Deprecated public Enum2 enum2
@Deprecated public Enum3 enum3
@Deprecated public java.util.List<Enum4> enum4
public Enums()
newBuilder().public static org.apache.avro.Schema getClassSchema()
public org.apache.avro.Schema getSchema()
getSchema in interface org.apache.avro.generic.GenericContainergetSchema in class org.apache.avro.specific.SpecificRecordBasepublic java.lang.Object get(int field$)
get in interface org.apache.avro.generic.IndexedRecordget in class org.apache.avro.specific.SpecificRecordBasepublic void put(int field$,
java.lang.Object value$)
put in interface org.apache.avro.generic.IndexedRecordput in class org.apache.avro.specific.SpecificRecordBasepublic Enum1 getEnum1()
public void setEnum1(Enum1 value)
value - the value to set.public Enum2 getEnum2()
public void setEnum2(Enum2 value)
value - the value to set.public Enum3 getEnum3()
public void setEnum3(Enum3 value)
value - the value to set.public java.util.List<Enum4> getEnum4()
public void setEnum4(java.util.List<Enum4> value)
value - the value to set.public static Enums.Builder newBuilder()
public static Enums.Builder newBuilder(Enums.Builder other)
public static Enums.Builder newBuilder(Enums other)