Package io.pravega.client.batch
Interface SegmentRange
-
- All Superinterfaces:
java.io.Serializable
@Beta public interface SegmentRange extends java.io.SerializableThis 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.SegmentRangeImplasImpl()For internal use.longgetEndOffset()Returns the end offset of the segment.java.lang.StringgetScope()Returns the scope name of the stream the segment is associated with.longgetSegmentId()Returns the segment number of Segment.longgetStartOffset()Returns the start offset of the segment.java.lang.StringgetStreamName()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
-
-