public class NewCar
extends org.apache.avro.specific.SpecificRecordBase
implements org.apache.avro.specific.SpecificRecord
| Modifier and Type | Class and Description |
|---|---|
static class |
NewCar.Builder
RecordBuilder for NewCar instances.
|
| Modifier and Type | Field and Description |
|---|---|
String |
brand
Deprecated.
|
String |
description
Deprecated.
|
long |
doors
Deprecated.
|
Engine |
engine
Deprecated.
|
String |
model
Deprecated.
|
int |
opt
Deprecated.
|
Object |
optionalExtra
Deprecated.
|
String |
registration
Deprecated.
|
static org.apache.avro.Schema |
SCHEMA$ |
List<Service> |
serviceHistory
Deprecated.
|
Vin |
vin
Deprecated.
|
long |
year
Deprecated.
|
| Constructor and Description |
|---|
NewCar()
Default constructor.
|
NewCar(Long year,
String registration,
String brand,
String model,
Vin vin,
Long doors,
Engine engine,
Object optionalExtra,
List<Service> serviceHistory,
Integer opt,
String description)
All-args constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static org.apache.avro.message.BinaryMessageDecoder<NewCar> |
createDecoder(org.apache.avro.message.SchemaStore resolver)
Create a new BinaryMessageDecoder instance for this class that uses the specified
SchemaStore. |
static NewCar |
fromByteBuffer(ByteBuffer b)
Deserializes a NewCar from a ByteBuffer.
|
Object |
get(int field$) |
String |
getBrand()
Gets the value of the 'brand' field.
|
static org.apache.avro.Schema |
getClassSchema() |
static org.apache.avro.message.BinaryMessageDecoder<NewCar> |
getDecoder()
Return the BinaryMessageDecoder instance used by this class.
|
String |
getDescription()
Gets the value of the 'description' field.
|
long |
getDoors()
Gets the value of the 'doors' field.
|
static org.apache.avro.message.BinaryMessageEncoder<NewCar> |
getEncoder()
Return the BinaryMessageEncoder instance used by this class.
|
Engine |
getEngine()
Gets the value of the 'engine' field.
|
String |
getModel()
Gets the value of the 'model' field.
|
int |
getOpt()
Gets the value of the 'opt' field.
|
Object |
getOptionalExtra()
Gets the value of the 'optionalExtra' field.
|
String |
getRegistration()
Gets the value of the 'registration' field.
|
org.apache.avro.Schema |
getSchema() |
List<Service> |
getServiceHistory()
Gets the value of the 'serviceHistory' field.
|
org.apache.avro.specific.SpecificData |
getSpecificData() |
Vin |
getVin()
Gets the value of the 'vin' field.
|
long |
getYear()
Gets the value of the 'year' field.
|
static NewCar.Builder |
newBuilder()
Creates a new NewCar RecordBuilder.
|
static NewCar.Builder |
newBuilder(NewCar.Builder other)
Creates a new NewCar RecordBuilder by copying an existing Builder.
|
static NewCar.Builder |
newBuilder(NewCar other)
Creates a new NewCar RecordBuilder by copying an existing NewCar instance.
|
void |
put(int field$,
Object value$) |
void |
readExternal(ObjectInput in) |
void |
setBrand(String value)
Sets the value of the 'brand' field.
|
void |
setDescription(String value)
Sets the value of the 'description' field.
|
void |
setDoors(long value)
Sets the value of the 'doors' field.
|
void |
setEngine(Engine value)
Sets the value of the 'engine' field.
|
void |
setModel(String value)
Sets the value of the 'model' field.
|
void |
setOpt(int value)
Sets the value of the 'opt' field.
|
void |
setOptionalExtra(Object value)
Sets the value of the 'optionalExtra' field.
|
void |
setRegistration(String value)
Sets the value of the 'registration' field.
|
void |
setServiceHistory(List<Service> value)
Sets the value of the 'serviceHistory' field.
|
void |
setVin(Vin value)
Sets the value of the 'vin' field.
|
void |
setYear(long value)
Sets the value of the 'year' field.
|
ByteBuffer |
toByteBuffer()
Serializes this NewCar to a ByteBuffer.
|
void |
writeExternal(ObjectOutput out) |
public static final org.apache.avro.Schema SCHEMA$
@Deprecated public long year
@Deprecated public String registration
@Deprecated public String brand
@Deprecated public String model
@Deprecated public Vin vin
@Deprecated public long doors
@Deprecated public Engine engine
@Deprecated public Object optionalExtra
@Deprecated public List<Service> serviceHistory
@Deprecated public int opt
@Deprecated public String description
public NewCar()
newBuilder().public NewCar(Long year, String registration, String brand, String model, Vin vin, Long doors, Engine engine, Object optionalExtra, List<Service> serviceHistory, Integer opt, String description)
year - The new value for yearregistration - The new value for registrationbrand - The new value for brandmodel - The new value for modelvin - The new value for vindoors - The new value for doorsengine - The new value for engineoptionalExtra - The new value for optionalExtraserviceHistory - The new value for serviceHistoryopt - The new value for optdescription - The new value for descriptionpublic static org.apache.avro.Schema getClassSchema()
public static org.apache.avro.message.BinaryMessageEncoder<NewCar> getEncoder()
public static org.apache.avro.message.BinaryMessageDecoder<NewCar> getDecoder()
public static org.apache.avro.message.BinaryMessageDecoder<NewCar> 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 NewCar 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()
getSpecificData in class org.apache.avro.specific.SpecificRecordBasepublic 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 getYear()
public void setYear(long value)
value - the value to set.public String getRegistration()
public void setRegistration(String value)
value - the value to set.public String getBrand()
public void setBrand(String value)
value - the value to set.public String getModel()
public void setModel(String value)
value - the value to set.public Vin getVin()
public void setVin(Vin value)
value - the value to set.public long getDoors()
public void setDoors(long value)
value - the value to set.public Engine getEngine()
public void setEngine(Engine value)
value - the value to set.public Object getOptionalExtra()
public void setOptionalExtra(Object value)
value - the value to set.public List<Service> getServiceHistory()
public void setServiceHistory(List<Service> value)
value - the value to set.public int getOpt()
public void setOpt(int value)
value - the value to set.public String getDescription()
public void setDescription(String value)
value - the value to set.public static NewCar.Builder newBuilder()
public static NewCar.Builder newBuilder(NewCar.Builder other)
other - The existing builder to copy.public static NewCar.Builder newBuilder(NewCar 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 © 2021 The Apache Software Foundation. All rights reserved.