public class MetricDatum extends PersistentBase implements org.apache.avro.specific.SpecificRecord, Persistent
Modifier and Type | Class and Description |
---|---|
static class |
MetricDatum.Builder
RecordBuilder for MetricDatum instances.
|
static class |
MetricDatum.Tombstone |
PersistentBase.PersistentData
Modifier and Type | Field and Description |
---|---|
static org.apache.avro.Schema |
SCHEMA$ |
DIRTY_BYTES_FIELD_NAME
Constructor and Description |
---|
MetricDatum() |
Modifier and Type | Method and Description |
---|---|
Object |
get(int field$) |
Long |
getMetric()
Gets the value of the 'metric' field.
|
CharSequence |
getMetricDimension()
Gets the value of the 'metricDimension' field.
|
org.apache.avro.Schema |
getSchema() |
Long |
getTimestamp()
Gets the value of the 'timestamp' field.
|
MetricDatum.Tombstone |
getTombstone()
Get an object which can be used to mark this field as deleted (rather than
state unknown, which is indicated by null).
|
boolean |
isMetricDimensionDirty(CharSequence value)
Checks the dirty status of the 'metricDimension' field.
|
boolean |
isMetricDirty(Long value)
Checks the dirty status of the 'metric' field.
|
boolean |
isTimestampDirty(Long value)
Checks the dirty status of the 'timestamp' field.
|
static MetricDatum.Builder |
newBuilder()
Creates a new MetricDatum RecordBuilder
|
static MetricDatum.Builder |
newBuilder(MetricDatum.Builder other)
Creates a new MetricDatum RecordBuilder by copying an existing Builder
|
static MetricDatum.Builder |
newBuilder(MetricDatum other)
Creates a new MetricDatum RecordBuilder by copying an existing MetricDatum instance
|
MetricDatum |
newInstance()
Constructs a new instance of the object by using appropriate builder.
|
void |
put(int field$,
Object value) |
void |
setMetric(Long value)
Sets the value of the 'metric' field.
|
void |
setMetricDimension(CharSequence value)
Sets the value of the 'metricDimension' field.
|
void |
setTimestamp(Long value)
Sets the value of the 'timestamp' field.
|
clear, clearDirty, clearDirty, clearDirty, equals, getUnmanagedFields, isDirty, isDirty, isDirty, setDirty, setDirty, setDirty
compareTo, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
clear, clearDirty, clearDirty, getUnmanagedFields, isDirty, isDirty, setDirty, setDirty, setDirty
clearDirty, isDirty
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 CharSequence getMetricDimension()
public void setMetricDimension(CharSequence value)
value
- the value to set.public boolean isMetricDimensionDirty(CharSequence value)
value
- the value to set.public Long getTimestamp()
public void setTimestamp(Long value)
value
- the value to set.public boolean isTimestampDirty(Long value)
value
- the value to set.public Long getMetric()
public void setMetric(Long value)
value
- the value to set.public boolean isMetricDirty(Long value)
value
- the value to set.public static MetricDatum.Builder newBuilder()
public static MetricDatum.Builder newBuilder(MetricDatum.Builder other)
public static MetricDatum.Builder newBuilder(MetricDatum other)
public MetricDatum.Tombstone getTombstone()
Persistent
getTombstone
in interface Persistent
public MetricDatum newInstance()
Persistent
newInstance
in interface Persistent
Copyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.