public class Primitives
extends org.apache.avro.specific.SpecificRecordBase
implements org.apache.avro.specific.SpecificRecord
| Modifier and Type | Class and Description |
|---|---|
static class |
Primitives.Builder
RecordBuilder for Primitives instances.
|
| Modifier and Type | Field and Description |
|---|---|
boolean |
b
Deprecated.
|
java.nio.ByteBuffer |
by
Deprecated.
|
double |
d
Deprecated.
|
float |
f
Deprecated.
|
int |
i
Deprecated.
|
long |
l
Deprecated.
|
java.lang.Void |
n
Deprecated.
|
java.lang.CharSequence |
s
Deprecated.
|
static org.apache.avro.Schema |
SCHEMA$ |
| Constructor and Description |
|---|
Primitives()
Default constructor.
|
Primitives(java.lang.Integer i,
java.lang.Long l,
java.lang.CharSequence s,
java.lang.Boolean b,
java.lang.Float f,
java.lang.Double d,
java.lang.Void n,
java.nio.ByteBuffer by)
All-args constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
get(int field$) |
java.lang.Boolean |
getB()
Gets the value of the 'b' field.
|
java.nio.ByteBuffer |
getBy()
Gets the value of the 'by' field.
|
static org.apache.avro.Schema |
getClassSchema() |
java.lang.Double |
getD()
Gets the value of the 'd' field.
|
java.lang.Float |
getF()
Gets the value of the 'f' field.
|
java.lang.Integer |
getI()
Gets the value of the 'i' field.
|
java.lang.Long |
getL()
Gets the value of the 'l' field.
|
java.lang.Void |
getN()
Gets the value of the 'n' field.
|
java.lang.CharSequence |
getS()
Gets the value of the 's' field.
|
org.apache.avro.Schema |
getSchema() |
static Primitives.Builder |
newBuilder()
Creates a new Primitives RecordBuilder
|
static Primitives.Builder |
newBuilder(Primitives.Builder other)
Creates a new Primitives RecordBuilder by copying an existing Builder
|
static Primitives.Builder |
newBuilder(Primitives other)
Creates a new Primitives RecordBuilder by copying an existing Primitives instance
|
void |
put(int field$,
java.lang.Object value$) |
void |
setB(java.lang.Boolean value)
Sets the value of the 'b' field.
|
void |
setBy(java.nio.ByteBuffer value)
Sets the value of the 'by' field.
|
void |
setD(java.lang.Double value)
Sets the value of the 'd' field.
|
void |
setF(java.lang.Float value)
Sets the value of the 'f' field.
|
void |
setI(java.lang.Integer value)
Sets the value of the 'i' field.
|
void |
setL(java.lang.Long value)
Sets the value of the 'l' field.
|
void |
setN(java.lang.Void value)
Sets the value of the 'n' field.
|
void |
setS(java.lang.CharSequence value)
Sets the value of the 's' field.
|
public static final org.apache.avro.Schema SCHEMA$
@Deprecated public int i
@Deprecated public long l
@Deprecated public java.lang.CharSequence s
@Deprecated public boolean b
@Deprecated public float f
@Deprecated public double d
@Deprecated public java.lang.Void n
@Deprecated public java.nio.ByteBuffer by
public Primitives()
newBuilder().public Primitives(java.lang.Integer i,
java.lang.Long l,
java.lang.CharSequence s,
java.lang.Boolean b,
java.lang.Float f,
java.lang.Double d,
java.lang.Void n,
java.nio.ByteBuffer by)
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 java.lang.Object get(int field$)
get in interface org.apache.avro.generic.IndexedRecordget in class org.apache.avro.specific.SpecificRecordBasepublic void put(int field$,
java.lang.Object value$)
put in interface org.apache.avro.generic.IndexedRecordput in class org.apache.avro.specific.SpecificRecordBasepublic java.lang.Integer getI()
public void setI(java.lang.Integer value)
value - the value to set.public java.lang.Long getL()
public void setL(java.lang.Long value)
value - the value to set.public java.lang.CharSequence getS()
public void setS(java.lang.CharSequence value)
value - the value to set.public java.lang.Boolean getB()
public void setB(java.lang.Boolean value)
value - the value to set.public java.lang.Float getF()
public void setF(java.lang.Float value)
value - the value to set.public java.lang.Double getD()
public void setD(java.lang.Double value)
value - the value to set.public java.lang.Void getN()
public void setN(java.lang.Void value)
value - the value to set.public java.nio.ByteBuffer getBy()
public void setBy(java.nio.ByteBuffer value)
value - the value to set.public static Primitives.Builder newBuilder()
public static Primitives.Builder newBuilder(Primitives.Builder other)
public static Primitives.Builder newBuilder(Primitives other)