public class AvroFailure extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord
| Modifier and Type | Class and Description |
|---|---|
static class |
AvroFailure.Builder
RecordBuilder for AvroFailure instances.
|
| Modifier and Type | Field and Description |
|---|---|
CharSequence |
asError
Deprecated.
|
ByteBuffer |
data
Deprecated.
|
CharSequence |
description
Deprecated.
|
CharSequence |
id
Deprecated.
|
CharSequence |
message
Deprecated.
|
CharSequence |
reason
Deprecated.
|
static org.apache.avro.Schema |
SCHEMA$ |
| Constructor and Description |
|---|
AvroFailure()
Default constructor.
|
AvroFailure(CharSequence id,
CharSequence message,
CharSequence description,
CharSequence reason,
ByteBuffer data,
CharSequence asError)
All-args constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
get(int field$) |
CharSequence |
getAsError()
Gets the value of the 'asError' field.
|
static org.apache.avro.Schema |
getClassSchema() |
ByteBuffer |
getData()
Gets the value of the 'data' field.
|
CharSequence |
getDescription()
Gets the value of the 'description' field.
|
CharSequence |
getId()
Gets the value of the 'id' field.
|
CharSequence |
getMessage()
Gets the value of the 'message' field.
|
CharSequence |
getReason()
Gets the value of the 'reason' field.
|
org.apache.avro.Schema |
getSchema() |
static AvroFailure.Builder |
newBuilder()
Creates a new AvroFailure RecordBuilder.
|
static AvroFailure.Builder |
newBuilder(AvroFailure.Builder other)
Creates a new AvroFailure RecordBuilder by copying an existing Builder.
|
static AvroFailure.Builder |
newBuilder(AvroFailure other)
Creates a new AvroFailure RecordBuilder by copying an existing AvroFailure instance.
|
void |
put(int field$,
Object value$) |
void |
readExternal(ObjectInput in) |
void |
setAsError(CharSequence value)
Sets the value of the 'asError' field.
|
void |
setData(ByteBuffer value)
Sets the value of the 'data' field.
|
void |
setDescription(CharSequence value)
Sets the value of the 'description' field.
|
void |
setId(CharSequence value)
Sets the value of the 'id' field.
|
void |
setMessage(CharSequence value)
Sets the value of the 'message' field.
|
void |
setReason(CharSequence value)
Sets the value of the 'reason' field.
|
void |
writeExternal(ObjectOutput out) |
public static final org.apache.avro.Schema SCHEMA$
@Deprecated public CharSequence id
@Deprecated public CharSequence message
@Deprecated public CharSequence description
@Deprecated public CharSequence reason
@Deprecated public ByteBuffer data
@Deprecated public CharSequence asError
public AvroFailure()
newBuilder().public AvroFailure(CharSequence id, CharSequence message, CharSequence description, CharSequence reason, ByteBuffer data, CharSequence asError)
id - The new value for idmessage - The new value for messagedescription - The new value for descriptionreason - The new value for reasondata - The new value for dataasError - The new value for asErrorpublic 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 getId()
public void setId(CharSequence value)
value - the value to set.public CharSequence getMessage()
public void setMessage(CharSequence value)
value - the value to set.public CharSequence getDescription()
public void setDescription(CharSequence value)
value - the value to set.public CharSequence getReason()
public void setReason(CharSequence value)
value - the value to set.public ByteBuffer getData()
public void setData(ByteBuffer value)
value - the value to set.public CharSequence getAsError()
public void setAsError(CharSequence value)
value - the value to set.public static AvroFailure.Builder newBuilder()
public static AvroFailure.Builder newBuilder(AvroFailure.Builder other)
other - The existing builder to copy.public static AvroFailure.Builder newBuilder(AvroFailure other)
other - The existing instance to copy.public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizablewriteExternal in class org.apache.avro.specific.SpecificRecordBaseIOExceptionpublic void readExternal(ObjectInput in) throws IOException
readExternal in interface ExternalizablereadExternal in class org.apache.avro.specific.SpecificRecordBaseIOExceptionCopyright © 2017 The Apache Software Foundation. All rights reserved.