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 |
readExternal(ObjectInput in) |
void |
setKey(CharSequence value)
Sets the value of the 'key' field.
|
void |
setValue(CharSequence value)
Sets the value of the 'value' field.
|
void |
writeExternal(ObjectOutput out) |
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)
key
- The new value for keyvalue
- The new value for valuepublic 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)
other
- The existing builder to copy.public static HeaderEntry.Builder newBuilder(HeaderEntry other)
other
- The existing instance to copy.public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class org.apache.avro.specific.SpecificRecordBase
IOException
public void readExternal(ObjectInput in) throws IOException
readExternal
in interface Externalizable
readExternal
in class org.apache.avro.specific.SpecificRecordBase
IOException
Copyright © 2017 The Apache Software Foundation. All rights reserved.