01: package com.jofti.core;
02:
03: import com.jofti.store.FilePositionHolder;
04:
05: /**
06: * <p>Interface defining key used by PagdLeafNodes to store and retrieve Page data.</p>
07: * <p>
08: * Each Key contains an array of file positions and an id which is unique for the key.
09: * </p>
10: * @author xenephon
11: *
12: */
13: public interface IStoreKey {
14:
15: public long getId();
16:
17: public FilePositionHolder[] getFilePositions();
18:
19: public boolean isNewKey();
20:
21: public void setNewKey(boolean newKey);
22:
23: public void setFilePositions(FilePositionHolder[] positions);
24:
25: public Object clone();
26:
27: public void setNumber(int number);
28:
29: public int getNumber();
30: }
|