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() |
OpenTsdbMetricDatapoint |
getMetricPoint(ITuple tuple)
Returns a
OpenTsdbMetricDatapoint for a given tuple . |
String |
getTagsField() |
String |
getTimestampField() |
String |
getValueField() |
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()
public String getTimestampField()
public String getValueField()
public String getTagsField()
Copyright © 2019 The Apache Software Foundation. All rights reserved.