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