public class Version
extends org.apache.avro.specific.SpecificRecordBase
implements org.apache.avro.specific.SpecificRecord
Modifier and Type | Class and Description |
---|---|
static class |
Version.Builder
RecordBuilder for Version instances.
|
Modifier and Type | Field and Description |
---|---|
int |
major
Deprecated.
|
int |
minor
Deprecated.
|
int |
patch
Deprecated.
|
int |
revision
Deprecated.
|
static org.apache.avro.Schema |
SCHEMA$ |
Constructor and Description |
---|
Version()
Default constructor.
|
Version(Integer major,
Integer minor,
Integer revision,
Integer patch)
All-args constructor.
|
Modifier and Type | Method and Description |
---|---|
Object |
get(int field$) |
static org.apache.avro.Schema |
getClassSchema() |
Integer |
getMajor()
Gets the value of the 'major' field.
|
Integer |
getMinor()
Gets the value of the 'minor' field.
|
Integer |
getPatch()
Gets the value of the 'patch' field.
|
Integer |
getRevision()
Gets the value of the 'revision' field.
|
org.apache.avro.Schema |
getSchema() |
static Version.Builder |
newBuilder()
Creates a new Version RecordBuilder
|
static Version.Builder |
newBuilder(Version.Builder other)
Creates a new Version RecordBuilder by copying an existing Builder
|
static Version.Builder |
newBuilder(Version other)
Creates a new Version RecordBuilder by copying an existing Version instance
|
void |
put(int field$,
Object value$) |
void |
setMajor(Integer value)
Sets the value of the 'major' field.
|
void |
setMinor(Integer value)
Sets the value of the 'minor' field.
|
void |
setPatch(Integer value)
Sets the value of the 'patch' field.
|
void |
setRevision(Integer value)
Sets the value of the 'revision' field.
|
public static final org.apache.avro.Schema SCHEMA$
@Deprecated public int major
@Deprecated public int minor
@Deprecated public int revision
@Deprecated public int patch
public Version()
newBuilder()
.public static org.apache.avro.Schema getClassSchema()
public org.apache.avro.Schema getSchema()
getSchema
in interface org.apache.avro.generic.GenericContainer
getSchema
in class org.apache.avro.specific.SpecificRecordBase
public Object get(int field$)
get
in interface org.apache.avro.generic.IndexedRecord
get
in class org.apache.avro.specific.SpecificRecordBase
public void put(int field$, Object value$)
put
in interface org.apache.avro.generic.IndexedRecord
put
in class org.apache.avro.specific.SpecificRecordBase
public Integer getMajor()
public void setMajor(Integer value)
value
- the value to set.public Integer getMinor()
public void setMinor(Integer value)
value
- the value to set.public Integer getRevision()
public void setRevision(Integer value)
value
- the value to set.public Integer getPatch()
public void setPatch(Integer value)
value
- the value to set.public static Version.Builder newBuilder()
public static Version.Builder newBuilder(Version.Builder other)
public static Version.Builder newBuilder(Version other)
Copyright © 2023 Petroware AS - https://petroware.no