Package org.apache.druid.indexer.hadoop
Class SegmentInputRow
- java.lang.Object
-
- org.apache.druid.indexer.hadoop.SegmentInputRow
-
- All Implemented Interfaces:
Comparable<org.apache.druid.data.input.Row>,org.apache.druid.data.input.InputRow,org.apache.druid.data.input.Row
public class SegmentInputRow extends Object implements org.apache.druid.data.input.InputRow
SegmentInputRow serves as a marker that these InputRow instances have already been combined and they contain the columns as they show up in the segment after ingestion, not what you would see in raw data. It must only be used to represent such InputRows.
-
-
Constructor Summary
Constructors Constructor Description SegmentInputRow(org.apache.druid.data.input.Row delegate, List<String> dimensions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(org.apache.druid.data.input.Row row)List<String>getDimension(String dimension)List<String>getDimensions()NumbergetMetric(String metric)ObjectgetRaw(String dimension)org.joda.time.DateTimegetTimestamp()longgetTimestampFromEpoch()StringtoString()
-
-
-
Method Detail
-
getDimensions
public List<String> getDimensions()
- Specified by:
getDimensionsin interfaceorg.apache.druid.data.input.InputRow
-
getTimestampFromEpoch
public long getTimestampFromEpoch()
- Specified by:
getTimestampFromEpochin interfaceorg.apache.druid.data.input.Row
-
getTimestamp
public org.joda.time.DateTime getTimestamp()
- Specified by:
getTimestampin interfaceorg.apache.druid.data.input.Row
-
getDimension
public List<String> getDimension(String dimension)
- Specified by:
getDimensionin interfaceorg.apache.druid.data.input.Row
-
getRaw
public Object getRaw(String dimension)
- Specified by:
getRawin interfaceorg.apache.druid.data.input.Row
-
getMetric
public Number getMetric(String metric)
- Specified by:
getMetricin interfaceorg.apache.druid.data.input.Row
-
compareTo
public int compareTo(org.apache.druid.data.input.Row row)
- Specified by:
compareToin interfaceComparable<org.apache.druid.data.input.Row>
-
-