public interface Row extends Comparable<Row>
Modifier and Type | Method and Description |
---|---|
List<String> |
getDimension(String dimension)
Returns the list of dimension values for the given column name.
|
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.
|
compareTo
long getTimestampFromEpoch()
org.joda.time.DateTime getTimestamp()
List<String> getDimension(String dimension)
dimension
- the column name of the dimension requestedObject getRaw(String dimension)
getDimension(java.lang.String)
which
all values to strings before returning them.dimension
- the column name of the dimension requestedNumber getMetric(String metric)
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.Copyright © 2011–2018. All rights reserved.