类 PositionImpl

java.lang.Object
org.apache.bookkeeper.mledger.impl.PositionImpl
所有已实现的接口:
Comparable<PositionImpl>, Position
直接已知子类:
PositionImplRecyclable

public class PositionImpl extends Object implements Position, Comparable<PositionImpl>
  • 字段详细资料

    • ledgerId

      protected long ledgerId
    • entryId

      protected long entryId
    • ackSet

      protected long[] ackSet
    • EARLIEST

      public static final PositionImpl EARLIEST
    • LATEST

      public static final PositionImpl LATEST
  • 构造器详细资料

  • 方法详细资料

    • get

      public static PositionImpl get(long ledgerId, long entryId)
    • get

      public static PositionImpl get(long ledgerId, long entryId, long[] ackSet)
    • get

      public static PositionImpl get(PositionImpl other)
    • getAckSet

      public long[] getAckSet()
    • setAckSet

      public void setAckSet(long[] ackSet)
    • getLedgerId

      public long getLedgerId()
      指定者:
      getLedgerId 在接口中 Position
    • getEntryId

      public long getEntryId()
      指定者:
      getEntryId 在接口中 Position
    • getNext

      public PositionImpl getNext()
      从接口复制的说明: Position
      Get the position of the entry next to this one. The returned position might point to a non-existing, or not-yet existing entry
      指定者:
      getNext 在接口中 Position
      返回:
      the position of the next logical entry
    • toString

      public String toString()
      String representation of virtual cursor - LedgerId:EntryId.
      覆盖:
      toString 在类中 Object
    • compareTo

      public int compareTo(PositionImpl other)
      指定者:
      compareTo 在接口中 Comparable<PositionImpl>
    • hashCode

      public int hashCode()
      覆盖:
      hashCode 在类中 Object
    • equals

      public boolean equals(Object obj)
      覆盖:
      equals 在类中 Object
    • hasAckSet

      public boolean hasAckSet()
    • getPositionInfo

      public MLDataFormats.PositionInfo getPositionInfo()