public class RWAddressManager extends Object implements IAddressManager
NULL
Constructor and Description |
---|
RWAddressManager(RWStore store) |
Modifier and Type | Method and Description |
---|---|
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.
|
long |
getPhysicalAddress(long addr)
Determine the unencoded physical address
|
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.
|
public RWAddressManager(RWStore store)
public int getByteCount(long addr)
IAddressManager
IRawStore
.getByteCount
in interface IAddressManager
addr
- The opaque identifier that is the within store locator for
some datum.public long getOffset(long addr)
IAddressManager
getOffset
in interface IAddressManager
addr
- The opaque identifier that is the within store locator for
some datum.public long getPhysicalAddress(long addr)
IAddressManager
getPhysicalAddress
in interface IAddressManager
addr
- The encoded addresspublic long toAddr(int nbytes, long offset)
IAddressManager
toAddr
in interface IAddressManager
nbytes
- The byte count.offset
- The byte offset.public String toString(long addr)
IAddressManager
toString
in interface IAddressManager
addr
- The opaque identifier that is the within store locator for
some datum.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.