Class LoadableDataSegment
java.lang.Object
org.apache.druid.timeline.DataSegment
org.apache.druid.server.coordination.LoadableDataSegment
- All Implemented Interfaces:
Comparable<DataSegment>,Overshadowable<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
DataSegment.Builder, DataSegment.PruneSpecsHolder -
Field Summary
Fields inherited from class org.apache.druid.timeline.DataSegment
TOMBSTONE_LOADSPEC_TYPE -
Constructor Summary
ConstructorsConstructorDescriptionLoadableDataSegment(String dataSource, org.joda.time.Interval interval, String version, Map<String, Object> loadSpec, List<String> dimensions, List<String> metrics, List<String> projections, ShardSpec shardSpec, CompactionState lastCompactionState, Integer binaryVersion, long size) -
Method Summary
Methods inherited from class org.apache.druid.timeline.DataSegment
builder, builder, builder, compareTo, equals, getAtomicUpdateGroupSize, getBinaryVersion, getDataSource, getDimensions, getEndRootPartitionId, getId, getInterval, getLastCompactionState, getLoadSpec, getMetrics, getMinorVersion, getProjections, getShardSpec, getSize, getStartRootPartitionId, getVersion, hasData, hashCode, isTombstone, overshadows, toDescriptor, toString, withBinaryVersion, withDimensions, withLastCompactionState, withLoadSpec, withMetrics, withProjections, withShardSpec, withSize, withVersionMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.druid.timeline.Overshadowable
containsRootPartition
-
Constructor Details
-
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 List<String> projections, @Nullable ShardSpec shardSpec, @Nullable CompactionState lastCompactionState, Integer binaryVersion, long size)
-