public class MapBasedRow extends Object implements Row
Constructor and Description |
---|
MapBasedRow(org.joda.time.DateTime timestamp,
Map<String,Object> event) |
MapBasedRow(long timestamp,
Map<String,Object> event) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Row o) |
boolean |
equals(Object o) |
List<String> |
getDimension(String dimension)
Returns the list of dimension values for the given column name.
|
Map<String,Object> |
getEvent() |
float |
getFloatMetric(String metric)
Returns the float value of the given metric column.
|
long |
getLongMetric(String metric)
Returns the long value of the given metric column.
|
Object |
getRaw(String dimension)
Returns the raw dimension value for the given column name.
|
org.joda.time.DateTime |
getTimestamp()
Returns the timestamp from the epoch as an org.joda.time.DateTime.
|
long |
getTimestampFromEpoch()
Returns the timestamp from the epoch in milliseconds.
|
int |
hashCode() |
String |
toString() |
public long getTimestampFromEpoch()
Row
getTimestampFromEpoch
in interface Row
public org.joda.time.DateTime getTimestamp()
Row
getTimestamp
in interface Row
public List<String> getDimension(String dimension)
Row
getDimension
in interface Row
dimension
- the column name of the dimension requestedpublic Object getRaw(String dimension)
Row
public float getFloatMetric(String metric)
Row
getFloatMetric
in interface Row
metric
- the column name of the metric requestedpublic long getLongMetric(String metric)
Row
getLongMetric
in interface Row
metric
- the column name of the metric requestedpublic int compareTo(Row o)
compareTo
in interface Comparable<Row>
Copyright © 2011–2017. All rights reserved.