|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjdbm.recman.Location
final class Location
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 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. |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
Location(long block, short offset)
Location(long blockOffset)
toLong()
Location(PhysicalRowId src)
Method Detail |
---|
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
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |