| Modifier and Type | Field and Description |
|---|---|
| private final GenericData | |
| private final Schema. | |
| private final boolean[] | |
| private final Schema |
| Access | Constructor and Description |
|---|---|
| protected | RecordBuilderBase(Schema
the schema associated with the record class. schema, GenericData data)Creates a RecordBuilderBase for building records of the given type. |
| protected | RecordBuilderBase(RecordBuilderBase<T>
RecordBuilderBase instance to copy. other, GenericData data)RecordBuilderBase copy constructor. |
| Modifier and Type | Method and Description |
|---|---|
| protected final GenericData | |
| protected Object | Returns: the default value associated with the given field, or null if none is specified in the schema.the field whose default value should be retrieved. fieldGets the default value of the given field, if any. |
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. |
| protected final Schema. | |
| protected final boolean[] | |
| public int | |
| protected static boolean | Returns: true if the value is valid for the given field; false otherwise.the field for which to test the value. f,the value to test. value)Tests whether a value is valid for a specified field. |
| protected final Schema | |
| protected void |
| data | back to summary |
|---|---|
| private final GenericData data | |
| fields | back to summary |
|---|---|
| private final Schema. | |
| fieldSetFlags | back to summary |
|---|---|
| private final boolean[] fieldSetFlags | |
| schema | back to summary |
|---|---|
| private final Schema schema | |
| RecordBuilderBase | back to summary |
|---|---|
| protected RecordBuilderBase(Schema schema, GenericData data) Creates a RecordBuilderBase for building records of the given type.
| |
| RecordBuilderBase | back to summary |
|---|---|
| protected RecordBuilderBase(RecordBuilderBase<T> other, GenericData data) RecordBuilderBase copy constructor. Makes a deep copy of the values in the other builder.
| |
| data | back to summary |
|---|---|
| protected final GenericData data() | |
| defaultValue | back to summary |
|---|---|
| protected Object defaultValue(Schema. Gets the default value of the given field, if any.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| fields | back to summary |
|---|---|
| protected final Schema. | |
| fieldSetFlags | back to summary |
|---|---|
| protected final boolean[] fieldSetFlags() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isValidValue | back to summary |
|---|---|
| protected static boolean isValidValue(Schema. Tests whether a value is valid for a specified field. | |
| schema | back to summary |
|---|---|
| protected final Schema schema() | |
| validate | back to summary |
|---|---|
| protected void validate(Schema. Validates that a particular value for a given field is valid according to the following algorithm: 1. If the value is not null, or the field type is null, or the field type is a union which accepts nulls, returns. 2. Else, if the field has a default value, returns. 3. Otherwise throws AvroRuntimeException.
| |