public class Attachment
extends org.apache.avro.specific.SpecificRecordBase
implements org.apache.avro.specific.SpecificRecord
| Modifier and Type | Class and Description |
|---|---|
static class |
Attachment.Builder
RecordBuilder for Attachment instances.
|
| Modifier and Type | Field and Description |
|---|---|
static org.apache.avro.Schema |
SCHEMA$ |
| Constructor and Description |
|---|
Attachment()
Default constructor.
|
Attachment(String id,
String contentType,
String language,
String data,
String url,
Integer size,
String hash,
String title,
String creation)
All-args constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static org.apache.avro.message.BinaryMessageDecoder<Attachment> |
createDecoder(org.apache.avro.message.SchemaStore resolver)
Create a new BinaryMessageDecoder instance for this class that uses the specified
SchemaStore. |
static Attachment |
fromByteBuffer(ByteBuffer b)
Deserializes a Attachment from a ByteBuffer.
|
Object |
get(int field$) |
static org.apache.avro.Schema |
getClassSchema() |
String |
getContentType()
Gets the value of the 'contentType' field.
|
String |
getCreation()
Gets the value of the 'creation' field.
|
String |
getData()
Gets the value of the 'data' field.
|
static org.apache.avro.message.BinaryMessageDecoder<Attachment> |
getDecoder()
Return the BinaryMessageDecoder instance used by this class.
|
String |
getHash()
Gets the value of the 'hash' field.
|
String |
getId()
Gets the value of the 'id' field.
|
String |
getLanguage()
Gets the value of the 'language' field.
|
org.apache.avro.Schema |
getSchema() |
Integer |
getSize()
Gets the value of the 'size' field.
|
String |
getTitle()
Gets the value of the 'title' field.
|
String |
getUrl()
Gets the value of the 'url' field.
|
static Attachment.Builder |
newBuilder()
Creates a new Attachment RecordBuilder.
|
static Attachment.Builder |
newBuilder(Attachment.Builder other)
Creates a new Attachment RecordBuilder by copying an existing Builder.
|
static Attachment.Builder |
newBuilder(Attachment other)
Creates a new Attachment RecordBuilder by copying an existing Attachment instance.
|
void |
put(int field$,
Object value$) |
void |
readExternal(ObjectInput in) |
void |
setContentType(String value)
Sets the value of the 'contentType' field.
|
void |
setCreation(String value)
Sets the value of the 'creation' field.
|
void |
setData(String value)
Sets the value of the 'data' field.
|
void |
setHash(String value)
Sets the value of the 'hash' field.
|
void |
setId(String value)
Sets the value of the 'id' field.
|
void |
setLanguage(String value)
Sets the value of the 'language' field.
|
void |
setSize(Integer value)
Sets the value of the 'size' field.
|
void |
setTitle(String value)
Sets the value of the 'title' field.
|
void |
setUrl(String value)
Sets the value of the 'url' field.
|
ByteBuffer |
toByteBuffer()
Serializes this Attachment to a ByteBuffer.
|
void |
writeExternal(ObjectOutput out) |
public Attachment()
newBuilder().public Attachment(String id, String contentType, String language, String data, String url, Integer size, String hash, String title, String creation)
id - Field for FHIR property idcontentType - Field for FHIR property contentTypelanguage - Field for FHIR property languagedata - Field for FHIR property dataurl - Field for FHIR property urlsize - Field for FHIR property sizehash - Field for FHIR property hashtitle - Field for FHIR property titlecreation - Field for FHIR property creationpublic static org.apache.avro.Schema getClassSchema()
public static org.apache.avro.message.BinaryMessageDecoder<Attachment> getDecoder()
public static org.apache.avro.message.BinaryMessageDecoder<Attachment> createDecoder(org.apache.avro.message.SchemaStore resolver)
SchemaStore.resolver - a SchemaStore used to find schemas by fingerprintpublic ByteBuffer toByteBuffer() throws IOException
IOExceptionpublic static Attachment fromByteBuffer(ByteBuffer b) throws IOException
IOExceptionpublic 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 String getId()
public void setId(String value)
value - the value to set.public String getContentType()
public void setContentType(String value)
value - the value to set.public String getLanguage()
public void setLanguage(String value)
value - the value to set.public String getData()
public void setData(String value)
value - the value to set.public String getUrl()
public void setUrl(String value)
value - the value to set.public Integer getSize()
public void setSize(Integer value)
value - the value to set.public String getHash()
public void setHash(String value)
value - the value to set.public String getTitle()
public void setTitle(String value)
value - the value to set.public String getCreation()
public void setCreation(String value)
value - the value to set.public static Attachment.Builder newBuilder()
public static Attachment.Builder newBuilder(Attachment.Builder other)
other - The existing builder to copy.public static Attachment.Builder newBuilder(Attachment 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 © 2020. All rights reserved.