Class LoadableDataSegment

  • All Implemented Interfaces:
    Comparable<org.apache.druid.timeline.DataSegment>, org.apache.druid.timeline.Overshadowable<org.apache.druid.timeline.DataSegment>

    public class LoadableDataSegment
    extends org.apache.druid.timeline.DataSegment
    A deserialization aid used by SegmentChangeRequestLoad. The broker prunes the loadSpec from segments for efficiency reasons, but the broker does need the loadSpec when it loads broadcast segments. This class always uses the non-pruning default DataSegment.PruneSpecsHolder.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.apache.druid.timeline.DataSegment

        org.apache.druid.timeline.DataSegment.Builder, org.apache.druid.timeline.DataSegment.PruneSpecsHolder
    • Field Summary

      • Fields inherited from class org.apache.druid.timeline.DataSegment

        TOMBSTONE_LOADSPEC_TYPE
    • Constructor Summary

      Constructors 
      Constructor Description
      LoadableDataSegment​(String dataSource, org.joda.time.Interval interval, String version, Map<String,​Object> loadSpec, List<String> dimensions, List<String> metrics, org.apache.druid.timeline.partition.ShardSpec shardSpec, org.apache.druid.timeline.CompactionState lastCompactionState, Integer binaryVersion, long size, org.apache.druid.timeline.DataSegment.PruneSpecsHolder pruneSpecsHolder)  
    • Method Summary

      • Methods inherited from class org.apache.druid.timeline.DataSegment

        builder, builder, compareTo, equals, getAtomicUpdateGroupSize, getBinaryVersion, getDataSource, getDimensions, getEndRootPartitionId, getId, getInterval, getLastCompactionState, getLoadSpec, getMetrics, getMinorVersion, getShardSpec, getSize, getStartRootPartitionId, getVersion, hasData, hashCode, isTombstone, overshadows, toDescriptor, toString, withBinaryVersion, withDimensions, withLastCompactionState, withLoadSpec, withMetrics, withShardSpec, withSize, withVersion
      • Methods inherited from interface org.apache.druid.timeline.Overshadowable

        containsRootPartition
    • Constructor Detail