public class Command
extends org.apache.avro.specific.SpecificRecordBase
implements org.apache.avro.specific.SpecificRecord
Modifier and Type | Class and Description |
---|---|
static class |
Command.Builder
RecordBuilder for Command instances.
|
Modifier and Type | Field and Description |
---|---|
CharSequence |
correlationId
Deprecated.
|
Object |
payload
Deprecated.
|
static org.apache.avro.Schema |
SCHEMA$ |
CharSequence |
type
Deprecated.
|
Constructor and Description |
---|
Command()
Default constructor.
|
Command(CharSequence type,
CharSequence correlationId,
Object payload)
All-args constructor.
|
Modifier and Type | Method and Description |
---|---|
Object |
get(int field$) |
static org.apache.avro.Schema |
getClassSchema() |
CharSequence |
getCorrelationId()
Gets the value of the 'correlationId' field.
|
Object |
getPayload()
Gets the value of the 'payload' field.
|
org.apache.avro.Schema |
getSchema() |
CharSequence |
getType()
Gets the value of the 'type' field.
|
static Command.Builder |
newBuilder()
Creates a new Command RecordBuilder.
|
static Command.Builder |
newBuilder(Command.Builder other)
Creates a new Command RecordBuilder by copying an existing Builder.
|
static Command.Builder |
newBuilder(Command other)
Creates a new Command RecordBuilder by copying an existing Command instance.
|
void |
put(int field$,
Object value$) |
void |
readExternal(ObjectInput in) |
void |
setCorrelationId(CharSequence value)
Sets the value of the 'correlationId' field.
|
void |
setPayload(Object value)
Sets the value of the 'payload' field.
|
void |
setType(CharSequence value)
Sets the value of the 'type' field.
|
void |
writeExternal(ObjectOutput out) |
public static final org.apache.avro.Schema SCHEMA$
@Deprecated public CharSequence type
@Deprecated public CharSequence correlationId
@Deprecated public Object payload
public Command()
newBuilder()
.public Command(CharSequence type, CharSequence correlationId, Object payload)
type
- The new value for typecorrelationId
- The new value for correlationIdpayload
- The new value for payloadpublic 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 getType()
public void setType(CharSequence value)
value
- the value to set.public CharSequence getCorrelationId()
public void setCorrelationId(CharSequence value)
value
- the value to set.public Object getPayload()
public void setPayload(Object value)
value
- the value to set.public static Command.Builder newBuilder()
public static Command.Builder newBuilder(Command.Builder other)
other
- The existing builder to copy.public static Command.Builder newBuilder(Command 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 © 2019 Pivotal Software, Inc.. All rights reserved.