Package org.apache.druid.query
Class SegmentDescriptor
- java.lang.Object
-
- org.apache.druid.query.SegmentDescriptor
-
public class SegmentDescriptor extends Object
The difference between this class andSegmentIdis that this class is a "light" version ofSegmentId, that only contains the interval, version, and partition number. It's used where the data source, another essential part ofSegmentIdis determined by the context (e. g. in org.apache.druid.client.CachingClusteredClient, where SegmentDescriptor is used when Brokers tell data servers which segments to include for a particular query) and where having lean JSON representations is important, because it's actively transferred between Druid nodes. It's also for this reason that the JSON field names of SegmentDescriptor are abbreviated.
-
-
Constructor Summary
Constructors Constructor Description SegmentDescriptor(org.joda.time.Interval interval, String version, int partitionNumber)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)org.joda.time.IntervalgetInterval()intgetPartitionNumber()StringgetVersion()inthashCode()StringtoString()
-