Package org.apache.parquet.avro
Class ShortCar.Builder
- java.lang.Object
-
- org.apache.avro.data.RecordBuilderBase<T>
-
- org.apache.avro.specific.SpecificRecordBuilderBase<ShortCar>
-
- org.apache.parquet.avro.ShortCar.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ShortCarbuild()ShortCar.BuilderclearEngine()Clears the value of the 'engine' field.ShortCar.BuilderclearMake()Clears the value of the 'make' field.ShortCar.BuilderclearVin()Clears the value of the 'vin' field.ShortCar.BuilderclearYear()Clears the value of the 'year' 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.VingetVin()Gets the value of the 'vin' field.longgetYear()Gets the value of the 'year' field.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.booleanhasVin()Checks whether the 'vin' field has been set.booleanhasYear()Checks whether the 'year' field has been set.ShortCar.BuildersetEngine(Engine value)Sets the value of the 'engine' field.ShortCar.BuildersetEngineBuilder(Engine.Builder value)Sets the Builder instance for the 'engine' fieldShortCar.BuildersetMake(String value)Sets the value of the 'make' field.ShortCar.BuildersetVin(Vin value)Sets the value of the 'vin' field.ShortCar.BuildersetYear(long value)Sets the value of the 'year' field.
-
-
-
Method Detail
-
getMake
public String getMake()
Gets the value of the 'make' field.- Returns:
- The value.
-
setMake
public ShortCar.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 ShortCar.Builder clearMake()
Clears the value of the 'make' field.- Returns:
- This builder.
-
getEngine
public Engine getEngine()
Gets the value of the 'engine' field.- Returns:
- The value.
-
setEngine
public ShortCar.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 ShortCar.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 ShortCar.Builder clearEngine()
Clears the value of the 'engine' field.- Returns:
- This builder.
-
getYear
public long getYear()
Gets the value of the 'year' field.- Returns:
- The value.
-
setYear
public ShortCar.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 ShortCar.Builder clearYear()
Clears the value of the 'year' field.- Returns:
- This builder.
-
getVin
public Vin getVin()
Gets the value of the 'vin' field.- Returns:
- The value.
-
setVin
public ShortCar.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 ShortCar.Builder clearVin()
Clears the value of the 'vin' field.- Returns:
- This builder.
-
-