Class SegmentAnalysis
- java.lang.Object
-
- org.apache.druid.query.metadata.metadata.SegmentAnalysis
-
- All Implemented Interfaces:
Comparable<SegmentAnalysis>
public class SegmentAnalysis extends Object implements Comparable<SegmentAnalysis>
-
-
Constructor Summary
Constructors Constructor Description SegmentAnalysis(String id, List<org.joda.time.Interval> interval, LinkedHashMap<String,ColumnAnalysis> columns, long size, long numRows, Map<String,AggregatorFactory> aggregators, TimestampSpec timestampSpec, Granularity queryGranularity, Boolean rollup)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(SegmentAnalysis rhs)
boolean
equals(Object o)
Best-effort equals method; relies on AggregatorFactory.equals, which is not guaranteed to be sanely implemented.Map<String,AggregatorFactory>
getAggregators()
LinkedHashMap<String,ColumnAnalysis>
getColumns()
String
getId()
List<org.joda.time.Interval>
getIntervals()
long
getNumRows()
Granularity
getQueryGranularity()
long
getSize()
TimestampSpec
getTimestampSpec()
int
hashCode()
Best-effort hashCode method; relies on AggregatorFactory.hashCode, which is not guaranteed to be sanely implemented.Boolean
isRollup()
String
toString()
-
-
-
Constructor Detail
-
SegmentAnalysis
public SegmentAnalysis(String id, List<org.joda.time.Interval> interval, LinkedHashMap<String,ColumnAnalysis> columns, long size, long numRows, Map<String,AggregatorFactory> aggregators, TimestampSpec timestampSpec, Granularity queryGranularity, Boolean rollup)
-
-
Method Detail
-
getId
public String getId()
-
getIntervals
public List<org.joda.time.Interval> getIntervals()
-
getColumns
public LinkedHashMap<String,ColumnAnalysis> getColumns()
-
getSize
public long getSize()
-
getNumRows
public long getNumRows()
-
getTimestampSpec
public TimestampSpec getTimestampSpec()
-
getQueryGranularity
public Granularity getQueryGranularity()
-
isRollup
public Boolean isRollup()
-
getAggregators
public Map<String,AggregatorFactory> getAggregators()
-
equals
public boolean equals(Object o)
Best-effort equals method; relies on AggregatorFactory.equals, which is not guaranteed to be sanely implemented.
-
hashCode
public int hashCode()
Best-effort hashCode method; relies on AggregatorFactory.hashCode, which is not guaranteed to be sanely implemented.
-
compareTo
public int compareTo(SegmentAnalysis rhs)
- Specified by:
compareTo
in interfaceComparable<SegmentAnalysis>
-
-