类 PositionImpl
java.lang.Object
org.apache.bookkeeper.mledger.impl.PositionImpl
- 所有已实现的接口:
Comparable<PositionImpl>,Position
- 直接已知子类:
PositionImplRecyclable
-
字段概要
字段修饰符和类型字段说明protected long[]static final PositionImplprotected longstatic final PositionImplprotected long -
构造器概要
构造器构造器说明PositionImpl(long ledgerId, long entryId) PositionImpl(long ledgerId, long entryId, long[] ackSet) PositionImpl(PositionImpl other) -
方法概要
修饰符和类型方法说明intcompareTo(PositionImpl other) booleanstatic PositionImplget(long ledgerId, long entryId) static PositionImplget(long ledgerId, long entryId, long[] ackSet) static PositionImplget(PositionImpl other) long[]longlonggetNext()Get the position of the entry next to this one.booleaninthashCode()voidsetAckSet(long[] ackSet) toString()String representation of virtual cursor - LedgerId:EntryId.
-
字段详细资料
-
ledgerId
protected long ledgerId -
entryId
protected long entryId -
ackSet
protected long[] ackSet -
EARLIEST
-
LATEST
-
-
构造器详细资料
-
PositionImpl
-
PositionImpl
-
PositionImpl
public PositionImpl(long ledgerId, long entryId) -
PositionImpl
public PositionImpl(long ledgerId, long entryId, long[] ackSet) -
PositionImpl
-
-
方法详细资料
-
get
-
get
-
get
-
getAckSet
public long[] getAckSet() -
setAckSet
public void setAckSet(long[] ackSet) -
getLedgerId
public long getLedgerId()- 指定者:
getLedgerId在接口中Position
-
getEntryId
public long getEntryId()- 指定者:
getEntryId在接口中Position
-
getNext
从接口复制的说明:PositionGet the position of the entry next to this one. The returned position might point to a non-existing, or not-yet existing entry -
toString
String representation of virtual cursor - LedgerId:EntryId. -
compareTo
- 指定者:
compareTo在接口中Comparable<PositionImpl>
-
hashCode
public int hashCode() -
equals
-
hasAckSet
public boolean hasAckSet() -
getPositionInfo
-