final class Location
extends java.lang.Object
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 block,
short offset)
Creates a location from a (block, offset) tuple.
|
Location(PhysicalRowId src)
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()
Returns the file block of the location
|
(package private) short |
getOffset()
Returns the offset within the block of the location
|
(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() |
Location(long block, short offset)
Location(long blockOffset)
toLong()
Location(PhysicalRowId src)
long getBlock()
short getOffset()
long toLong()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Cees de Groot (C) 2000-2001. All rights reserved http://jdbm.sourceforge.net