Class 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 Detail

      • SegmentInputRow

        public SegmentInputRow​(org.apache.druid.data.input.Row delegate,
                               List<String> dimensions)
    • Method Detail

      • getDimensions

        public List<String> getDimensions()
        Specified by:
        getDimensions in interface org.apache.druid.data.input.InputRow
      • getTimestampFromEpoch

        public long getTimestampFromEpoch()
        Specified by:
        getTimestampFromEpoch in interface org.apache.druid.data.input.Row
      • getTimestamp

        public org.joda.time.DateTime getTimestamp()
        Specified by:
        getTimestamp in interface org.apache.druid.data.input.Row
      • getDimension

        public List<String> getDimension​(String dimension)
        Specified by:
        getDimension in interface org.apache.druid.data.input.Row
      • getRaw

        public Object getRaw​(String dimension)
        Specified by:
        getRaw in interface org.apache.druid.data.input.Row
      • getMetric

        public Number getMetric​(String metric)
        Specified by:
        getMetric in interface org.apache.druid.data.input.Row
      • compareTo

        public int compareTo​(org.apache.druid.data.input.Row row)
        Specified by:
        compareTo in interface Comparable<org.apache.druid.data.input.Row>