Package org.apache.parquet.avro
Class Car.Builder
- java.lang.Object
-
- org.apache.avro.data.RecordBuilderBase<T>
-
- org.apache.avro.specific.SpecificRecordBuilderBase<Car>
-
- org.apache.parquet.avro.Car.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Carbuild()Car.BuilderclearDoors()Clears the value of the 'doors' field.Car.BuilderclearEngine()Clears the value of the 'engine' field.Car.BuilderclearMake()Clears the value of the 'make' field.Car.BuilderclearModel()Clears the value of the 'model' field.Car.BuilderclearOptionalExtra()Clears the value of the 'optionalExtra' field.Car.BuilderclearRegistration()Clears the value of the 'registration' field.Car.BuilderclearServiceHistory()Clears the value of the 'serviceHistory' field.Car.BuilderclearVin()Clears the value of the 'vin' field.Car.BuilderclearYear()Clears the value of the 'year' field.intgetDoors()Gets the value of the 'doors' field.EnginegetEngine()Gets the value of the 'engine' field.Engine.BuildergetEngineBuilder()Gets the Builder instance for the 'engine' field and creates one if it doesn't exist yet.StringgetMake()Gets the value of the 'make' field.StringgetModel()Gets the value of the 'model' field.ObjectgetOptionalExtra()Gets the value of the 'optionalExtra' field.StringgetRegistration()Gets the value of the 'registration' field.List<Service>getServiceHistory()Gets the value of the 'serviceHistory' field.VingetVin()Gets the value of the 'vin' field.longgetYear()Gets the value of the 'year' field.booleanhasDoors()Checks whether the 'doors' field has been set.booleanhasEngine()Checks whether the 'engine' field has been set.booleanhasEngineBuilder()Checks whether the 'engine' field has an active Builder instancebooleanhasMake()Checks whether the 'make' field has been set.booleanhasModel()Checks whether the 'model' field has been set.booleanhasOptionalExtra()Checks whether the 'optionalExtra' field has been set.booleanhasRegistration()Checks whether the 'registration' field has been set.booleanhasServiceHistory()Checks whether the 'serviceHistory' field has been set.booleanhasVin()Checks whether the 'vin' field has been set.booleanhasYear()Checks whether the 'year' field has been set.Car.BuildersetDoors(int value)Sets the value of the 'doors' field.Car.BuildersetEngine(Engine value)Sets the value of the 'engine' field.Car.BuildersetEngineBuilder(Engine.Builder value)Sets the Builder instance for the 'engine' fieldCar.BuildersetMake(String value)Sets the value of the 'make' field.Car.BuildersetModel(String value)Sets the value of the 'model' field.Car.BuildersetOptionalExtra(Object value)Sets the value of the 'optionalExtra' field.Car.BuildersetRegistration(String value)Sets the value of the 'registration' field.Car.BuildersetServiceHistory(List<Service> value)Sets the value of the 'serviceHistory' field.Car.BuildersetVin(Vin value)Sets the value of the 'vin' field.Car.BuildersetYear(long value)Sets the value of the 'year' field.
-
-
-
Method Detail
-
getYear
public long getYear()
Gets the value of the 'year' field.- Returns:
- The value.
-
setYear
public Car.Builder setYear(long value)
Sets the value of the 'year' field.- Parameters:
value- The value of 'year'.- Returns:
- This builder.
-
hasYear
public boolean hasYear()
Checks whether the 'year' field has been set.- Returns:
- True if the 'year' field has been set, false otherwise.
-
clearYear
public Car.Builder clearYear()
Clears the value of the 'year' field.- Returns:
- This builder.
-
getRegistration
public String getRegistration()
Gets the value of the 'registration' field.- Returns:
- The value.
-
setRegistration
public Car.Builder setRegistration(String value)
Sets the value of the 'registration' field.- Parameters:
value- The value of 'registration'.- Returns:
- This builder.
-
hasRegistration
public boolean hasRegistration()
Checks whether the 'registration' field has been set.- Returns:
- True if the 'registration' field has been set, false otherwise.
-
clearRegistration
public Car.Builder clearRegistration()
Clears the value of the 'registration' field.- Returns:
- This builder.
-
getMake
public String getMake()
Gets the value of the 'make' field.- Returns:
- The value.
-
setMake
public Car.Builder setMake(String value)
Sets the value of the 'make' field.- Parameters:
value- The value of 'make'.- Returns:
- This builder.
-
hasMake
public boolean hasMake()
Checks whether the 'make' field has been set.- Returns:
- True if the 'make' field has been set, false otherwise.
-
clearMake
public Car.Builder clearMake()
Clears the value of the 'make' field.- Returns:
- This builder.
-
getModel
public String getModel()
Gets the value of the 'model' field.- Returns:
- The value.
-
setModel
public Car.Builder setModel(String value)
Sets the value of the 'model' field.- Parameters:
value- The value of 'model'.- Returns:
- This builder.
-
hasModel
public boolean hasModel()
Checks whether the 'model' field has been set.- Returns:
- True if the 'model' field has been set, false otherwise.
-
clearModel
public Car.Builder clearModel()
Clears the value of the 'model' field.- Returns:
- This builder.
-
getVin
public Vin getVin()
Gets the value of the 'vin' field.- Returns:
- The value.
-
setVin
public Car.Builder setVin(Vin value)
Sets the value of the 'vin' field.- Parameters:
value- The value of 'vin'.- Returns:
- This builder.
-
hasVin
public boolean hasVin()
Checks whether the 'vin' field has been set.- Returns:
- True if the 'vin' field has been set, false otherwise.
-
clearVin
public Car.Builder clearVin()
Clears the value of the 'vin' field.- Returns:
- This builder.
-
getDoors
public int getDoors()
Gets the value of the 'doors' field.- Returns:
- The value.
-
setDoors
public Car.Builder setDoors(int value)
Sets the value of the 'doors' field.- Parameters:
value- The value of 'doors'.- Returns:
- This builder.
-
hasDoors
public boolean hasDoors()
Checks whether the 'doors' field has been set.- Returns:
- True if the 'doors' field has been set, false otherwise.
-
clearDoors
public Car.Builder clearDoors()
Clears the value of the 'doors' field.- Returns:
- This builder.
-
getEngine
public Engine getEngine()
Gets the value of the 'engine' field.- Returns:
- The value.
-
setEngine
public Car.Builder setEngine(Engine value)
Sets the value of the 'engine' field.- Parameters:
value- The value of 'engine'.- Returns:
- This builder.
-
hasEngine
public boolean hasEngine()
Checks whether the 'engine' field has been set.- Returns:
- True if the 'engine' field has been set, false otherwise.
-
getEngineBuilder
public Engine.Builder getEngineBuilder()
Gets the Builder instance for the 'engine' field and creates one if it doesn't exist yet.- Returns:
- This builder.
-
setEngineBuilder
public Car.Builder setEngineBuilder(Engine.Builder value)
Sets the Builder instance for the 'engine' field- Parameters:
value- The builder instance that must be set.- Returns:
- This builder.
-
hasEngineBuilder
public boolean hasEngineBuilder()
Checks whether the 'engine' field has an active Builder instance- Returns:
- True if the 'engine' field has an active Builder instance
-
clearEngine
public Car.Builder clearEngine()
Clears the value of the 'engine' field.- Returns:
- This builder.
-
getOptionalExtra
public Object getOptionalExtra()
Gets the value of the 'optionalExtra' field.- Returns:
- The value.
-
setOptionalExtra
public Car.Builder setOptionalExtra(Object value)
Sets the value of the 'optionalExtra' field.- Parameters:
value- The value of 'optionalExtra'.- Returns:
- This builder.
-
hasOptionalExtra
public boolean hasOptionalExtra()
Checks whether the 'optionalExtra' field has been set.- Returns:
- True if the 'optionalExtra' field has been set, false otherwise.
-
clearOptionalExtra
public Car.Builder clearOptionalExtra()
Clears the value of the 'optionalExtra' field.- Returns:
- This builder.
-
getServiceHistory
public List<Service> getServiceHistory()
Gets the value of the 'serviceHistory' field.- Returns:
- The value.
-
setServiceHistory
public Car.Builder setServiceHistory(List<Service> value)
Sets the value of the 'serviceHistory' field.- Parameters:
value- The value of 'serviceHistory'.- Returns:
- This builder.
-
hasServiceHistory
public boolean hasServiceHistory()
Checks whether the 'serviceHistory' field has been set.- Returns:
- True if the 'serviceHistory' field has been set, false otherwise.
-
clearServiceHistory
public Car.Builder clearServiceHistory()
Clears the value of the 'serviceHistory' field.- Returns:
- This builder.
-
-