Package org.apache.parquet.avro
Class Service.Builder
- java.lang.Object
-
- org.apache.avro.data.RecordBuilderBase<T>
-
- org.apache.avro.specific.SpecificRecordBuilderBase<Service>
-
- org.apache.parquet.avro.Service.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Servicebuild()Service.BuilderclearDate()Clears the value of the 'date' field.Service.BuilderclearMechanic()Clears the value of the 'mechanic' field.longgetDate()Gets the value of the 'date' field.StringgetMechanic()Gets the value of the 'mechanic' field.booleanhasDate()Checks whether the 'date' field has been set.booleanhasMechanic()Checks whether the 'mechanic' field has been set.Service.BuildersetDate(long value)Sets the value of the 'date' field.Service.BuildersetMechanic(String value)Sets the value of the 'mechanic' field.
-
-
-
Method Detail
-
getDate
public long getDate()
Gets the value of the 'date' field.- Returns:
- The value.
-
setDate
public Service.Builder setDate(long value)
Sets the value of the 'date' field.- Parameters:
value- The value of 'date'.- Returns:
- This builder.
-
hasDate
public boolean hasDate()
Checks whether the 'date' field has been set.- Returns:
- True if the 'date' field has been set, false otherwise.
-
clearDate
public Service.Builder clearDate()
Clears the value of the 'date' field.- Returns:
- This builder.
-
getMechanic
public String getMechanic()
Gets the value of the 'mechanic' field.- Returns:
- The value.
-
setMechanic
public Service.Builder setMechanic(String value)
Sets the value of the 'mechanic' field.- Parameters:
value- The value of 'mechanic'.- Returns:
- This builder.
-
hasMechanic
public boolean hasMechanic()
Checks whether the 'mechanic' field has been set.- Returns:
- True if the 'mechanic' field has been set, false otherwise.
-
clearMechanic
public Service.Builder clearMechanic()
Clears the value of the 'mechanic' field.- Returns:
- This builder.
-
-