|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
NodeSerializer by the IRabaCoder
public interface IAddressSerializer
Interface for (de-)serialization of addresses of child nodes and leaves as
recorded on a Node.
Note: it is possible to use additional information from the
IAddressManager associated with an IRawStore to decide how to
(de-)serialize the addresses. This does have the effect of making the binary
format of the serialized addresses different from store to store, e.g., if
the #of offset bits is different on the two stores. However, we do NOT copy
index nodes using a binary format from one store to another. Instead,
overflow processing uses an ITupleIterator to visit the keys and
values and replicate them onto the new store.
NodeSerializer| Method Summary | |
|---|---|
void |
getChildAddresses(IAddressManager addressManager,
DataInput is,
long[] childAddr,
int nchildren)
Deprecated. De-serialize the child addresses for a node. |
void |
putChildAddresses(IAddressManager addressManager,
DataOutputBuffer os,
long[] childAddr,
int nchildren)
Deprecated. Serialize the child addresses for a node. |
| Method Detail |
|---|
void getChildAddresses(IAddressManager addressManager,
DataInput is,
long[] childAddr,
int nchildren)
throws IOException
is - The input stream.childAddr - The array into which the addresses must be written.nchildren - The #of valid values in the array. The values in indices
[0:n-1] are defined and must be read from the buffer and
written on the array.
IOException
void putChildAddresses(IAddressManager addressManager,
DataOutputBuffer os,
long[] childAddr,
int nchildren)
throws IOException
os - The output stream.childAddr - The array of child addresses to be written.nchildren - The #of valid values in the array. The values in indices
[0:n-1] are defined and must be written.
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||