public class SegmentInputRow extends Object implements InputRow
Constructor and Description |
---|
SegmentInputRow(InputRow delegate) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Row row) |
InputRow |
getDelegate() |
List<String> |
getDimension(String dimension)
Returns the list of dimension values for the given column name.
|
List<String> |
getDimensions()
Returns the dimensions that exist in this row.
|
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.
|
String |
toString() |
public SegmentInputRow(InputRow delegate)
public List<String> getDimensions()
InputRow
getDimensions
in interface InputRow
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 row)
compareTo
in interface Comparable<Row>
public InputRow getDelegate()
Copyright © 2011–2017. All rights reserved.