public static class TimestampedEvent.Builder extends SpecificRecordBuilderBase<TimestampedEvent> implements RecordBuilder<TimestampedEvent>
Modifier and Type | Method and Description |
---|---|
TimestampedEvent |
build()
Constructs a new instance using the values set in the RecordBuilder.
|
TimestampedEvent.Builder |
clearEvent()
Clears the value of the 'event' field
|
TimestampedEvent.Builder |
clearTimeStamp()
Clears the value of the 'timeStamp' field
|
Object |
getEvent()
Gets the value of the 'event' field
|
Long |
getTimeStamp()
Gets the value of the 'timeStamp' field
|
boolean |
hasEvent()
Checks whether the 'event' field has been set
|
boolean |
hasTimeStamp()
Checks whether the 'timeStamp' field has been set
|
TimestampedEvent.Builder |
setEvent(Object value)
Sets the value of the 'event' field
|
TimestampedEvent.Builder |
setTimeStamp(long value)
Sets the value of the 'timeStamp' field
|
data, defaultValue, equals, fields, fieldSetFlags, hashCode, isValidValue, schema, validate
public Long getTimeStamp()
public TimestampedEvent.Builder setTimeStamp(long value)
public boolean hasTimeStamp()
public TimestampedEvent.Builder clearTimeStamp()
public Object getEvent()
public TimestampedEvent.Builder setEvent(Object value)
public boolean hasEvent()
public TimestampedEvent.Builder clearEvent()
public TimestampedEvent build()
RecordBuilder
build
in interface RecordBuilder<TimestampedEvent>
Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.