|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IAddressManager
An interface that encapsulates operations on opaque identifiers used to
locate data within an IRawStore.
IndexSegmentBuilder which currently jumps through hoops in
order to make the nodes resolvable. When considering segments, note
that addresses may currently be directly tested for order since the
offset is in the high int32 word.| Field Summary | |
|---|---|
static long |
NULL
A null reference (0L). |
| Method Summary | |
|---|---|
int |
getByteCount(long addr)
The length of the datum in bytes. |
long |
getOffset(long addr)
The offset on the store at which the datum is stored. |
void |
packAddr(DataOutput out,
long addr)
Pack the address onto the output stream. |
long |
toAddr(int nbytes,
long offset)
Converts a byte count and offset into a long integer. |
String |
toString(long addr)
A human readable representation of the address. |
long |
unpackAddr(DataInput in)
Unpack the address from the input stream. |
| Field Detail |
|---|
static final long NULL
Note: It is a requirement that all implementations understand the value
0L as a null reference.
| Method Detail |
|---|
long toAddr(int nbytes,
long offset)
nbytes - The byte count.offset - The byte offset.
IllegalArgumentException - if the byte count is larger than can be represented by the
address manager.
IllegalArgumentException - if the byte offset is larger than can be represented by
the address manager.long getOffset(long addr)
addr - The opaque identifier that is the within store locator for
some datum.
int getByteCount(long addr)
addr - The opaque identifier that is the within store locator for
some datum.
void packAddr(DataOutput out,
long addr)
throws IOException
out - The output stream.addr - The opaque identifier that is the within store locator for
some datum.
IOException
long unpackAddr(DataInput in)
throws IOException
in - The input stream.
IOExceptionString toString(long addr)
addr - The opaque identifier that is the within store locator for
some datum.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||