public class NodeEntryRecord
extends org.apache.avro.specific.SpecificRecordBase
implements org.apache.avro.specific.SpecificRecord
| Modifier and Type | Class and Description |
|---|---|
static class |
NodeEntryRecord.Builder
RecordBuilder for NodeEntryRecord instances.
|
| Modifier and Type | Field and Description |
|---|---|
boolean |
active
Deprecated.
|
CharSequence |
host
Deprecated.
|
long |
last_used
Deprecated.
|
int |
role
Deprecated.
|
static org.apache.avro.Schema |
SCHEMA$ |
| Constructor and Description |
|---|
NodeEntryRecord()
Default constructor.
|
NodeEntryRecord(CharSequence host,
Integer role,
Boolean active,
Long last_used)
All-args constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
get(int field$) |
Boolean |
getActive()
Gets the value of the 'active' field.
|
static org.apache.avro.Schema |
getClassSchema() |
CharSequence |
getHost()
Gets the value of the 'host' field.
|
Long |
getLastUsed()
Gets the value of the 'last_used' field.
|
Integer |
getRole()
Gets the value of the 'role' field.
|
org.apache.avro.Schema |
getSchema() |
static NodeEntryRecord.Builder |
newBuilder()
Creates a new NodeEntryRecord RecordBuilder
|
static NodeEntryRecord.Builder |
newBuilder(NodeEntryRecord.Builder other)
Creates a new NodeEntryRecord RecordBuilder by copying an existing Builder
|
static NodeEntryRecord.Builder |
newBuilder(NodeEntryRecord other)
Creates a new NodeEntryRecord RecordBuilder by copying an existing NodeEntryRecord instance
|
void |
put(int field$,
Object value$) |
void |
setActive(Boolean value)
Sets the value of the 'active' field.
|
void |
setHost(CharSequence value)
Sets the value of the 'host' field.
|
void |
setLastUsed(Long value)
Sets the value of the 'last_used' field.
|
void |
setRole(Integer value)
Sets the value of the 'role' field.
|
public static final org.apache.avro.Schema SCHEMA$
@Deprecated public CharSequence host
@Deprecated public int role
@Deprecated public boolean active
@Deprecated public long last_used
public NodeEntryRecord()
public NodeEntryRecord(CharSequence host, Integer role, Boolean active, Long last_used)
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 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 CharSequence getHost()
public void setHost(CharSequence value)
value - the value to set.public Integer getRole()
public void setRole(Integer value)
value - the value to set.public Boolean getActive()
public void setActive(Boolean value)
value - the value to set.public Long getLastUsed()
public void setLastUsed(Long value)
value - the value to set.public static NodeEntryRecord.Builder newBuilder()
public static NodeEntryRecord.Builder newBuilder(NodeEntryRecord.Builder other)
public static NodeEntryRecord.Builder newBuilder(NodeEntryRecord other)
Copyright © 2014–2015 The Apache Software Foundation. All rights reserved.