public class Types2
extends org.apache.avro.specific.SpecificRecordBase
implements org.apache.avro.specific.SpecificRecord
| Modifier and Type | Class and Description |
|---|---|
static class |
Types2.Builder
RecordBuilder for Types2 instances.
|
| Modifier and Type | Field and Description |
|---|---|
java.lang.CharSequence |
bsonTimestamp1
Deprecated.
|
long |
bsonTimestamp2
Deprecated.
|
java.lang.CharSequence |
date1
Deprecated.
|
long |
date2
Deprecated.
|
java.lang.CharSequence |
mongoString
Deprecated.
|
java.lang.CharSequence |
objectId
Deprecated.
|
static org.apache.avro.Schema |
SCHEMA$ |
| Constructor and Description |
|---|
Types2()
Default constructor.
|
Types2(java.lang.CharSequence objectId,
java.lang.CharSequence bsonTimestamp1,
java.lang.Long bsonTimestamp2,
java.lang.CharSequence date1,
java.lang.Long date2,
java.lang.CharSequence mongoString)
All-args constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
get(int field$) |
java.lang.CharSequence |
getBsonTimestamp1()
Gets the value of the 'bsonTimestamp1' field.
|
java.lang.Long |
getBsonTimestamp2()
Gets the value of the 'bsonTimestamp2' field.
|
static org.apache.avro.Schema |
getClassSchema() |
java.lang.CharSequence |
getDate1()
Gets the value of the 'date1' field.
|
java.lang.Long |
getDate2()
Gets the value of the 'date2' field.
|
java.lang.CharSequence |
getMongoString()
Gets the value of the 'mongoString' field.
|
java.lang.CharSequence |
getObjectId()
Gets the value of the 'objectId' field.
|
org.apache.avro.Schema |
getSchema() |
static Types2.Builder |
newBuilder()
Creates a new Types2 RecordBuilder
|
static Types2.Builder |
newBuilder(Types2.Builder other)
Creates a new Types2 RecordBuilder by copying an existing Builder
|
static Types2.Builder |
newBuilder(Types2 other)
Creates a new Types2 RecordBuilder by copying an existing Types2 instance
|
void |
put(int field$,
java.lang.Object value$) |
void |
setBsonTimestamp1(java.lang.CharSequence value)
Sets the value of the 'bsonTimestamp1' field.
|
void |
setBsonTimestamp2(java.lang.Long value)
Sets the value of the 'bsonTimestamp2' field.
|
void |
setDate1(java.lang.CharSequence value)
Sets the value of the 'date1' field.
|
void |
setDate2(java.lang.Long value)
Sets the value of the 'date2' field.
|
void |
setMongoString(java.lang.CharSequence value)
Sets the value of the 'mongoString' field.
|
void |
setObjectId(java.lang.CharSequence value)
Sets the value of the 'objectId' field.
|
public static final org.apache.avro.Schema SCHEMA$
@Deprecated public java.lang.CharSequence objectId
@Deprecated public java.lang.CharSequence bsonTimestamp1
@Deprecated public long bsonTimestamp2
@Deprecated public java.lang.CharSequence date1
@Deprecated public long date2
@Deprecated public java.lang.CharSequence mongoString
public Types2()
newBuilder().public Types2(java.lang.CharSequence objectId,
java.lang.CharSequence bsonTimestamp1,
java.lang.Long bsonTimestamp2,
java.lang.CharSequence date1,
java.lang.Long date2,
java.lang.CharSequence mongoString)
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.CharSequence getObjectId()
public void setObjectId(java.lang.CharSequence value)
value - the value to set.public java.lang.CharSequence getBsonTimestamp1()
public void setBsonTimestamp1(java.lang.CharSequence value)
value - the value to set.public java.lang.Long getBsonTimestamp2()
public void setBsonTimestamp2(java.lang.Long value)
value - the value to set.public java.lang.CharSequence getDate1()
public void setDate1(java.lang.CharSequence value)
value - the value to set.public java.lang.Long getDate2()
public void setDate2(java.lang.Long value)
value - the value to set.public java.lang.CharSequence getMongoString()
public void setMongoString(java.lang.CharSequence value)
value - the value to set.public static Types2.Builder newBuilder()
public static Types2.Builder newBuilder(Types2.Builder other)
public static Types2.Builder newBuilder(Types2 other)