Package io.pravega.client.stream.impl
Class StreamCutInternal
- java.lang.Object
-
- io.pravega.client.stream.impl.StreamCutInternal
-
- All Implemented Interfaces:
StreamCut,java.io.Serializable
- Direct Known Subclasses:
StreamCutImpl
public abstract class StreamCutInternal extends java.lang.Object implements StreamCut
This is an abstract class which acts an intermediate class to make the actual StreamCut implementation opaque.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StreamCutInternal()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static StreamCutInternalfrom(java.lang.String cut)Obtains the a StreamCut object from its Base64 representation obtained viaStreamCut.asText().static StreamCutInternalfromBytes(java.nio.ByteBuffer cut)Deserializes the cut from its serialized from obtained from callingStreamCut.toBytes().abstract java.util.Map<Segment,java.lang.Long>getPositions()Get a mapping of Segment and its offset.abstract StreamgetStream()GetStreamfor the StreamCut.
-
-
-
Method Detail
-
getPositions
public abstract java.util.Map<Segment,java.lang.Long> getPositions()
Get a mapping of Segment and its offset.- Returns:
- Map of Segment to its offset.
-
fromBytes
public static StreamCutInternal fromBytes(java.nio.ByteBuffer cut)
Description copied from interface:StreamCutDeserializes the cut from its serialized from obtained from callingStreamCut.toBytes().- Parameters:
cut- A serialized position.- Returns:
- The StreamCut object.
-
from
public static StreamCutInternal from(java.lang.String cut)
Description copied from interface:StreamCutObtains the a StreamCut object from its Base64 representation obtained viaStreamCut.asText().- Parameters:
cut- Base64 representation of StreamCut obtained usingStreamCut.asText()- Returns:
- The StreamCut object
-
-