Class SegmentPublishResult
- java.lang.Object
-
- org.apache.druid.indexing.overlord.SegmentPublishResult
-
public class SegmentPublishResult extends Object
Result of an operation that attempts to publish segments. Indicates the set of segments actually published and whether or not the transaction was a success. If "success" is false then the segments set will be empty. It's possible for the segments set to be empty even if "success" is true, since the segments set only includes segments actually published as part of the transaction. The requested segments could have been published by a different transaction (e.g. in the case of replica sets) and this one would still succeed.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static SegmentPublishResultfail(String errorMsg)StringgetErrorMsg()Set<org.apache.druid.timeline.DataSegment>getSegments()inthashCode()booleanisSuccess()static SegmentPublishResultok(Set<org.apache.druid.timeline.DataSegment> segments)StringtoString()
-
-
-
Method Detail
-
ok
public static SegmentPublishResult ok(Set<org.apache.druid.timeline.DataSegment> segments)
-
fail
public static SegmentPublishResult fail(String errorMsg)
-
getSegments
public Set<org.apache.druid.timeline.DataSegment> getSegments()
-
isSuccess
public boolean isSuccess()
-
-