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()  | 
Number | 
getMetric(String metric)
Returns the metric column value for the given column name. 
 | 
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()
RowgetTimestampFromEpoch in interface Rowpublic org.joda.time.DateTime getTimestamp()
RowgetTimestamp in interface Rowpublic List<String> getDimension(String dimension)
RowgetDimension in interface Rowdimension - the column name of the dimension requestedpublic Object getRaw(String dimension)
RowRow.getDimension(java.lang.String) which
 all values to strings before returning them.public Number getMetric(String metric)
RowRow.getRaw(java.lang.String) in two
 aspects:
  1. If the column is absent in the row, numeric zero is returned, rather than null.
  2. If the column has string value, an attempt is made to parse this value as a number.public int compareTo(Row o)
compareTo in interface Comparable<Row>Copyright © 2011–2018. All rights reserved.