public class Person extends SpecificRecordBase implements SpecificRecord
| Modifier and Type | Class and Description |
|---|---|
static class |
Person.Builder
RecordBuilder for Person instances.
|
| Modifier and Type | Field and Description |
|---|---|
int |
age
Deprecated.
|
String |
firstname
Deprecated.
|
String |
lastname
Deprecated.
|
String |
phone
Deprecated.
|
static Schema |
SCHEMA$ |
| Constructor and Description |
|---|
Person() |
| Modifier and Type | Method and Description |
|---|---|
Object |
get(int field$) |
Integer |
getAge()
Gets the value of the 'age' field.
|
String |
getFirstname()
Gets the value of the 'firstname' field.
|
String |
getLastname()
Gets the value of the 'lastname' field.
|
String |
getPhone()
Gets the value of the 'phone' field.
|
Schema |
getSchema() |
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 |
setFirstname(String value)
Sets the value of the 'firstname' field.
|
void |
setLastname(String value)
Sets the value of the 'lastname' field.
|
void |
setPhone(String value)
Sets the value of the 'phone' field.
|
public static final Schema SCHEMA$
@Deprecated public String firstname
@Deprecated public String lastname
@Deprecated public String phone
@Deprecated public int age
public Schema getSchema()
getSchema in interface GenericContainergetSchema in class SpecificRecordBasepublic Object get(int field$)
get in interface IndexedRecordget in class SpecificRecordBasepublic void put(int field$,
Object value$)
put in interface IndexedRecordput in class SpecificRecordBasepublic String getFirstname()
public void setFirstname(String value)
value - the value to set.public String getLastname()
public void setLastname(String value)
value - the value to set.public String getPhone()
public void setPhone(String value)
value - the value to set.public Integer getAge()
public void setAge(Integer 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 (c) 2011, 2014 Oracle and/or its affiliates. All rights reserved.