com.bigdata.btree
Class PackedAddressSerializer

java.lang.Object
  extended by com.bigdata.btree.PackedAddressSerializer
All Implemented Interfaces:
IAddressSerializer, Externalizable, Serializable

Deprecated. Along with NodeSerializer by the IRabaCoder

public class PackedAddressSerializer
extends Object
implements IAddressSerializer, Externalizable

Packs the addresses using the IAddressManager for the backing IRawStore.

Version:
$Id: PackedAddressSerializer.java 2265 2009-10-26 12:51:06Z thompsonbry $
Author:
Bryan Thompson
See Also:
Serialized Form

Field Summary
static IAddressSerializer INSTANCE
          Deprecated.  
 
Constructor Summary
PackedAddressSerializer()
          Deprecated.  
 
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.
 void readExternal(ObjectInput arg0)
          Deprecated.  
 void writeExternal(ObjectOutput arg0)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final IAddressSerializer INSTANCE
Deprecated. 
Constructor Detail

PackedAddressSerializer

public PackedAddressSerializer()
Deprecated. 
Method Detail

putChildAddresses

public void putChildAddresses(IAddressManager addressManager,
                              DataOutputBuffer os,
                              long[] childAddr,
                              int nchildren)
                       throws IOException
Deprecated. 
Description copied from interface: IAddressSerializer
Serialize the child addresses for a node.

Specified by:
putChildAddresses in interface IAddressSerializer
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

getChildAddresses

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

Specified by:
getChildAddresses in interface IAddressSerializer
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

readExternal

public void readExternal(ObjectInput arg0)
                  throws IOException,
                         ClassNotFoundException
Deprecated. 
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(ObjectOutput arg0)
                   throws IOException
Deprecated. 
Specified by:
writeExternal in interface Externalizable
Throws:
IOException


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