Package io.pravega.client.stream.impl
Class StreamSegmentsWithPredecessors
- java.lang.Object
-
- io.pravega.client.stream.impl.StreamSegmentsWithPredecessors
-
public class StreamSegmentsWithPredecessors extends java.lang.Object
The successor segments of a given segment.
-
-
Constructor Summary
Constructors Constructor Description StreamSegmentsWithPredecessors(java.util.Map<SegmentWithRange,java.util.List<java.lang.Long>> segments, java.lang.String delegationToken)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
java.lang.String
getDelegationToken()
java.util.Map<java.lang.Long,java.util.List<SegmentWithRange>>
getReplacementRanges()
Returns a map of the segment numbers to segment/ranges.java.util.Map<SegmentWithRange,java.util.List<java.lang.Long>>
getSegmentToPredecessor()
Get Segment to Predecessor mapping.int
hashCode()
java.lang.String
toString()
-
-
-
Constructor Detail
-
StreamSegmentsWithPredecessors
public StreamSegmentsWithPredecessors(java.util.Map<SegmentWithRange,java.util.List<java.lang.Long>> segments, java.lang.String delegationToken)
-
-
Method Detail
-
getSegmentToPredecessor
public java.util.Map<SegmentWithRange,java.util.List<java.lang.Long>> getSegmentToPredecessor()
Get Segment to Predecessor mapping.- Returns:
- A
Map
withSegmentWithRange
as key andList
ofInteger
as value.
-
getReplacementRanges
public java.util.Map<java.lang.Long,java.util.List<SegmentWithRange>> getReplacementRanges()
Returns a map of the segment numbers to segment/ranges. The segment numbers (keys) comprise the predecessor segments, while the segment/ranges comprise the successor segments and their corresponding ranges.- Returns:
- Predecessors mapped to successors.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getDelegationToken
public java.lang.String getDelegationToken()
-
-