Package org.apache.druid.server.http
Class DataSegmentPlus
- java.lang.Object
-
- org.apache.druid.server.http.DataSegmentPlus
-
public class DataSegmentPlus extends Object
Encapsulates aDataSegmentand additional metadata about it:createdDate: The time when the segment was createdusedStatusLastUpdatedDate: The time when the segments used status was last updatedThe class closesly resembles the row structure of the
MetadataStorageTablesConfig.getSegmentsTable()
-
-
Constructor Summary
Constructors Constructor Description DataSegmentPlus(org.apache.druid.timeline.DataSegment dataSegment, org.joda.time.DateTime createdDate, org.joda.time.DateTime usedStatusLastUpdatedDate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)org.joda.time.DateTimegetCreatedDate()org.apache.druid.timeline.DataSegmentgetDataSegment()org.joda.time.DateTimegetUsedStatusLastUpdatedDate()inthashCode()StringtoString()
-
-
-
Constructor Detail
-
DataSegmentPlus
public DataSegmentPlus(org.apache.druid.timeline.DataSegment dataSegment, org.joda.time.DateTime createdDate, @Nullable org.joda.time.DateTime usedStatusLastUpdatedDate)
-
-
Method Detail
-
getCreatedDate
public org.joda.time.DateTime getCreatedDate()
-
getUsedStatusLastUpdatedDate
@Nullable public org.joda.time.DateTime getUsedStatusLastUpdatedDate()
-
getDataSegment
public org.apache.druid.timeline.DataSegment getDataSegment()
-
-