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 . |
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.
|
org.apache.avro.Schema |
getSchema() |
Long |
getSequenceNumber()
Gets the value of the 'sequenceNumber' field.
|
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.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
public static InnerPayLoadAvro fromByteBuffer(ByteBuffer b) throws IOException
IOException
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
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.