org.mechio.impl.sensor
Class HeaderRecord.Builder

java.lang.Object
  extended by org.apache.avro.data.RecordBuilderBase<T>
      extended by org.apache.avro.specific.SpecificRecordBuilderBase<HeaderRecord>
          extended by org.mechio.impl.sensor.HeaderRecord.Builder
All Implemented Interfaces:
org.apache.avro.data.RecordBuilder<HeaderRecord>, org.jflux.api.core.Source<HeaderRecord>
Enclosing class:
HeaderRecord

public static class HeaderRecord.Builder
extends org.apache.avro.specific.SpecificRecordBuilderBase<HeaderRecord>
implements org.apache.avro.data.RecordBuilder<HeaderRecord>, org.jflux.api.core.Source<HeaderRecord>

RecordBuilder for HeaderRecord instances.


Method Summary
 HeaderRecord build()
           
 HeaderRecord.Builder clearFrameId()
          Clears the value of the 'frameId' field
 HeaderRecord.Builder clearSequenceId()
          Clears the value of the 'sequenceId' field
 HeaderRecord.Builder clearTimestamp()
          Clears the value of the 'timestamp' field
 Integer getFrameId()
          Gets the value of the 'frameId' field
 Integer getSequenceId()
          Gets the value of the 'sequenceId' field
 Long getTimestamp()
          Gets the value of the 'timestamp' field
 HeaderRecord getValue()
           
 boolean hasFrameId()
          Checks whether the 'frameId' field has been set
 boolean hasSequenceId()
          Checks whether the 'sequenceId' field has been set
 boolean hasTimestamp()
          Checks whether the 'timestamp' field has been set
 HeaderRecord.Builder setFrameId(int value)
          Sets the value of the 'frameId' field
 HeaderRecord.Builder setSequenceId(int value)
          Sets the value of the 'sequenceId' field
 HeaderRecord.Builder setTimestamp(long value)
          Sets the value of the 'timestamp' 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

getTimestamp

public Long getTimestamp()
Gets the value of the 'timestamp' field


setTimestamp

public HeaderRecord.Builder setTimestamp(long value)
Sets the value of the 'timestamp' field


hasTimestamp

public boolean hasTimestamp()
Checks whether the 'timestamp' field has been set


clearTimestamp

public HeaderRecord.Builder clearTimestamp()
Clears the value of the 'timestamp' field


getSequenceId

public Integer getSequenceId()
Gets the value of the 'sequenceId' field


setSequenceId

public HeaderRecord.Builder setSequenceId(int value)
Sets the value of the 'sequenceId' field


hasSequenceId

public boolean hasSequenceId()
Checks whether the 'sequenceId' field has been set


clearSequenceId

public HeaderRecord.Builder clearSequenceId()
Clears the value of the 'sequenceId' field


getFrameId

public Integer getFrameId()
Gets the value of the 'frameId' field


setFrameId

public HeaderRecord.Builder setFrameId(int value)
Sets the value of the 'frameId' field


hasFrameId

public boolean hasFrameId()
Checks whether the 'frameId' field has been set


clearFrameId

public HeaderRecord.Builder clearFrameId()
Clears the value of the 'frameId' field


build

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

getValue

public HeaderRecord getValue()
Specified by:
getValue in interface org.jflux.api.core.Source<HeaderRecord>


Copyright © 2011-2014. All Rights Reserved.