Interface SegmentRange

  • All Superinterfaces:
    java.io.Serializable
    All Known Implementing Classes:
    SegmentRangeImpl

    @Beta
    public interface SegmentRange
    extends java.io.Serializable
    This is used to represent range bounded portion of a Segment.
    • 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

        SegmentRangeImpl asImpl()
        For internal use. Do not call.
        Returns:
        This