public class AvroExample
extends org.apache.avro.specific.SpecificRecordBase
implements org.apache.avro.specific.SpecificRecord
| Modifier and Type | Class and Description |
|---|---|
static class |
AvroExample.Builder
RecordBuilder for AvroExample instances.
|
| Modifier and Type | Field and Description |
|---|---|
long |
frequency
Deprecated.
|
static org.apache.avro.Schema |
SCHEMA$ |
CharSequence |
word
Deprecated.
|
| Constructor and Description |
|---|
AvroExample()
Default constructor.
|
AvroExample(CharSequence word,
Long frequency)
All-args constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
get(int field$) |
static org.apache.avro.Schema |
getClassSchema() |
Long |
getFrequency()
Gets the value of the 'frequency' field.
|
org.apache.avro.Schema |
getSchema() |
CharSequence |
getWord()
Gets the value of the 'word' field.
|
static AvroExample.Builder |
newBuilder()
Creates a new AvroExample RecordBuilder
|
static AvroExample.Builder |
newBuilder(AvroExample.Builder other)
Creates a new AvroExample RecordBuilder by copying an existing Builder
|
static AvroExample.Builder |
newBuilder(AvroExample other)
Creates a new AvroExample RecordBuilder by copying an existing AvroExample instance
|
void |
put(int field$,
Object value$) |
void |
setFrequency(Long value)
Sets the value of the 'frequency' field.
|
void |
setWord(CharSequence value)
Sets the value of the 'word' field.
|
public static final org.apache.avro.Schema SCHEMA$
@Deprecated public CharSequence word
@Deprecated public long frequency
public AvroExample()
newBuilder().public AvroExample(CharSequence word, Long frequency)
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 getWord()
public void setWord(CharSequence value)
public Long getFrequency()
public void setFrequency(Long value)
public static AvroExample.Builder newBuilder()
public static AvroExample.Builder newBuilder(AvroExample.Builder other)
public static AvroExample.Builder newBuilder(AvroExample other)
Copyright © 2015–2016 Conversant. All rights reserved.