public final class TupleOpenTsdbDatapointMapper extends Object implements ITupleOpenTsdbDatapointMapper
Converts ITuple
to OpenTsdbMetricDatapoint
.
Modifier and Type | Field and Description |
---|---|
static TupleOpenTsdbDatapointMapper |
DEFAULT_MAPPER
Default mapper which can be used when the tuple already contains fields mapping metric, timestamp, tags and value.
|
Constructor and Description |
---|
TupleOpenTsdbDatapointMapper(String metricField,
String timestampField,
String tagsField,
String valueField) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getMetricField()
Retrieve metric field name in the tuple.
|
OpenTsdbMetricDatapoint |
getMetricPoint(ITuple tuple)
Returns a
OpenTsdbMetricDatapoint for a given tuple . |
String |
getTagsField()
Retrieve the tags field name in the tuple.
|
String |
getTimestampField()
Retrieve the timestamp field name in the tuple.
|
String |
getValueField()
Retrieve the value field name in the tuple.
|
int |
hashCode() |
String |
toString() |
public static final TupleOpenTsdbDatapointMapper DEFAULT_MAPPER
Default mapper which can be used when the tuple already contains fields mapping metric, timestamp, tags and value.
public OpenTsdbMetricDatapoint getMetricPoint(ITuple tuple)
ITupleOpenTsdbDatapointMapper
Returns a OpenTsdbMetricDatapoint
for a given tuple
.
getMetricPoint
in interface ITupleOpenTsdbDatapointMapper
tuple
- tuple instancepublic String getMetricField()
Retrieve metric field name in the tuple.
public String getTimestampField()
Retrieve the timestamp field name in the tuple.
public String getValueField()
Retrieve the value field name in the tuple.
public String getTagsField()
Retrieve the tags field name in the tuple.
Copyright © 2020 The Apache Software Foundation. All rights reserved.