public class BridgeInterop extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord
| Modifier and Type | Class and Description |
|---|---|
static class |
BridgeInterop.Builder
RecordBuilder for BridgeInterop instances.
|
| Modifier and Type | Field and Description |
|---|---|
Object |
message
Deprecated.
|
MessageType |
messageType
Deprecated.
|
static org.apache.avro.Schema |
SCHEMA$ |
long |
sequence
Deprecated.
|
| Constructor and Description |
|---|
BridgeInterop()
Default constructor.
|
BridgeInterop(Long sequence,
MessageType messageType,
Object message)
All-args constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
get(int field$) |
static org.apache.avro.Schema |
getClassSchema() |
Object |
getMessage()
Gets the value of the 'message' field.
|
MessageType |
getMessageType()
Gets the value of the 'messageType' field.
|
org.apache.avro.Schema |
getSchema() |
Long |
getSequence()
Gets the value of the 'sequence' field.
|
static BridgeInterop.Builder |
newBuilder()
Creates a new BridgeInterop RecordBuilder.
|
static BridgeInterop.Builder |
newBuilder(BridgeInterop.Builder other)
Creates a new BridgeInterop RecordBuilder by copying an existing Builder.
|
static BridgeInterop.Builder |
newBuilder(BridgeInterop other)
Creates a new BridgeInterop RecordBuilder by copying an existing BridgeInterop instance.
|
void |
put(int field$,
Object value$) |
void |
readExternal(ObjectInput in) |
void |
setMessage(Object value)
Sets the value of the 'message' field.
|
void |
setMessageType(MessageType value)
Sets the value of the 'messageType' field.
|
void |
setSequence(Long value)
Sets the value of the 'sequence' field.
|
void |
writeExternal(ObjectOutput out) |
public static final org.apache.avro.Schema SCHEMA$
@Deprecated public long sequence
@Deprecated public MessageType messageType
@Deprecated public Object message
public BridgeInterop()
newBuilder().public BridgeInterop(Long sequence, MessageType messageType, Object message)
sequence - The unique squence identifier of the message in the protocol stream.messageType - The type of the bridge Java/CLR interop message.message - A union which contains the actual message.public 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 Long getSequence()
public void setSequence(Long value)
value - the value to set.public MessageType getMessageType()
public void setMessageType(MessageType value)
value - the value to set.public Object getMessage()
public void setMessage(Object value)
value - the value to set.public static BridgeInterop.Builder newBuilder()
public static BridgeInterop.Builder newBuilder(BridgeInterop.Builder other)
other - The existing builder to copy.public static BridgeInterop.Builder newBuilder(BridgeInterop 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.