Package org.apache.druid.client
Class SegmentLoadInfo
- java.lang.Object
-
- org.apache.druid.client.SegmentLoadInfo
-
- All Implemented Interfaces:
org.apache.druid.timeline.Overshadowable<SegmentLoadInfo>
public class SegmentLoadInfo extends Object implements org.apache.druid.timeline.Overshadowable<SegmentLoadInfo>
-
-
Constructor Summary
Constructors Constructor Description SegmentLoadInfo(org.apache.druid.timeline.DataSegment segment)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddServer(DruidServerMetadata server)booleanequals(Object o)shortgetAtomicUpdateGroupSize()intgetEndRootPartitionId()shortgetMinorVersion()intgetStartRootPartitionId()StringgetVersion()inthashCode()booleanisEmpty()booleanovershadows(SegmentLoadInfo other)DruidServerMetadatapickOne()Randomly return one server from the set ofservers.booleanremoveServer(DruidServerMetadata server)ImmutableSegmentLoadInfotoImmutableSegmentLoadInfo()StringtoString()
-
-
-
Method Detail
-
addServer
public boolean addServer(DruidServerMetadata server)
-
removeServer
public boolean removeServer(DruidServerMetadata server)
-
isEmpty
public boolean isEmpty()
-
toImmutableSegmentLoadInfo
public ImmutableSegmentLoadInfo toImmutableSegmentLoadInfo()
-
pickOne
public DruidServerMetadata pickOne()
Randomly return one server from the set ofservers.
-
overshadows
public boolean overshadows(SegmentLoadInfo other)
- Specified by:
overshadowsin interfaceorg.apache.druid.timeline.Overshadowable<SegmentLoadInfo>
-
getStartRootPartitionId
public int getStartRootPartitionId()
- Specified by:
getStartRootPartitionIdin interfaceorg.apache.druid.timeline.Overshadowable<SegmentLoadInfo>
-
getEndRootPartitionId
public int getEndRootPartitionId()
- Specified by:
getEndRootPartitionIdin interfaceorg.apache.druid.timeline.Overshadowable<SegmentLoadInfo>
-
getVersion
public String getVersion()
- Specified by:
getVersionin interfaceorg.apache.druid.timeline.Overshadowable<SegmentLoadInfo>
-
getMinorVersion
public short getMinorVersion()
- Specified by:
getMinorVersionin interfaceorg.apache.druid.timeline.Overshadowable<SegmentLoadInfo>
-
getAtomicUpdateGroupSize
public short getAtomicUpdateGroupSize()
- Specified by:
getAtomicUpdateGroupSizein interfaceorg.apache.druid.timeline.Overshadowable<SegmentLoadInfo>
-
-