Class 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 Detail

      • EventPointerInternal

        public EventPointerInternal()
    • Method Detail

      • fromBytes

        public static EventPointer fromBytes​(java.nio.ByteBuffer eventPointer)
        Description copied from interface: EventPointer
        Deserializes the event pointer from its serialized from obtained from calling EventPointer.toBytes().
        Parameters:
        eventPointer - A serialized event pointer.
        Returns:
        The event pointer object.