|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.hardcode.gdbms.engine.data.indexes.DiskIndexSet
com.hardcode.gdbms.engine.data.indexes.FixedDiskIndexSet
public class FixedDiskIndexSet
Implementación de FixedIndexSet que escribe los índices en un fichero
Field Summary |
---|
Fields inherited from class com.hardcode.gdbms.engine.data.indexes.DiskIndexSet |
---|
buffer, file, fis, fos, inputChannel, outputChannel, writeBuffer |
Constructor Summary | |
---|---|
FixedDiskIndexSet(long size)
Crea un nuevo FixedDiskIndexSet. |
Method Summary | |
---|---|
void |
close()
Cierra el fichero de índices |
long |
getIndex(long nth)
Devuelve el índice nth-ésimo si se invocó previamente a indexSetComplete y lanza una excepción en caso contrario |
long |
getIndexCount()
Devuelve el número de índices si se invocó previamente a indexSetComplete y lanza una excepción en caso contrario |
void |
open(java.io.File f)
Abre el almacenamiento del índice para la escritura de los índices |
void |
setIndex(long index,
long value)
establece el índice 'index'-ésimo para que apunte a la fila 'value' |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FixedDiskIndexSet(long size)
size
- DOCUMENT ME!Method Detail |
---|
public long getIndex(long nth) throws java.io.IOException
BaseIndexSet
getIndex
in interface BaseIndexSet
nth
- índice del índice que se quiere obtener
java.io.IOException
- Si se produce un fallo al recuperar el índiceBaseIndexSet.getIndex(long)
public long getIndexCount()
BaseIndexSet
getIndexCount
in interface BaseIndexSet
BaseIndexSet.getIndexCount()
public void open(java.io.File f) throws java.io.IOException
FixedIndexSet
open
in interface FixedIndexSet
f
- fichero en el que se guardará el índice
java.io.IOException
- Si se produce un fallo al abrircom.hardcode.gdbms.engine.data.indexes.VariableIndexSet#open(java.io.File)
public void close() throws java.io.IOException
BaseIndexSet
close
in interface BaseIndexSet
java.io.IOException
- Si se produce un fallo al cerrarBaseIndexSet.close()
public void setIndex(long index, long value) throws java.io.IOException
FixedIndexSet
setIndex
in interface FixedIndexSet
index
- índice que se quiere cambiarvalue
- índice de la fila a la que apunta este índice
java.io.IOException
- Si se produce un fallo al escribir el índiceFixedIndexSet.setIndex(long,
long)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |