public class ConfigurationEntry extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord
Modifier and Type | Class and Description |
---|---|
static class |
ConfigurationEntry.Builder
RecordBuilder for ConfigurationEntry instances.
|
Modifier and Type | Field and Description |
---|---|
CharSequence |
key
Deprecated.
|
static org.apache.avro.Schema |
SCHEMA$ |
CharSequence |
value
Deprecated.
|
Constructor and Description |
---|
ConfigurationEntry()
Default constructor.
|
ConfigurationEntry(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 ConfigurationEntry.Builder |
newBuilder()
Creates a new ConfigurationEntry RecordBuilder.
|
static ConfigurationEntry.Builder |
newBuilder(ConfigurationEntry.Builder other)
Creates a new ConfigurationEntry RecordBuilder by copying an existing Builder.
|
static ConfigurationEntry.Builder |
newBuilder(ConfigurationEntry other)
Creates a new ConfigurationEntry RecordBuilder by copying an existing ConfigurationEntry 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 ConfigurationEntry()
newBuilder()
.public ConfigurationEntry(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 ConfigurationEntry.Builder newBuilder()
public static ConfigurationEntry.Builder newBuilder(ConfigurationEntry.Builder other)
other
- The existing builder to copy.public static ConfigurationEntry.Builder newBuilder(ConfigurationEntry 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.