Class LoadableDataSegment
- java.lang.Object
-
- org.apache.druid.timeline.DataSegment
-
- org.apache.druid.server.coordination.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.DataSegmentA deserialization aid used bySegmentChangeRequestLoad. 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 defaultDataSegment.PruneSpecsHolder.
-
-
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
-
-
-
-
Constructor Detail
-
LoadableDataSegment
public LoadableDataSegment(String dataSource, org.joda.time.Interval interval, String version, @Nullable Map<String,Object> loadSpec, @Nullable List<String> dimensions, @Nullable List<String> metrics, @Nullable org.apache.druid.timeline.partition.ShardSpec shardSpec, @Nullable org.apache.druid.timeline.CompactionState lastCompactionState, Integer binaryVersion, long size, org.apache.druid.timeline.DataSegment.PruneSpecsHolder pruneSpecsHolder)
-
-