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, setDirtycompareTo, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitclear, clearDirty, clearDirty, getUnmanagedFields, isDirty, isDirty, setDirty, setDirty, setDirtyclearDirty, isDirtypublic 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 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()
PersistentgetTombstone in interface Persistentpublic MetricDatum newInstance()
PersistentnewInstance in interface PersistentCopyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.