public class UserAction
extends org.apache.avro.specific.SpecificRecordBase
implements org.apache.avro.specific.SpecificRecord
| Modifier and Type | Class and Description |
|---|---|
static class |
UserAction.Builder
RecordBuilder for UserAction instances.
|
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.avro.data.TimeConversions.DateConversion |
DATE_CONVERSION |
protected static org.apache.avro.Conversions.DecimalConversion |
DECIMAL_CONVERSION |
CharSequence |
device
Deprecated.
|
org.joda.time.DateTime |
event_date
Deprecated.
|
CharSequence |
event_id
Deprecated.
|
CharSequence |
event_type
Deprecated.
|
CharSequence |
listing_id
Deprecated.
|
static org.apache.avro.Schema |
SCHEMA$ |
CharSequence |
session_id
Deprecated.
|
protected static org.apache.avro.data.TimeConversions.TimeConversion |
TIME_CONVERSION |
protected static org.apache.avro.data.TimeConversions.TimestampConversion |
TIMESTAMP_CONVERSION |
CharSequence |
user_id
Deprecated.
|
| Constructor and Description |
|---|
UserAction()
Default constructor.
|
UserAction(CharSequence event_id,
CharSequence session_id,
CharSequence event_type,
org.joda.time.DateTime event_date,
CharSequence user_id,
CharSequence listing_id,
CharSequence device)
All-args constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static org.apache.avro.message.BinaryMessageDecoder<UserAction> |
createDecoder(org.apache.avro.message.SchemaStore resolver)
Create a new BinaryMessageDecoder instance for this class that uses the specified
SchemaStore. |
static UserAction |
fromByteBuffer(ByteBuffer b)
Deserializes a UserAction from a ByteBuffer.
|
Object |
get(int field$) |
static org.apache.avro.Schema |
getClassSchema() |
org.apache.avro.Conversion<?> |
getConversion(int field) |
static org.apache.avro.message.BinaryMessageDecoder<UserAction> |
getDecoder()
Return the BinaryMessageDecoder instance used by this class.
|
CharSequence |
getDevice()
Gets the value of the 'device' field.
|
org.joda.time.DateTime |
getEventDate()
Gets the value of the 'event_date' field.
|
CharSequence |
getEventId()
Gets the value of the 'event_id' field.
|
CharSequence |
getEventType()
Gets the value of the 'event_type' field.
|
CharSequence |
getListingId()
Gets the value of the 'listing_id' field.
|
org.apache.avro.Schema |
getSchema() |
CharSequence |
getSessionId()
Gets the value of the 'session_id' field.
|
CharSequence |
getUserId()
Gets the value of the 'user_id' field.
|
static UserAction.Builder |
newBuilder()
Creates a new UserAction RecordBuilder.
|
static UserAction.Builder |
newBuilder(UserAction.Builder other)
Creates a new UserAction RecordBuilder by copying an existing Builder.
|
static UserAction.Builder |
newBuilder(UserAction other)
Creates a new UserAction RecordBuilder by copying an existing UserAction instance.
|
void |
put(int field$,
Object value$) |
void |
readExternal(ObjectInput in) |
void |
setDevice(CharSequence value)
Sets the value of the 'device' field.
|
void |
setEventDate(org.joda.time.DateTime value)
Sets the value of the 'event_date' field.
|
void |
setEventId(CharSequence value)
Sets the value of the 'event_id' field.
|
void |
setEventType(CharSequence value)
Sets the value of the 'event_type' field.
|
void |
setListingId(CharSequence value)
Sets the value of the 'listing_id' field.
|
void |
setSessionId(CharSequence value)
Sets the value of the 'session_id' field.
|
void |
setUserId(CharSequence value)
Sets the value of the 'user_id' field.
|
ByteBuffer |
toByteBuffer()
Serializes this UserAction to a ByteBuffer.
|
void |
writeExternal(ObjectOutput out) |
public static final org.apache.avro.Schema SCHEMA$
@Deprecated public CharSequence event_id
@Deprecated public CharSequence session_id
@Deprecated public CharSequence event_type
@Deprecated public org.joda.time.DateTime event_date
@Deprecated public CharSequence user_id
@Deprecated public CharSequence listing_id
@Deprecated public CharSequence device
protected static final org.apache.avro.data.TimeConversions.DateConversion DATE_CONVERSION
protected static final org.apache.avro.data.TimeConversions.TimeConversion TIME_CONVERSION
protected static final org.apache.avro.data.TimeConversions.TimestampConversion TIMESTAMP_CONVERSION
protected static final org.apache.avro.Conversions.DecimalConversion DECIMAL_CONVERSION
public UserAction()
newBuilder().public UserAction(CharSequence event_id, CharSequence session_id, CharSequence event_type, org.joda.time.DateTime event_date, CharSequence user_id, CharSequence listing_id, CharSequence device)
event_id - The new value for event_idsession_id - The new value for session_idevent_type - The new value for event_typeevent_date - The new value for event_dateuser_id - The new value for user_idlisting_id - The new value for listing_iddevice - The new value for devicepublic static org.apache.avro.Schema getClassSchema()
public static org.apache.avro.message.BinaryMessageDecoder<UserAction> getDecoder()
public static org.apache.avro.message.BinaryMessageDecoder<UserAction> createDecoder(org.apache.avro.message.SchemaStore resolver)
SchemaStore.resolver - a SchemaStore used to find schemas by fingerprintpublic ByteBuffer toByteBuffer() throws IOException
IOExceptionpublic static UserAction fromByteBuffer(ByteBuffer b) throws IOException
IOExceptionpublic org.apache.avro.Schema getSchema()
getSchema in interface org.apache.avro.generic.GenericContainergetSchema in class org.apache.avro.specific.SpecificRecordBasepublic Object get(int field$)
get in interface org.apache.avro.generic.IndexedRecordget in class org.apache.avro.specific.SpecificRecordBasepublic org.apache.avro.Conversion<?> getConversion(int field)
getConversion in class org.apache.avro.specific.SpecificRecordBasepublic void put(int field$,
Object value$)
put in interface org.apache.avro.generic.IndexedRecordput in class org.apache.avro.specific.SpecificRecordBasepublic CharSequence getEventId()
public void setEventId(CharSequence value)
value - the value to set.public CharSequence getSessionId()
public void setSessionId(CharSequence value)
value - the value to set.public CharSequence getEventType()
public void setEventType(CharSequence value)
value - the value to set.public org.joda.time.DateTime getEventDate()
public void setEventDate(org.joda.time.DateTime value)
value - the value to set.public CharSequence getUserId()
public void setUserId(CharSequence value)
value - the value to set.public CharSequence getListingId()
public void setListingId(CharSequence value)
value - the value to set.public CharSequence getDevice()
public void setDevice(CharSequence value)
value - the value to set.public static UserAction.Builder newBuilder()
public static UserAction.Builder newBuilder(UserAction.Builder other)
other - The existing builder to copy.public static UserAction.Builder newBuilder(UserAction other)
other - The existing instance to copy.public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizablewriteExternal in class org.apache.avro.specific.SpecificRecordBaseIOExceptionpublic void readExternal(ObjectInput in) throws IOException
readExternal in interface ExternalizablereadExternal in class org.apache.avro.specific.SpecificRecordBaseIOExceptionCopyright © 2017. All rights reserved.