public class AvroNode
extends org.apache.avro.specific.SpecificRecordBase
implements org.apache.avro.specific.SpecificRecord
| Modifier and Type | Class and Description |
|---|---|
static class |
AvroNode.Builder
RecordBuilder for AvroNode instances.
|
| Modifier and Type | Field and Description |
|---|---|
AvroPrimitive |
common
Deprecated.
|
double |
latitude
Deprecated.
|
double |
longitude
Deprecated.
|
static org.apache.avro.Schema |
SCHEMA$ |
| Constructor and Description |
|---|
AvroNode()
Default constructor.
|
AvroNode(AvroPrimitive common,
Double latitude,
Double longitude)
All-args constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
get(int field$) |
static org.apache.avro.Schema |
getClassSchema() |
AvroPrimitive |
getCommon()
Gets the value of the 'common' field.
|
Double |
getLatitude()
Gets the value of the 'latitude' field.
|
Double |
getLongitude()
Gets the value of the 'longitude' field.
|
org.apache.avro.Schema |
getSchema() |
static AvroNode.Builder |
newBuilder()
Creates a new AvroNode RecordBuilder
|
static AvroNode.Builder |
newBuilder(AvroNode.Builder other)
Creates a new AvroNode RecordBuilder by copying an existing Builder
|
static AvroNode.Builder |
newBuilder(AvroNode other)
Creates a new AvroNode RecordBuilder by copying an existing AvroNode instance
|
void |
put(int field$,
Object value$) |
void |
setCommon(AvroPrimitive value)
Sets the value of the 'common' field.
|
void |
setLatitude(Double value)
Sets the value of the 'latitude' field.
|
void |
setLongitude(Double value)
Sets the value of the 'longitude' field.
|
public static final org.apache.avro.Schema SCHEMA$
@Deprecated public AvroPrimitive common
@Deprecated public double latitude
@Deprecated public double longitude
public AvroNode()
newBuilder().public AvroNode(AvroPrimitive common, Double latitude, Double longitude)
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 AvroPrimitive getCommon()
public void setCommon(AvroPrimitive value)
value - the value to set.public Double getLatitude()
public void setLatitude(Double value)
value - the value to set.public Double getLongitude()
public void setLongitude(Double value)
value - the value to set.public static AvroNode.Builder newBuilder()
public static AvroNode.Builder newBuilder(AvroNode.Builder other)
public static AvroNode.Builder newBuilder(AvroNode other)
Copyright © 2013–2019. All rights reserved.