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 |
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.
|
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)
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 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)
public static AvroFailure.Builder newBuilder(AvroFailure other)
Copyright © 2016 The Apache Software Foundation. All rights reserved.