public static class Transformer.TransformedInputRow extends Object implements InputRow
| Constructor and Description | 
|---|
TransformedInputRow(InputRow row,
                   Map<String,RowFunction> transforms)  | 
| 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. 
 | 
List<String> | 
getDimensions()
Returns the dimensions that exist in this row. 
 | 
Number | 
getMetric(String metric)
Returns the metric column value for the given column name. 
 | 
Object | 
getRaw(String column)
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()  | 
public TransformedInputRow(InputRow row, Map<String,RowFunction> transforms)
public List<String> getDimensions()
InputRowgetDimensions in interface InputRowpublic 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 column)
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.