org.apache.hadoop.io.serializer.avro
Class AvroRecord.Builder

java.lang.Object
  extended by org.apache.avro.data.RecordBuilderBase<T>
      extended by org.apache.avro.specific.SpecificRecordBuilderBase<AvroRecord>
          extended by org.apache.hadoop.io.serializer.avro.AvroRecord.Builder
All Implemented Interfaces:
org.apache.avro.data.RecordBuilder<AvroRecord>
Enclosing class:
AvroRecord

public static class AvroRecord.Builder
extends org.apache.avro.specific.SpecificRecordBuilderBase<AvroRecord>
implements org.apache.avro.data.RecordBuilder<AvroRecord>

RecordBuilder for AvroRecord instances.


Method Summary
 AvroRecord build()
           
 AvroRecord.Builder clearIntField()
          Clears the value of the 'intField' field
 Integer getIntField()
          Gets the value of the 'intField' field
 boolean hasIntField()
          Checks whether the 'intField' field has been set
 AvroRecord.Builder setIntField(int value)
          Sets the value of the 'intField' field
 
Methods inherited from class org.apache.avro.data.RecordBuilderBase
data, defaultValue, equals, fields, fieldSetFlags, hashCode, isValidValue, schema, validate
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getIntField

public Integer getIntField()
Gets the value of the 'intField' field


setIntField

public AvroRecord.Builder setIntField(int value)
Sets the value of the 'intField' field


hasIntField

public boolean hasIntField()
Checks whether the 'intField' field has been set


clearIntField

public AvroRecord.Builder clearIntField()
Clears the value of the 'intField' field


build

public AvroRecord build()
Specified by:
build in interface org.apache.avro.data.RecordBuilder<AvroRecord>


Copyright © 2014 Apache Software Foundation. All Rights Reserved.