Package example.avro
Class Email.Builder
java.lang.Object
org.apache.avro.data.RecordBuilderBase<T>
org.apache.avro.specific.SpecificRecordBuilderBase<Email>
example.avro.Email.Builder
- All Implemented Interfaces:
org.apache.avro.data.RecordBuilder<Email>
- Enclosing class:
public static class Email.Builder
extends org.apache.avro.specific.SpecificRecordBuilderBase<Email>
implements org.apache.avro.data.RecordBuilder<Email>
RecordBuilder for Email instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Clears the value of the 'addressTo' field.Clears the value of the 'text' field.Clears the value of the 'title' field.Gets the value of the 'addressTo' field.getText()Gets the value of the 'text' field.getTitle()Gets the value of the 'title' field.booleanChecks whether the 'addressTo' field has been set.booleanhasText()Checks whether the 'text' field has been set.booleanhasTitle()Checks whether the 'title' field has been set.setAddressTo(CharSequence value) Sets the value of the 'addressTo' field.setText(CharSequence value) Sets the value of the 'text' field.setTitle(CharSequence value) Sets the value of the 'title' field.Methods inherited from class org.apache.avro.data.RecordBuilderBase
data, defaultValue, equals, fields, fieldSetFlags, hashCode, isValidValue, schema, validate
-
Method Details
-
getAddressTo
Gets the value of the 'addressTo' field.- Returns:
- The value.
-
setAddressTo
Sets the value of the 'addressTo' field.- Parameters:
value- The value of 'addressTo'.- Returns:
- This builder.
-
hasAddressTo
public boolean hasAddressTo()Checks whether the 'addressTo' field has been set.- Returns:
- True if the 'addressTo' field has been set, false otherwise.
-
clearAddressTo
Clears the value of the 'addressTo' field.- Returns:
- This builder.
-
getTitle
Gets the value of the 'title' field.- Returns:
- The value.
-
setTitle
Sets the value of the 'title' field.- Parameters:
value- The value of 'title'.- Returns:
- This builder.
-
hasTitle
public boolean hasTitle()Checks whether the 'title' field has been set.- Returns:
- True if the 'title' field has been set, false otherwise.
-
clearTitle
Clears the value of the 'title' field.- Returns:
- This builder.
-
getText
Gets the value of the 'text' field.- Returns:
- The value.
-
setText
Sets the value of the 'text' field.- Parameters:
value- The value of 'text'.- Returns:
- This builder.
-
hasText
public boolean hasText()Checks whether the 'text' field has been set.- Returns:
- True if the 'text' field has been set, false otherwise.
-
clearText
Clears the value of the 'text' field.- Returns:
- This builder.
-
build
- Specified by:
buildin interfaceorg.apache.avro.data.RecordBuilder<Email>
-