public class SampledData
extends org.apache.avro.specific.SpecificRecordBase
implements org.apache.avro.specific.SpecificRecord
| Modifier and Type | Class and Description |
|---|---|
static class |
SampledData.Builder
RecordBuilder for SampledData instances.
|
| Modifier and Type | Field and Description |
|---|---|
static org.apache.avro.Schema |
SCHEMA$ |
| Constructor and Description |
|---|
SampledData()
Default constructor.
|
SampledData(String id,
Quantity origin,
BigDecimal period,
BigDecimal factor,
BigDecimal lowerLimit,
BigDecimal upperLimit,
Integer dimensions,
String data)
All-args constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static org.apache.avro.message.BinaryMessageDecoder<SampledData> |
createDecoder(org.apache.avro.message.SchemaStore resolver)
Create a new BinaryMessageDecoder instance for this class that uses the specified
SchemaStore. |
static SampledData |
fromByteBuffer(ByteBuffer b)
Deserializes a SampledData from a ByteBuffer.
|
Object |
get(int field$) |
static org.apache.avro.Schema |
getClassSchema() |
String |
getData()
Gets the value of the 'data' field.
|
static org.apache.avro.message.BinaryMessageDecoder<SampledData> |
getDecoder()
Return the BinaryMessageDecoder instance used by this class.
|
Integer |
getDimensions()
Gets the value of the 'dimensions' field.
|
BigDecimal |
getFactor()
Gets the value of the 'factor' field.
|
String |
getId()
Gets the value of the 'id' field.
|
BigDecimal |
getLowerLimit()
Gets the value of the 'lowerLimit' field.
|
Quantity |
getOrigin()
Gets the value of the 'origin' field.
|
BigDecimal |
getPeriod()
Gets the value of the 'period' field.
|
org.apache.avro.Schema |
getSchema() |
BigDecimal |
getUpperLimit()
Gets the value of the 'upperLimit' field.
|
static SampledData.Builder |
newBuilder()
Creates a new SampledData RecordBuilder.
|
static SampledData.Builder |
newBuilder(SampledData.Builder other)
Creates a new SampledData RecordBuilder by copying an existing Builder.
|
static SampledData.Builder |
newBuilder(SampledData other)
Creates a new SampledData RecordBuilder by copying an existing SampledData instance.
|
void |
put(int field$,
Object value$) |
void |
readExternal(ObjectInput in) |
void |
setData(String value)
Sets the value of the 'data' field.
|
void |
setDimensions(Integer value)
Sets the value of the 'dimensions' field.
|
void |
setFactor(BigDecimal value)
Sets the value of the 'factor' field.
|
void |
setId(String value)
Sets the value of the 'id' field.
|
void |
setLowerLimit(BigDecimal value)
Sets the value of the 'lowerLimit' field.
|
void |
setOrigin(Quantity value)
Sets the value of the 'origin' field.
|
void |
setPeriod(BigDecimal value)
Sets the value of the 'period' field.
|
void |
setUpperLimit(BigDecimal value)
Sets the value of the 'upperLimit' field.
|
ByteBuffer |
toByteBuffer()
Serializes this SampledData to a ByteBuffer.
|
void |
writeExternal(ObjectOutput out) |
public SampledData()
newBuilder().public SampledData(String id, Quantity origin, BigDecimal period, BigDecimal factor, BigDecimal lowerLimit, BigDecimal upperLimit, Integer dimensions, String data)
id - Field for FHIR property idorigin - Field for FHIR property originperiod - Field for FHIR property periodfactor - Field for FHIR property factorlowerLimit - Field for FHIR property lowerLimitupperLimit - Field for FHIR property upperLimitdimensions - Field for FHIR property dimensionsdata - Field for FHIR property datapublic static org.apache.avro.Schema getClassSchema()
public static org.apache.avro.message.BinaryMessageDecoder<SampledData> getDecoder()
public static org.apache.avro.message.BinaryMessageDecoder<SampledData> createDecoder(org.apache.avro.message.SchemaStore resolver)
SchemaStore.resolver - a SchemaStore used to find schemas by fingerprintpublic ByteBuffer toByteBuffer() throws IOException
IOExceptionpublic static SampledData 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 Quantity getOrigin()
public void setOrigin(Quantity value)
value - the value to set.public BigDecimal getPeriod()
public void setPeriod(BigDecimal value)
value - the value to set.public BigDecimal getFactor()
public void setFactor(BigDecimal value)
value - the value to set.public BigDecimal getLowerLimit()
public void setLowerLimit(BigDecimal value)
value - the value to set.public BigDecimal getUpperLimit()
public void setUpperLimit(BigDecimal value)
value - the value to set.public Integer getDimensions()
public void setDimensions(Integer value)
value - the value to set.public String getData()
public void setData(String value)
value - the value to set.public static SampledData.Builder newBuilder()
public static SampledData.Builder newBuilder(SampledData.Builder other)
other - The existing builder to copy.public static SampledData.Builder newBuilder(SampledData 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.