|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jcs.auxiliary.disk.block.BlockDiskElementDescriptor<K>
public class BlockDiskElementDescriptor<K extends Serializable>
This represents an element on disk. This is used when we persist the keys. We only store the block addresses in memory. We don't need the length here, since all the blocks are the same size receyle bin.
| Constructor Summary | |
|---|---|
BlockDiskElementDescriptor()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BlockDiskElementDescriptor()
| Method Detail |
|---|
public 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()
toString in class Object
public void readExternal(ObjectInput input)
throws IOException,
ClassNotFoundException
(non-Javadoc)
readExternal in interface ExternalizableIOException
ClassNotFoundExceptionExternalizable.readExternal(java.io.ObjectInput)
public void writeExternal(ObjectOutput output)
throws IOException
(non-Javadoc)
writeExternal in interface ExternalizableIOExceptionExternalizable.writeExternal(java.io.ObjectOutput)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||