public class Unions
extends org.apache.avro.specific.SpecificRecordBase
implements org.apache.avro.specific.SpecificRecord
| Modifier and Type | Class and Description |
|---|---|
static class |
Unions.Builder
RecordBuilder for Unions instances.
|
| Modifier and Type | Field and Description |
|---|---|
static org.apache.avro.Schema |
SCHEMA$ |
java.lang.Integer |
union1
Deprecated.
|
Union2 |
union2
Deprecated.
|
java.util.List<java.lang.Boolean> |
union3
Deprecated.
|
java.util.Map<java.lang.CharSequence,java.lang.CharSequence> |
union4
Deprecated.
|
java.lang.Float |
union5
Deprecated.
|
java.lang.Double |
union6
Deprecated.
|
| Constructor and Description |
|---|
Unions()
Default constructor.
|
Unions(java.lang.Integer union1,
Union2 union2,
java.util.List<java.lang.Boolean> union3,
java.util.Map<java.lang.CharSequence,java.lang.CharSequence> union4,
java.lang.Float union5,
java.lang.Double union6)
All-args constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
get(int field$) |
static org.apache.avro.Schema |
getClassSchema() |
org.apache.avro.Schema |
getSchema() |
java.lang.Integer |
getUnion1()
Gets the value of the 'union1' field.
|
Union2 |
getUnion2()
Gets the value of the 'union2' field.
|
java.util.List<java.lang.Boolean> |
getUnion3()
Gets the value of the 'union3' field.
|
java.util.Map<java.lang.CharSequence,java.lang.CharSequence> |
getUnion4()
Gets the value of the 'union4' field.
|
java.lang.Float |
getUnion5()
Gets the value of the 'union5' field.
|
java.lang.Double |
getUnion6()
Gets the value of the 'union6' field.
|
static Unions.Builder |
newBuilder()
Creates a new Unions RecordBuilder
|
static Unions.Builder |
newBuilder(Unions.Builder other)
Creates a new Unions RecordBuilder by copying an existing Builder
|
static Unions.Builder |
newBuilder(Unions other)
Creates a new Unions RecordBuilder by copying an existing Unions instance
|
void |
put(int field$,
java.lang.Object value$) |
void |
setUnion1(java.lang.Integer value)
Sets the value of the 'union1' field.
|
void |
setUnion2(Union2 value)
Sets the value of the 'union2' field.
|
void |
setUnion3(java.util.List<java.lang.Boolean> value)
Sets the value of the 'union3' field.
|
void |
setUnion4(java.util.Map<java.lang.CharSequence,java.lang.CharSequence> value)
Sets the value of the 'union4' field.
|
void |
setUnion5(java.lang.Float value)
Sets the value of the 'union5' field.
|
void |
setUnion6(java.lang.Double value)
Sets the value of the 'union6' field.
|
public static final org.apache.avro.Schema SCHEMA$
@Deprecated public java.lang.Integer union1
@Deprecated public Union2 union2
@Deprecated public java.util.List<java.lang.Boolean> union3
@Deprecated public java.util.Map<java.lang.CharSequence,java.lang.CharSequence> union4
@Deprecated public java.lang.Float union5
@Deprecated public java.lang.Double union6
public Unions()
newBuilder().public Unions(java.lang.Integer union1,
Union2 union2,
java.util.List<java.lang.Boolean> union3,
java.util.Map<java.lang.CharSequence,java.lang.CharSequence> union4,
java.lang.Float union5,
java.lang.Double union6)
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 java.lang.Integer getUnion1()
public void setUnion1(java.lang.Integer value)
value - the value to set.public Union2 getUnion2()
public void setUnion2(Union2 value)
value - the value to set.public java.util.List<java.lang.Boolean> getUnion3()
public void setUnion3(java.util.List<java.lang.Boolean> value)
value - the value to set.public java.util.Map<java.lang.CharSequence,java.lang.CharSequence> getUnion4()
public void setUnion4(java.util.Map<java.lang.CharSequence,java.lang.CharSequence> value)
value - the value to set.public java.lang.Float getUnion5()
public void setUnion5(java.lang.Float value)
value - the value to set.public java.lang.Double getUnion6()
public void setUnion6(java.lang.Double value)
value - the value to set.public static Unions.Builder newBuilder()
public static Unions.Builder newBuilder(Unions.Builder other)
public static Unions.Builder newBuilder(Unions other)