public class DiversionDefinition
extends org.apache.avro.specific.SpecificRecordBase
implements org.apache.avro.specific.SpecificRecord
Modifier and Type | Class and Description |
---|---|
static class |
DiversionDefinition.Builder
RecordBuilder for DiversionDefinition instances.
|
Modifier and Type | Field and Description |
---|---|
int |
id
Deprecated.
|
CharSequence |
name
Deprecated.
|
int |
num_buckets
Deprecated.
|
boolean |
random
Deprecated.
|
static org.apache.avro.Schema |
SCHEMA$ |
Constructor and Description |
---|
DiversionDefinition()
Default constructor.
|
DiversionDefinition(Integer id,
CharSequence name,
Boolean random,
Integer num_buckets)
All-args constructor.
|
Modifier and Type | Method and Description |
---|---|
Object |
get(int field$) |
static org.apache.avro.Schema |
getClassSchema() |
Integer |
getId()
Gets the value of the 'id' field.
|
CharSequence |
getName()
Gets the value of the 'name' field.
|
Integer |
getNumBuckets()
Gets the value of the 'num_buckets' field.
|
Boolean |
getRandom()
Gets the value of the 'random' field.
|
org.apache.avro.Schema |
getSchema() |
static DiversionDefinition.Builder |
newBuilder()
Creates a new DiversionDefinition RecordBuilder
|
static DiversionDefinition.Builder |
newBuilder(DiversionDefinition.Builder other)
Creates a new DiversionDefinition RecordBuilder by copying an existing Builder
|
static DiversionDefinition.Builder |
newBuilder(DiversionDefinition other)
Creates a new DiversionDefinition RecordBuilder by copying an existing DiversionDefinition instance
|
void |
put(int field$,
Object value$) |
void |
setId(Integer value)
Sets the value of the 'id' field.
|
void |
setName(CharSequence value)
Sets the value of the 'name' field.
|
void |
setNumBuckets(Integer value)
Sets the value of the 'num_buckets' field.
|
void |
setRandom(Boolean value)
Sets the value of the 'random' field.
|
public static final org.apache.avro.Schema SCHEMA$
@Deprecated public int id
@Deprecated public CharSequence name
@Deprecated public boolean random
@Deprecated public int num_buckets
public DiversionDefinition()
\#newBuilder()
.public DiversionDefinition(Integer id, CharSequence name, Boolean random, Integer num_buckets)
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 getId()
public void setId(Integer value)
value
- the value to set.public CharSequence getName()
public void setName(CharSequence value)
value
- the value to set.public Boolean getRandom()
public void setRandom(Boolean value)
value
- the value to set.public Integer getNumBuckets()
public void setNumBuckets(Integer value)
value
- the value to set.public static DiversionDefinition.Builder newBuilder()
public static DiversionDefinition.Builder newBuilder(DiversionDefinition.Builder other)
public static DiversionDefinition.Builder newBuilder(DiversionDefinition other)
Copyright © 2013. All rights reserved.