Package org.apache.druid.server.http
Class DataSegmentPlus
java.lang.Object
org.apache.druid.server.http.DataSegmentPlus
Encapsulates a
DataSegment and additional metadata about it:
used- Boolean flag representing if the segment is used.createdDate- The time when the segment was created.usedStatusLastUpdatedDate- The time when the segments used status was last updated.upgradedFromSegmentId- The segment id to which the same load spec originally belonged. Load specs can be shared as a result of segment version upgrades.
This class closely resembles the row structure of the MetadataStorageTablesConfig.getSegmentsTable().
-
Constructor Summary
ConstructorsConstructorDescriptionDataSegmentPlus(DataSegment dataSegment, org.joda.time.DateTime createdDate, org.joda.time.DateTime usedStatusLastUpdatedDate, Boolean used, String schemaFingerprint, Long numRows, String upgradedFromSegmentId) -
Method Summary
-
Constructor Details
-
DataSegmentPlus
public DataSegmentPlus(DataSegment dataSegment, @Nullable org.joda.time.DateTime createdDate, @Nullable org.joda.time.DateTime usedStatusLastUpdatedDate, @Nullable Boolean used, @Nullable String schemaFingerprint, @Nullable Long numRows, @Nullable String upgradedFromSegmentId)
-
-
Method Details
-
getCreatedDate
@Nullable public org.joda.time.DateTime getCreatedDate() -
getUsedStatusLastUpdatedDate
@Nullable public org.joda.time.DateTime getUsedStatusLastUpdatedDate() -
getDataSegment
-
getUsed
-
getSchemaFingerprint
-
getNumRows
-
getUpgradedFromSegmentId
-
equals
-
hashCode
public int hashCode() -
toString
-