public class InnerPayLoadAvro
extends org.apache.avro.specific.SpecificRecordBase
implements org.apache.avro.specific.SpecificRecord
Modifier and Type | Class and Description |
---|---|
static class |
InnerPayLoadAvro.Builder
RecordBuilder for InnerPayLoadAvro instances.
|
Modifier and Type | Field and Description |
---|---|
static org.apache.avro.Schema |
SCHEMA$ |
Constructor and Description |
---|
InnerPayLoadAvro()
Default constructor.
|
InnerPayLoadAvro(Long sequenceNumber)
All-args constructor.
|
Modifier and Type | Method and Description |
---|---|
static org.apache.avro.message.BinaryMessageDecoder<InnerPayLoadAvro> |
createDecoder(org.apache.avro.message.SchemaStore resolver)
Create a new BinaryMessageDecoder instance for this class that uses the specified
SchemaStore . |
void |
customDecode(org.apache.avro.io.ResolvingDecoder in) |
void |
customEncode(org.apache.avro.io.Encoder out) |
static InnerPayLoadAvro |
fromByteBuffer(ByteBuffer b)
Deserializes a InnerPayLoadAvro from a ByteBuffer.
|
Object |
get(int field$) |
static org.apache.avro.Schema |
getClassSchema() |
static org.apache.avro.message.BinaryMessageDecoder<InnerPayLoadAvro> |
getDecoder()
Return the BinaryMessageDecoder instance used by this class.
|
static org.apache.avro.message.BinaryMessageEncoder<InnerPayLoadAvro> |
getEncoder()
Return the BinaryMessageEncoder instance used by this class.
|
org.apache.avro.Schema |
getSchema() |
long |
getSequenceNumber()
Gets the value of the 'sequenceNumber' field.
|
org.apache.avro.specific.SpecificData |
getSpecificData() |
protected boolean |
hasCustomCoders() |
static InnerPayLoadAvro.Builder |
newBuilder()
Creates a new InnerPayLoadAvro RecordBuilder.
|
static InnerPayLoadAvro.Builder |
newBuilder(InnerPayLoadAvro.Builder other)
Creates a new InnerPayLoadAvro RecordBuilder by copying an existing Builder.
|
static InnerPayLoadAvro.Builder |
newBuilder(InnerPayLoadAvro other)
Creates a new InnerPayLoadAvro RecordBuilder by copying an existing InnerPayLoadAvro instance.
|
void |
put(int field$,
Object value$) |
void |
readExternal(ObjectInput in) |
void |
setSequenceNumber(long value)
Sets the value of the 'sequenceNumber' field.
|
ByteBuffer |
toByteBuffer()
Serializes this InnerPayLoadAvro to a ByteBuffer.
|
void |
writeExternal(ObjectOutput out) |
public InnerPayLoadAvro()
newBuilder()
.public InnerPayLoadAvro(Long sequenceNumber)
sequenceNumber
- The new value for sequenceNumberpublic static org.apache.avro.Schema getClassSchema()
public static org.apache.avro.message.BinaryMessageEncoder<InnerPayLoadAvro> getEncoder()
public static org.apache.avro.message.BinaryMessageDecoder<InnerPayLoadAvro> getDecoder()
public static org.apache.avro.message.BinaryMessageDecoder<InnerPayLoadAvro> createDecoder(org.apache.avro.message.SchemaStore resolver)
SchemaStore
.resolver
- a SchemaStore
used to find schemas by fingerprintpublic ByteBuffer toByteBuffer() throws IOException
IOException
- if this instance could not be serializedpublic static InnerPayLoadAvro fromByteBuffer(ByteBuffer b) throws IOException
b
- a byte buffer holding serialized data for an instance of this classIOException
- if the given bytes could not be deserialized into an instance of this classpublic org.apache.avro.specific.SpecificData getSpecificData()
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 long getSequenceNumber()
public void setSequenceNumber(long value)
value
- the value to set.public static InnerPayLoadAvro.Builder newBuilder()
public static InnerPayLoadAvro.Builder newBuilder(InnerPayLoadAvro.Builder other)
other
- The existing builder to copy.public static InnerPayLoadAvro.Builder newBuilder(InnerPayLoadAvro other)
other
- The existing instance to copy.public void writeExternal(ObjectOutput out) throws IOException
IOException
public void readExternal(ObjectInput in) throws IOException
IOException
protected boolean hasCustomCoders()
public void customEncode(org.apache.avro.io.Encoder out) throws IOException
IOException
public void customDecode(org.apache.avro.io.ResolvingDecoder in) throws IOException
IOException
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.