public class JhCounter
extends org.apache.avro.specific.SpecificRecordBase
implements org.apache.avro.specific.SpecificRecord
| Modifier and Type | Class and Description |
|---|---|
static class |
JhCounter.Builder
RecordBuilder for JhCounter instances.
|
| Modifier and Type | Field and Description |
|---|---|
CharSequence |
displayName
Deprecated.
|
CharSequence |
name
Deprecated.
|
static org.apache.avro.Schema |
SCHEMA$ |
long |
value
Deprecated.
|
| Constructor and Description |
|---|
JhCounter()
Default constructor.
|
JhCounter(CharSequence name,
CharSequence displayName,
Long value)
All-args constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
get(int field$) |
static org.apache.avro.Schema |
getClassSchema() |
CharSequence |
getDisplayName()
Gets the value of the 'displayName' field.
|
CharSequence |
getName()
Gets the value of the 'name' field.
|
org.apache.avro.Schema |
getSchema() |
Long |
getValue()
Gets the value of the 'value' field.
|
static JhCounter.Builder |
newBuilder()
Creates a new JhCounter RecordBuilder
|
static JhCounter.Builder |
newBuilder(JhCounter.Builder other)
Creates a new JhCounter RecordBuilder by copying an existing Builder
|
static JhCounter.Builder |
newBuilder(JhCounter other)
Creates a new JhCounter RecordBuilder by copying an existing JhCounter instance
|
void |
put(int field$,
Object value$) |
void |
setDisplayName(CharSequence value)
Sets the value of the 'displayName' field.
|
void |
setName(CharSequence value)
Sets the value of the 'name' field.
|
void |
setValue(Long value)
Sets the value of the 'value' field.
|
public static final org.apache.avro.Schema SCHEMA$
@Deprecated public CharSequence name
@Deprecated public CharSequence displayName
@Deprecated public long value
public JhCounter()
newBuilder().public JhCounter(CharSequence name, CharSequence displayName, Long value)
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 getName()
public void setName(CharSequence value)
value - the value to set.public CharSequence getDisplayName()
public void setDisplayName(CharSequence value)
value - the value to set.public Long getValue()
public void setValue(Long value)
value - the value to set.public static JhCounter.Builder newBuilder()
public static JhCounter.Builder newBuilder(JhCounter.Builder other)
public static JhCounter.Builder newBuilder(JhCounter other)
Copyright © 2008–2022 Apache Software Foundation. All rights reserved.