public class Person
extends org.apache.avro.specific.SpecificRecordBase
implements org.apache.avro.specific.SpecificRecord
| Modifier and Type | Class and Description | 
|---|---|
| static class  | Person.BuilderRecordBuilder for Person instances. | 
| Modifier and Type | Field and Description | 
|---|---|
| int | ageDeprecated.  | 
| CharSequence | nameDeprecated.  | 
| static org.apache.avro.Schema | SCHEMA$ | 
| List<CharSequence> | siblingnamesDeprecated.  | 
| 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.GenericContainergetSchema in class org.apache.avro.specific.SpecificRecordBasepublic Object get(int field$)
get in interface org.apache.avro.generic.IndexedRecordget in class org.apache.avro.specific.SpecificRecordBasepublic void put(int field$,
                Object value$)
put in interface org.apache.avro.generic.IndexedRecordput in class org.apache.avro.specific.SpecificRecordBasepublic 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 © 2017 The Apache Software Foundation. All rights reserved.