final class Location
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private long |
blockId
The block in which the data is stored
|
private short |
offset
The offset within this block
|
| Constructor and Description |
|---|
Location(long blockOffset)
Creates a location from a combined block/offset long, as used in the
external representation of logical rowids.
|
Location(long blockId,
short offset)
Creates a location from a (block, offset) tuple.
|
Location(PhysicalRowId physicalRowId)
Creates a location based on the data of the physical rowid.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
(package private) long |
getBlock() |
(package private) short |
getOffset()
Returns the offset within the block of the location
|
int |
hashCode() |
(package private) long |
toLong()
Returns the external representation of a location when used
as a logical rowid, which combines the block and the offset
in a single long.
|
java.lang.String |
toString() |
private long blockId
private short offset
Location(long blockId,
short offset)
blockId - The block identifieroffset - the offset in the blockLocation(long blockOffset)
blockOffset - The block + offset combinaisonLocation(PhysicalRowId physicalRowId)
physicalRowId - The physical row id used as a base for the Location creationlong getBlock()
short getOffset()
long toLong()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object