Package io.pravega.client.stream.impl
Class EventPointerInternal
- java.lang.Object
-
- io.pravega.client.stream.impl.EventPointerInternal
-
- All Implemented Interfaces:
EventPointer
- Direct Known Subclasses:
EventPointerImpl
public abstract class EventPointerInternal extends java.lang.Object implements EventPointer
Pravega provides to a reader the ability to read an isolated event. This feature is useful to enable applications to occasionally perform random reads of events they have already processed. For example, if we index events but store the event bytes in Pravega, then we can go back and use this call to fetch the event bytes. Event pointers are opaque objects. Internally, they map to a segment, start offset pair. It also includes the length for efficient buffering.
-
-
Constructor Summary
Constructors Constructor Description EventPointerInternal()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EventPointerfromBytes(java.nio.ByteBuffer eventPointer)Deserializes the event pointer from its serialized from obtained from callingEventPointer.toBytes().-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.pravega.client.stream.EventPointer
asImpl, toBytes
-
-
-
-
Method Detail
-
fromBytes
public static EventPointer fromBytes(java.nio.ByteBuffer eventPointer)
Description copied from interface:EventPointerDeserializes the event pointer from its serialized from obtained from callingEventPointer.toBytes().- Parameters:
eventPointer- A serialized event pointer.- Returns:
- The event pointer object.
-
-