public class Employee
extends org.apache.avro.specific.SpecificRecordBase
implements org.apache.avro.specific.SpecificRecord
Modifier and Type | Class and Description |
---|---|
static class |
Employee.Builder
RecordBuilder for Employee instances.
|
Modifier and Type | Field and Description |
---|---|
CharSequence |
department
Deprecated.
|
CharSequence |
name
Deprecated.
|
int |
salary
Deprecated.
|
static org.apache.avro.Schema |
SCHEMA$ |
Constructor and Description |
---|
Employee()
Default constructor.
|
Employee(CharSequence name,
Integer salary,
CharSequence department)
All-args constructor.
|
Modifier and Type | Method and Description |
---|---|
Object |
get(int field$) |
static org.apache.avro.Schema |
getClassSchema() |
CharSequence |
getDepartment()
Gets the value of the 'department' field.
|
CharSequence |
getName()
Gets the value of the 'name' field.
|
Integer |
getSalary()
Gets the value of the 'salary' field.
|
org.apache.avro.Schema |
getSchema() |
static Employee.Builder |
newBuilder()
Creates a new Employee RecordBuilder
|
static Employee.Builder |
newBuilder(Employee.Builder other)
Creates a new Employee RecordBuilder by copying an existing Builder
|
static Employee.Builder |
newBuilder(Employee other)
Creates a new Employee RecordBuilder by copying an existing Employee instance
|
void |
put(int field$,
Object value$) |
void |
setDepartment(CharSequence value)
Sets the value of the 'department' field.
|
void |
setName(CharSequence value)
Sets the value of the 'name' field.
|
void |
setSalary(Integer value)
Sets the value of the 'salary' field.
|
public static final org.apache.avro.Schema SCHEMA$
@Deprecated public CharSequence name
@Deprecated public int salary
@Deprecated public CharSequence department
public Employee()
newBuilder()
.public Employee(CharSequence name, Integer salary, CharSequence department)
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 getSalary()
public void setSalary(Integer value)
value
- the value to set.public CharSequence getDepartment()
public void setDepartment(CharSequence value)
value
- the value to set.public static Employee.Builder newBuilder()
public static Employee.Builder newBuilder(Employee.Builder other)
public static Employee.Builder newBuilder(Employee other)
Copyright © 2016 The Apache Software Foundation. All rights reserved.