public abstract class StreamCutInternal extends java.lang.Object implements StreamCut
Constructor and Description |
---|
StreamCutInternal() |
Modifier and Type | Method and Description |
---|---|
static StreamCutInternal |
from(java.lang.String cut)
Obtains the a StreamCut object from its Base64 representation obtained via
StreamCut.asText() . |
static StreamCutInternal |
fromBytes(java.nio.ByteBuffer cut)
Deserializes the cut from its serialized from obtained from calling
StreamCut.toBytes() . |
abstract java.util.Map<Segment,java.lang.Long> |
getPositions()
Get a mapping of Segment and its offset.
|
abstract Stream |
getStream()
Get
Stream for the StreamCut. |
public abstract java.util.Map<Segment,java.lang.Long> getPositions()
public static StreamCutInternal fromBytes(java.nio.ByteBuffer cut)
StreamCut
StreamCut.toBytes()
.public static StreamCutInternal from(java.lang.String cut)
StreamCut
StreamCut.asText()
.from
in interface StreamCut
cut
- Base64 representation of StreamCut obtained using StreamCut.asText()