public class AvroEvaluatorRequest extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord
| Modifier and Type | Class and Description |
|---|---|
static class |
AvroEvaluatorRequest.Builder
RecordBuilder for AvroEvaluatorRequest instances.
|
| Modifier and Type | Field and Description |
|---|---|
int |
cores
Deprecated.
|
int |
megaBytes
Deprecated.
|
List<CharSequence> |
nodeNames
Deprecated.
|
int |
number
Deprecated.
|
List<CharSequence> |
rackNames
Deprecated.
|
static org.apache.avro.Schema |
SCHEMA$ |
| Constructor and Description |
|---|
AvroEvaluatorRequest()
Default constructor.
|
AvroEvaluatorRequest(Integer megaBytes,
Integer number,
Integer cores,
List<CharSequence> nodeNames,
List<CharSequence> rackNames)
All-args constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
get(int field$) |
static org.apache.avro.Schema |
getClassSchema() |
Integer |
getCores()
Gets the value of the 'cores' field.
|
Integer |
getMegaBytes()
Gets the value of the 'megaBytes' field.
|
List<CharSequence> |
getNodeNames()
Gets the value of the 'nodeNames' field.
|
Integer |
getNumber()
Gets the value of the 'number' field.
|
List<CharSequence> |
getRackNames()
Gets the value of the 'rackNames' field.
|
org.apache.avro.Schema |
getSchema() |
static AvroEvaluatorRequest.Builder |
newBuilder()
Creates a new AvroEvaluatorRequest RecordBuilder.
|
static AvroEvaluatorRequest.Builder |
newBuilder(AvroEvaluatorRequest.Builder other)
Creates a new AvroEvaluatorRequest RecordBuilder by copying an existing Builder.
|
static AvroEvaluatorRequest.Builder |
newBuilder(AvroEvaluatorRequest other)
Creates a new AvroEvaluatorRequest RecordBuilder by copying an existing AvroEvaluatorRequest instance.
|
void |
put(int field$,
Object value$) |
void |
readExternal(ObjectInput in) |
void |
setCores(Integer value)
Sets the value of the 'cores' field.
|
void |
setMegaBytes(Integer value)
Sets the value of the 'megaBytes' field.
|
void |
setNodeNames(List<CharSequence> value)
Sets the value of the 'nodeNames' field.
|
void |
setNumber(Integer value)
Sets the value of the 'number' field.
|
void |
setRackNames(List<CharSequence> value)
Sets the value of the 'rackNames' field.
|
void |
writeExternal(ObjectOutput out) |
public static final org.apache.avro.Schema SCHEMA$
@Deprecated public int megaBytes
@Deprecated public int number
@Deprecated public int cores
@Deprecated public List<CharSequence> nodeNames
@Deprecated public List<CharSequence> rackNames
public AvroEvaluatorRequest()
newBuilder().public AvroEvaluatorRequest(Integer megaBytes, Integer number, Integer cores, List<CharSequence> nodeNames, List<CharSequence> rackNames)
megaBytes - The new value for megaBytesnumber - The new value for numbercores - The new value for coresnodeNames - The new value for nodeNamesrackNames - The new value for rackNamespublic 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 Integer getMegaBytes()
public void setMegaBytes(Integer value)
value - the value to set.public Integer getNumber()
public void setNumber(Integer value)
value - the value to set.public Integer getCores()
public void setCores(Integer value)
value - the value to set.public List<CharSequence> getNodeNames()
public void setNodeNames(List<CharSequence> value)
value - the value to set.public List<CharSequence> getRackNames()
public void setRackNames(List<CharSequence> value)
value - the value to set.public static AvroEvaluatorRequest.Builder newBuilder()
public static AvroEvaluatorRequest.Builder newBuilder(AvroEvaluatorRequest.Builder other)
other - The existing builder to copy.public static AvroEvaluatorRequest.Builder newBuilder(AvroEvaluatorRequest other)
other - The existing instance to copy.public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizablewriteExternal in class org.apache.avro.specific.SpecificRecordBaseIOExceptionpublic void readExternal(ObjectInput in) throws IOException
readExternal in interface ExternalizablereadExternal in class org.apache.avro.specific.SpecificRecordBaseIOExceptionCopyright © 2017 The Apache Software Foundation. All rights reserved.