|
||||||||||
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.VariableDiskIndexSet
public class VariableDiskIndexSet
Implementación de VariableIndexSet 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 | |
---|---|
VariableDiskIndexSet()
|
Method Summary | |
---|---|
void |
addAll(VariableIndexSet initialSet)
Añade todos los índices que se pasan como parámetro |
void |
addIndex(long index)
Añade un índice al conjunto de índices |
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 |
long[] |
getIndexes()
DOCUMENT ME! |
void |
indexSetComplete()
Cierra el conjunto de índices para el almacenamiento, a partir de una llamada a este método no se puede escribir ningún índice más, sólamente se pueden leer |
void |
open()
Abre el almacenamiento del índice para la escritura de los índices. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VariableDiskIndexSet()
Method Detail |
---|
public void addAll(VariableIndexSet initialSet) throws java.io.IOException
initialSet
- Conjunto de índices que se quieren añadir
java.io.IOException
- Si se produce un fallo al añadir los índicespublic void addIndex(long index) throws java.io.IOException
VariableIndexSet
addIndex
in interface VariableIndexSet
index
- índice de la fila a la que apunta el índice que se quiere
añadir
java.io.IOException
- Si se produce un fallo al escribir el índiceVariableIndexSet.addIndex(long)
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() throws java.io.IOException
VariableIndexSet
open
in interface VariableIndexSet
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 indexSetComplete() throws java.io.IOException
VariableIndexSet
indexSetComplete
in interface VariableIndexSet
java.io.IOException
- Si se produce un fallo al cerrar los streams de
salidaVariableIndexSet.indexSetComplete()
public long[] getIndexes() throws java.io.IOException
getIndexes
in interface VariableIndexSet
java.io.IOException
VariableIndexSet.getIndexes()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |