com.bigdata.btree
Interface IAddressSerializer

All Superinterfaces:
Serializable
All Known Implementing Classes:
AddressSerializer, PackedAddressSerializer

Deprecated. Along with NodeSerializer by the IRabaCoder

public interface IAddressSerializer
extends Serializable

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.

Version:
$Id: IAddressSerializer.java 2265 2009-10-26 12:51:06Z thompsonbry $
Author:
Bryan Thompson
See Also:
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

getChildAddresses

void getChildAddresses(IAddressManager addressManager,
                       DataInput is,
                       long[] childAddr,
                       int nchildren)
                       throws IOException
Deprecated. 
De-serialize the child addresses for a node.

Parameters:
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.
Throws:
IOException

putChildAddresses

void putChildAddresses(IAddressManager addressManager,
                       DataOutputBuffer os,
                       long[] childAddr,
                       int nchildren)
                       throws IOException
Deprecated. 
Serialize the child addresses for a node.

Parameters:
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.
Throws:
IOException


Copyright © 2006-2009 SYSTAP, LLC. All Rights Reserved.