| java.lang.Object jdbm.recman.Location
Location | final class Location (Code) | | This class represents a location within a file. Both physical and
logical rowids are based on locations internally - this version is
used when there is no file block to back the location's data.
|
Constructor Summary | |
| Location(long block, short offset) Creates a location from a (block, offset) tuple. | | Location(long blockOffset) Creates a location from a combined block/offset long, as
used in the external representation of logical rowids. | | Location(PhysicalRowId src) Creates a location based on the data of the physical rowid. |
Method Summary | |
public boolean | equals(Object o) | long | getBlock() | short | getOffset() | 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. | public String | toString() |
Location | Location(long block, short offset)(Code) | | Creates a location from a (block, offset) tuple.
|
Location | Location(long blockOffset)(Code) | | Creates a location from a combined block/offset long, as
used in the external representation of logical rowids.
See Also: Location.toLong() |
Location | Location(PhysicalRowId src)(Code) | | Creates a location based on the data of the physical rowid.
|
getBlock | long getBlock()(Code) | | Returns the file block of the location
|
getOffset | short getOffset()(Code) | | Returns the offset within the block of the location
|
toLong | long toLong()(Code) | | Returns the external representation of a location when used
as a logical rowid, which combines the block and the offset
in a single long.
|
|
|