public class BlockDiskElementDescriptor<K> extends Object implements Serializable, Externalizable
| Constructor and Description |
|---|
BlockDiskElementDescriptor()
Default constructor
|
BlockDiskElementDescriptor(K key,
int[] blocks)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
int[] |
getBlocks()
This holds the block numbers.
|
K |
getKey() |
void |
readExternal(ObjectInput input)
Saves on reflection.
|
void |
setBlocks(int[] blocks) |
void |
setKey(K key) |
String |
toString()
For debugging.
|
void |
writeExternal(ObjectOutput output)
Saves on reflection.
|
public BlockDiskElementDescriptor()
public BlockDiskElementDescriptor(K key, int[] blocks)
key - the keyblocks - the datapublic void setKey(K key)
key - The key to set.public K getKey()
public void setBlocks(int[] blocks)
blocks - The blocks to set.public int[] getBlocks()
public String toString()
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
(non-Javadoc)
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionExternalizable.readExternal(java.io.ObjectInput)public void writeExternal(ObjectOutput output) throws IOException
(non-Javadoc)
writeExternal in interface ExternalizableIOExceptionExternalizable.writeExternal(java.io.ObjectOutput)Copyright © 2002–2022 The Apache Software Foundation. All rights reserved.