public class BlockDiskElementDescriptor<K> extends Object implements Serializable, Externalizable
Constructor and Description |
---|
BlockDiskElementDescriptor() |
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 void setBlocks(int[] blocks)
blocks
- The blocks to set.public int[] getBlocks()
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
(non-Javadoc)
readExternal
in interface Externalizable
IOException
ClassNotFoundException
Externalizable.readExternal(java.io.ObjectInput)
public void writeExternal(ObjectOutput output) throws IOException
(non-Javadoc)
writeExternal
in interface Externalizable
IOException
Externalizable.writeExternal(java.io.ObjectOutput)
Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.