public interface RecordHandle extends Lockable
Page
Modifier and Type | Field and Description |
---|---|
static int |
DEALLOCATE_PROTECTION_HANDLE
A lock with this recordHandle protects this deallocated page from
being freed and reallocated.
|
static int |
FIRST_RECORD_ID
First recordId that is used to identify a record.
|
static int |
INVALID_RECORD_HANDLE
An invalid record handle
|
static int |
PREVIOUS_KEY_HANDLE
A lock with this recordHandle is used to lock the range of keys
between the first key in a btree and keys previous to it.
|
static int |
RESERVED1_RECORD_HANDLE
Reserved for future use - name it and define it when you have a need
to use one.
|
static int |
RESERVED4_RECORD_HANDLE
Reserve for future use - name it and define it when you have a need to
use one
|
static int |
RESERVED5_RECORD_HANDLE |
Modifier and Type | Method and Description |
---|---|
ContainerKey |
getContainerId()
Return the identity of my container.
|
int |
getId()
Obtain the page-unique identifier for this record.
|
java.lang.Object |
getPageId()
Return the identity of my Page.
|
long |
getPageNumber()
Obtain the page number this record lives on.
|
int |
getSlotNumberHint()
What slot number might the record be at?
|
lockAttributes, lockerAlwaysCompatible, lockEvent, requestCompatible, unlockEvent
static final int INVALID_RECORD_HANDLE
static final int RESERVED1_RECORD_HANDLE
static final int DEALLOCATE_PROTECTION_HANDLE
static final int PREVIOUS_KEY_HANDLE
static final int RESERVED4_RECORD_HANDLE
static final int RESERVED5_RECORD_HANDLE
static final int FIRST_RECORD_ID
int getId()
long getPageNumber()
int getSlotNumberHint()
The raw store guarantees that the record handle of a record will not change, but it's slot number may. An implementation of a record handle may provide a hint of the slot number, which may help routines like Page.getSlotNumber() perform better.
If an implementation does not track slot numbers at all the implementation should just always return Page.FIRST_SLOT_NUMBER.
ContainerKey getContainerId()
java.lang.Object getPageId()
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.