org.axiondb.engine.indexes
Class BaseArrayIndexLoader
java.lang.Object
org.axiondb.engine.indexes.BaseArrayIndexLoader
- All Implemented Interfaces:
- IndexLoader
- Direct Known Subclasses:
- IntArrayIndexLoader, ObjectArrayIndexLoader
public abstract class BaseArrayIndexLoader
- extends java.lang.Object
- implements IndexLoader
- Version:
- $Revision: 1.6 $ $Date: 2005/05/02 22:22:47 $
Method Summary |
Index |
loadIndex(Table table,
java.io.File dataDirectory)
|
protected abstract Index |
makeIndex(java.lang.String name,
Column col,
boolean unique,
java.lang.Object keys,
org.apache.commons.collections.primitives.IntList values)
|
protected org.apache.commons.collections.primitives.IntList |
readIntList(java.io.ObjectInputStream in)
|
protected abstract java.lang.Object |
readKeys(java.io.ObjectInputStream in)
|
void |
saveIndex(Index ndx,
java.io.File dataDirectory)
|
void |
saveIndexAfterTruncate(Index ndx,
java.io.File dataDirectory)
|
protected abstract void |
writeKeys(java.io.ObjectOutputStream out,
BaseArrayIndex baseindex)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseArrayIndexLoader
public BaseArrayIndexLoader()
loadIndex
public final Index loadIndex(Table table,
java.io.File dataDirectory)
throws AxionException
- Specified by:
loadIndex
in interface IndexLoader
- Throws:
AxionException
saveIndex
public final void saveIndex(Index ndx,
java.io.File dataDirectory)
throws AxionException
- Specified by:
saveIndex
in interface IndexLoader
- Throws:
AxionException
saveIndexAfterTruncate
public void saveIndexAfterTruncate(Index ndx,
java.io.File dataDirectory)
throws AxionException
- Specified by:
saveIndexAfterTruncate
in interface IndexLoader
- Throws:
AxionException
makeIndex
protected abstract Index makeIndex(java.lang.String name,
Column col,
boolean unique,
java.lang.Object keys,
org.apache.commons.collections.primitives.IntList values)
readIntList
protected org.apache.commons.collections.primitives.IntList readIntList(java.io.ObjectInputStream in)
throws java.io.IOException
- Throws:
java.io.IOException
readKeys
protected abstract java.lang.Object readKeys(java.io.ObjectInputStream in)
throws java.io.IOException,
java.lang.ClassNotFoundException
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
writeKeys
protected abstract void writeKeys(java.io.ObjectOutputStream out,
BaseArrayIndex baseindex)
throws java.io.IOException
- Throws:
java.io.IOException