|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.avro.specific.SpecificRecordBase org.apache.avro.ipc.trace.TimestampedEvent
public class TimestampedEvent
Nested Class Summary | |
---|---|
static class |
TimestampedEvent.Builder
RecordBuilder for TimestampedEvent instances. |
Field Summary | |
---|---|
Object |
event
Deprecated. |
static Schema |
SCHEMA$
|
long |
timeStamp
Deprecated. |
Constructor Summary | |
---|---|
TimestampedEvent()
|
Method Summary | |
---|---|
Object |
get(int field$)
Return the value of a field given its position in the schema. |
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. |
Methods inherited from class org.apache.avro.specific.SpecificRecordBase |
---|
compareTo, equals, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final Schema SCHEMA$
@Deprecated public long timeStamp
@Deprecated public Object event
Constructor Detail |
---|
public TimestampedEvent()
Method Detail |
---|
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |