public class Person
extends org.apache.avro.specific.SpecificRecordBase
implements org.apache.avro.specific.SpecificRecord
Modifier and Type | Class and Description |
---|---|
static class |
Person.Builder
RecordBuilder for Person instances.
|
Modifier and Type | Field and Description |
---|---|
int |
age
Deprecated.
|
CharSequence |
name
Deprecated.
|
static org.apache.avro.Schema |
SCHEMA$ |
List<CharSequence> |
siblingnames
Deprecated.
|
Constructor and Description |
---|
Person()
Default constructor.
|
Person(CharSequence name,
Integer age,
List<CharSequence> siblingnames)
All-args constructor.
|
Modifier and Type | Method and Description |
---|---|
Object |
get(int field$) |
Integer |
getAge()
Gets the value of the 'age' field.
|
static org.apache.avro.Schema |
getClassSchema() |
CharSequence |
getName()
Gets the value of the 'name' field.
|
org.apache.avro.Schema |
getSchema() |
List<CharSequence> |
getSiblingnames()
Gets the value of the 'siblingnames' field.
|
static Person.Builder |
newBuilder()
Creates a new Person RecordBuilder
|
static Person.Builder |
newBuilder(Person.Builder other)
Creates a new Person RecordBuilder by copying an existing Builder
|
static Person.Builder |
newBuilder(Person other)
Creates a new Person RecordBuilder by copying an existing Person instance
|
void |
put(int field$,
Object value$) |
void |
setAge(Integer value)
Sets the value of the 'age' field.
|
void |
setName(CharSequence value)
Sets the value of the 'name' field.
|
void |
setSiblingnames(List<CharSequence> value)
Sets the value of the 'siblingnames' field.
|
public static final org.apache.avro.Schema SCHEMA$
@Deprecated public CharSequence name
@Deprecated public int age
@Deprecated public List<CharSequence> siblingnames
public Person()
newBuilder()
.public Person(CharSequence name, Integer age, List<CharSequence> siblingnames)
public static org.apache.avro.Schema getClassSchema()
public org.apache.avro.Schema getSchema()
getSchema
in interface org.apache.avro.generic.GenericContainer
getSchema
in class org.apache.avro.specific.SpecificRecordBase
public Object get(int field$)
get
in interface org.apache.avro.generic.IndexedRecord
get
in class org.apache.avro.specific.SpecificRecordBase
public void put(int field$, Object value$)
put
in interface org.apache.avro.generic.IndexedRecord
put
in class org.apache.avro.specific.SpecificRecordBase
public CharSequence getName()
public void setName(CharSequence value)
value
- the value to set.public Integer getAge()
public void setAge(Integer value)
value
- the value to set.public List<CharSequence> getSiblingnames()
public void setSiblingnames(List<CharSequence> value)
value
- the value to set.public static Person.Builder newBuilder()
public static Person.Builder newBuilder(Person.Builder other)
public static Person.Builder newBuilder(Person other)
Copyright © 2016 The Apache Software Foundation. All rights reserved.