Package io.pravega.client.batch
Interface SegmentRange
-
- All Superinterfaces:
java.io.Serializable
@Beta public interface SegmentRange extends java.io.Serializable
This is used to represent range bounded portion of a Segment.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description io.pravega.client.batch.impl.SegmentRangeImpl
asImpl()
For internal use.long
getEndOffset()
Returns the end offset of the segment.java.lang.String
getScope()
Returns the scope name of the stream the segment is associated with.io.pravega.client.segment.impl.Segment
getSegment()
Returns the segment.long
getSegmentId()
Returns the segment number of Segment.long
getStartOffset()
Returns the start offset of the segment.java.lang.String
getStreamName()
Returns the stream name the segment is associated with.
-
-
-
Method Detail
-
getSegmentId
long getSegmentId()
Returns the segment number of Segment.- Returns:
- The segment number
-
getStreamName
java.lang.String getStreamName()
Returns the stream name the segment is associated with.- Returns:
- The stream name.
-
getScope
java.lang.String getScope()
Returns the scope name of the stream the segment is associated with.- Returns:
- The scope name.
-
getStartOffset
long getStartOffset()
Returns the start offset of the segment.- Returns:
- The start offset.
-
getEndOffset
long getEndOffset()
Returns the end offset of the segment.- Returns:
- The end offset.
-
asImpl
io.pravega.client.batch.impl.SegmentRangeImpl asImpl()
For internal use. Do not call.- Returns:
- This
-
getSegment
io.pravega.client.segment.impl.Segment getSegment()
Returns the segment.- Returns:
- The segment.
-
-