Top Description Constructors Methods
org.apache.avro.specific

public abstract Class SpecificRecordBuilderBase<T extends org.apache.avro.specific.SpecificRecord>

extends RecordBuilderBase<T extends SpecificRecord>
Class Inheritance
Imports
org.apache.avro.Schema, org.apache.avro.data.RecordBuilderBase

Abstract base class for specific RecordBuilder implementations. Not thread-safe.

Constructor Summary

AccessConstructor and Description
protected
SpecificRecordBuilderBase(Schema
the schema associated with the record class.
schema
)

Creates a SpecificRecordBuilderBase for building records of the given type.

protected
SpecificRecordBuilderBase(Schema
the schema associated with the record class.
schema
,
SpecificData
the SpecificData associated with the specific record class
model
)

Creates a SpecificRecordBuilderBase for building records of the given type.

protected
SpecificRecordBuilderBase(SpecificRecordBuilderBase<T>
SpecificRecordBuilderBase instance to copy.
other
)

SpecificRecordBuilderBase copy constructor.

protected
SpecificRecordBuilderBase(T
the record instance to copy.
other
)

Creates a SpecificRecordBuilderBase by copying an existing record instance.

Method Summary

Inherited from org.apache.avro.data.RecordBuilderBase:
datadefaultValueequalsfieldsfieldSetFlagshashCodeisValidValueschemavalidate

Constructor Detail

SpecificRecordBuilderBaseback to summary
protected SpecificRecordBuilderBase(Schema schema)

Creates a SpecificRecordBuilderBase for building records of the given type.

Parameters
schema:Schema

the schema associated with the record class.

SpecificRecordBuilderBaseback to summary
protected SpecificRecordBuilderBase(Schema schema, SpecificData model)

Creates a SpecificRecordBuilderBase for building records of the given type.

Parameters
schema:Schema

the schema associated with the record class.

model:SpecificData

the SpecificData associated with the specific record class

SpecificRecordBuilderBaseback to summary
protected SpecificRecordBuilderBase(SpecificRecordBuilderBase<T> other)

SpecificRecordBuilderBase copy constructor.

Parameters
other:SpecificRecordBuilderBase<T>

SpecificRecordBuilderBase instance to copy.

SpecificRecordBuilderBaseback to summary
protected SpecificRecordBuilderBase(T other)

Creates a SpecificRecordBuilderBase by copying an existing record instance.

Parameters
other:T

the record instance to copy.