|
||||||||||
| 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
public class BlockDiskElementDescriptor
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. |
java.io.Serializable |
getKey()
|
void |
readExternal(java.io.ObjectInput input)
Saves on reflection. |
void |
setBlocks(int[] blocks)
|
void |
setKey(java.io.Serializable key)
|
java.lang.String |
toString()
For debugging. |
void |
writeExternal(java.io.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(java.io.Serializable key)
key - The key to set.public java.io.Serializable getKey()
public void setBlocks(int[] blocks)
blocks - The blocks to set.public int[] getBlocks()
public java.lang.String toString()
toString in class java.lang.Object
public void readExternal(java.io.ObjectInput input)
throws java.io.IOException,
java.lang.ClassNotFoundException
(non-Javadoc)
readExternal in interface java.io.Externalizablejava.io.IOException
java.lang.ClassNotFoundExceptionExternalizable.readExternal(java.io.ObjectInput)
public void writeExternal(java.io.ObjectOutput output)
throws java.io.IOException
(non-Javadoc)
writeExternal in interface java.io.Externalizablejava.io.IOExceptionExternalizable.writeExternal(java.io.ObjectOutput)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||