public class TimestampedEvent extends SpecificRecordBase implements SpecificRecord
Modifier and Type | Class and Description |
---|---|
static class |
TimestampedEvent.Builder
RecordBuilder for TimestampedEvent instances.
|
Modifier and Type | Field and Description |
---|---|
Object |
event
Deprecated.
|
static Schema |
SCHEMA$ |
long |
timeStamp
Deprecated.
|
Constructor and Description |
---|
TimestampedEvent()
Default constructor.
|
TimestampedEvent(Long timeStamp,
Object event)
All-args constructor.
|
Modifier and Type | Method and Description |
---|---|
Object |
get(int field$)
Return the value of a field given its position in the schema.
|
static Schema |
getClassSchema() |
Object |
getEvent()
Gets the value of the 'event' field.
|
Schema |
getSchema()
The schema of this instance.
|
Long |
getTimeStamp()
Gets the value of the 'timeStamp' field.
|
static TimestampedEvent.Builder |
newBuilder()
Creates a new TimestampedEvent RecordBuilder
|
static TimestampedEvent.Builder |
newBuilder(TimestampedEvent.Builder other)
Creates a new TimestampedEvent RecordBuilder by copying an existing Builder
|
static TimestampedEvent.Builder |
newBuilder(TimestampedEvent other)
Creates a new TimestampedEvent RecordBuilder by copying an existing TimestampedEvent instance
|
void |
put(int field$,
Object value$)
Set the value of a field given its position in the schema.
|
void |
setEvent(Object value)
Sets the value of the 'event' field.
|
void |
setTimeStamp(Long value)
Sets the value of the 'timeStamp' field.
|
compareTo, equals, hashCode, toString
public static final Schema SCHEMA$
@Deprecated public long timeStamp
@Deprecated public Object event
public static Schema getClassSchema()
public Schema getSchema()
GenericContainer
getSchema
in interface GenericContainer
getSchema
in class SpecificRecordBase
public Object get(int field$)
IndexedRecord
This method is not meant to be called by user code, but only by DatumWriter
implementations.
get
in interface IndexedRecord
get
in class SpecificRecordBase
public void put(int field$, Object value$)
IndexedRecord
This method is not meant to be called by user code, but only by DatumReader
implementations.
put
in interface IndexedRecord
put
in class SpecificRecordBase
public Long getTimeStamp()
public void setTimeStamp(Long value)
value
- the value to set.public Object getEvent()
public void setEvent(Object value)
value
- the value to set.public static TimestampedEvent.Builder newBuilder()
public static TimestampedEvent.Builder newBuilder(TimestampedEvent.Builder other)
public static TimestampedEvent.Builder newBuilder(TimestampedEvent other)
Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.