public class AvroPrimitive
extends org.apache.avro.specific.SpecificRecordBase
implements org.apache.avro.specific.SpecificRecord
| Modifier and Type | Class and Description |
|---|---|
static class |
AvroPrimitive.Builder
RecordBuilder for AvroPrimitive instances.
|
| Modifier and Type | Field and Description |
|---|---|
long |
changeset_id
Deprecated.
|
long |
id
Deprecated.
|
static org.apache.avro.Schema |
SCHEMA$ |
Map<String,String> |
tags
Deprecated.
|
long |
timestamp
Deprecated.
|
Long |
user_id
Deprecated.
|
String |
user_name
Deprecated.
|
long |
version
Deprecated.
|
boolean |
visible
Deprecated.
|
| Constructor and Description |
|---|
AvroPrimitive()
Default constructor.
|
AvroPrimitive(Long id,
Long version,
Long timestamp,
Long user_id,
String user_name,
Long changeset_id,
Boolean visible,
Map<String,String> tags)
All-args constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
get(int field$) |
Long |
getChangesetId()
Gets the value of the 'changeset_id' field.
|
static org.apache.avro.Schema |
getClassSchema() |
Long |
getId()
Gets the value of the 'id' field.
|
org.apache.avro.Schema |
getSchema() |
Map<String,String> |
getTags()
Gets the value of the 'tags' field.
|
Long |
getTimestamp()
Gets the value of the 'timestamp' field.
|
Long |
getUserId()
Gets the value of the 'user_id' field.
|
String |
getUserName()
Gets the value of the 'user_name' field.
|
Long |
getVersion()
Gets the value of the 'version' field.
|
Boolean |
getVisible()
Gets the value of the 'visible' field.
|
static AvroPrimitive.Builder |
newBuilder()
Creates a new AvroPrimitive RecordBuilder
|
static AvroPrimitive.Builder |
newBuilder(AvroPrimitive.Builder other)
Creates a new AvroPrimitive RecordBuilder by copying an existing Builder
|
static AvroPrimitive.Builder |
newBuilder(AvroPrimitive other)
Creates a new AvroPrimitive RecordBuilder by copying an existing AvroPrimitive instance
|
void |
put(int field$,
Object value$) |
void |
setChangesetId(Long value)
Sets the value of the 'changeset_id' field.
|
void |
setId(Long value)
Sets the value of the 'id' field.
|
void |
setTags(Map<String,String> value)
Sets the value of the 'tags' field.
|
void |
setTimestamp(Long value)
Sets the value of the 'timestamp' field.
|
void |
setUserId(Long value)
Sets the value of the 'user_id' field.
|
void |
setUserName(String value)
Sets the value of the 'user_name' field.
|
void |
setVersion(Long value)
Sets the value of the 'version' field.
|
void |
setVisible(Boolean value)
Sets the value of the 'visible' field.
|
public static final org.apache.avro.Schema SCHEMA$
@Deprecated public long id
@Deprecated public long version
@Deprecated public long timestamp
@Deprecated public Long user_id
@Deprecated public String user_name
@Deprecated public long changeset_id
@Deprecated public boolean visible
@Deprecated public Map<String,String> tags
public AvroPrimitive()
newBuilder().public static org.apache.avro.Schema getClassSchema()
public 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 void put(int field$,
Object value$)
put in interface org.apache.avro.generic.IndexedRecordput in class org.apache.avro.specific.SpecificRecordBasepublic Long getId()
public void setId(Long value)
value - the value to set.public Long getVersion()
public void setVersion(Long value)
value - the value to set.public Long getTimestamp()
public void setTimestamp(Long value)
value - the value to set.public Long getUserId()
public void setUserId(Long value)
value - the value to set.public String getUserName()
public void setUserName(String value)
value - the value to set.public Long getChangesetId()
public void setChangesetId(Long value)
value - the value to set.public Boolean getVisible()
public void setVisible(Boolean value)
value - the value to set.public void setTags(Map<String,String> value)
value - the value to set.public static AvroPrimitive.Builder newBuilder()
public static AvroPrimitive.Builder newBuilder(AvroPrimitive.Builder other)
public static AvroPrimitive.Builder newBuilder(AvroPrimitive other)
Copyright © 2013–2019. All rights reserved.