| Modifier and Type | Field and Description |
|---|---|
| private final PageKey | pageId
Page the record lives in. MT - Immutable |
| private final int | recordId
The actual record id. MT - Immutable |
| private transient int | slotNumberHint
Last slot number this record id was at. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. ref)Overrides java. Implement value equality. |
| public ContainerKey | getContainerId()
Implements org. Return the identity of my container. |
| public int | getId()
Implements org. Get my record id. MT - thread safe |
| public Object | getPageId()
Implements org. Return the identity of my Page. |
| public long | getPageNumber()
Implements org. Get my page number. |
| public int | Returns: The slot number the record handle may be at.Implements org. What slot number might the record be at? |
| public int | |
| public boolean | lockAttributes(int
use the bits in this int to decide if the user is
interested in this kind of lockable object. The bits are defined in
VirtualLockTable. For instance, the user may only ask
for TABLE_AND_ROWLOCK and if this is not a table or row lock, then
don't participate. flag, Hashtable<String, Object> if this decides to participate, put all relevant
attributes into the Hashtable. The complete list of interesting
attributes is listed in VirtualLockTable.
The following attributes must be present for all participating
lockables:
VirtualLockTable.LOCKNAME,
VirtualLockTable.LOCKTYPE,
either VirtualLockTable.CONTAINERID or VirtualLockTable.CONGLOMID,
attributes)MT - this routine must be MP safe, caller will not be single threading the lock manager. Implements org. This lockable wants to participate in the Virtual Lock table. |
| public boolean | lockerAlwaysCompatible()
Implements org. Is a caller that holds a lock compatible with themselves? |
| public void | lockEvent(Latch
Latch descriptor lockInfo)Implements org. Lock me. |
| public boolean | requestCompatible(Object
The desired qualifier requestedQualifier, Object The already granted qualifier grantedQualifier)Implements org. Determine if this request can be granted. |
| public String | |
| public void | unlockEvent(Latch
Latch descriptor lockInfo)Implements org. Unlock me. |
| pageId | back to summary |
|---|---|
| private final PageKey pageId Page the record lives in. MT - Immutable | |
| recordId | back to summary |
|---|---|
| private final int recordId The actual record id. MT - Immutable | |
| slotNumberHint | back to summary |
|---|---|
| private transient int slotNumberHint Last slot number this record id was at. | |
| RecordId | back to summary |
|---|---|
| public RecordId(ContainerKey container, long pageNumber, int recordId) | |
| RecordId | back to summary |
|---|---|
| public RecordId(PageKey pageId, int recordId) | |
| RecordId | back to summary |
|---|---|
| public RecordId(PageKey pageId, int recordId, int current_slot) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object ref) Overrides java. Implement value equality.
| |
| getContainerId | back to summary |
|---|---|
| public ContainerKey getContainerId() Implements org. Doc from org. Return the identity of my container. | |
| getId | back to summary |
|---|---|
| public int getId() Implements org. Get my record id.
| |
| getPageId | back to summary |
|---|---|
| public Object getPageId() Implements org. Doc from org. Return the identity of my Page. | |
| getPageNumber | back to summary |
|---|---|
| public long getPageNumber() Implements org. Get my page number.
| |
| getSlotNumberHint | back to summary |
|---|---|
| public int getSlotNumberHint() Implements org. What slot number might the record be at? The raw store guarantees that the record handle of a record will not change, but its slot number may. When a RecordId is constructed the caller could have provided a slot number, if so return that slot number hint here. If a hint was not provided then the default Page.FIRST_SLOT_NUMBER will be returned.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Return a hashcode based on value.
| |
| lockAttributes | back to summary |
|---|---|
| public boolean lockAttributes(int flag, Hashtable<String, Object> attributes) Implements org. This lockable wants to participate in the Virtual Lock table.
| |
| lockerAlwaysCompatible | back to summary |
|---|---|
| public boolean lockerAlwaysCompatible() Implements org. Is a caller that holds a lock compatible with themselves?
Row locks held in the same transaction are always compatible with
themselves.
| |
| lockEvent | back to summary |
|---|---|
| public void lockEvent(Latch lockInfo) Implements org. Lock me.
| |
| requestCompatible | back to summary |
|---|---|
| public boolean requestCompatible(Object requestedQualifier, Object grantedQualifier) Implements org. Determine if this request can be granted.
Implements the grant/wait lock logic for row locks. See the
table in RowLock for more information.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| unlockEvent | back to summary |
|---|---|
| public void unlockEvent(Latch lockInfo) Implements org. Unlock me.
| |