public final class TupleOpenTsdbDatapointMapper extends Object implements ITupleOpenTsdbDatapointMapper
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
public OpenTsdbMetricDatapoint getMetricPoint(ITuple tuple)
ITupleOpenTsdbDatapointMapper
OpenTsdbMetricDatapoint
for a given tuple
.getMetricPoint
in interface ITupleOpenTsdbDatapointMapper
tuple
- tuple instancepublic String getMetricField()
public String getTimestampField()
public String getValueField()
public String getTagsField()
Copyright © 2023 The Apache Software Foundation. All rights reserved.