com.iver.cit.gvsig.fmap.rendering.indexes
Class FDiskIndex

java.lang.Object
  extended bycom.iver.cit.gvsig.fmap.rendering.indexes.FDiskIndex
All Implemented Interfaces:
Index

public class FDiskIndex
extends java.lang.Object
implements Index

Resuelve las peticiones de la interfaz Index accediendo siempre a disco


Constructor Summary
FDiskIndex()
           
 
Method Summary
 void addIndex(IGeometry g, int index)
          Añade la geometria que se pasa como parámetro al índice
 void closeIndexFile()
          Cierra el fichero de índices
 int[] getRecordIndexes(java.awt.geom.Rectangle2D rect)
          Dado un rectángulo en coordenadas del mapa se devuelve un array de indices de los registros cuyas features estén contenidas o intersecten en dicho rectángulo.
 void openIndexFile(java.lang.String file)
          Abre el fichero de índices
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FDiskIndex

public FDiskIndex()
Method Detail

addIndex

public void addIndex(IGeometry g,
                     int index)
Añade la geometria que se pasa como parámetro al índice

Parameters:
g - DOCUMENT ME!
index - DOCUMENT ME!

openIndexFile

public void openIndexFile(java.lang.String file)
Description copied from interface: Index
Abre el fichero de índices

Specified by:
openIndexFile in interface Index
Parameters:
file - Fichero.
See Also:
Index.openIndexFile(java.lang.String)

closeIndexFile

public void closeIndexFile()
Description copied from interface: Index
Cierra el fichero de índices

Specified by:
closeIndexFile in interface Index
See Also:
Index.closeIndexFile()

getRecordIndexes

public int[] getRecordIndexes(java.awt.geom.Rectangle2D rect)
                       throws DriverIOException,
                              IndexNotExistsException
Description copied from interface: Index
Dado un rectángulo en coordenadas del mapa se devuelve un array de indices de los registros cuyas features estén contenidas o intersecten en dicho rectángulo. En caso de que ninguna está contenida se devuelve un array vacío. Si se invoca esta función pero no hay ningún índice definido se lanzará una IndexNotExistsException

Specified by:
getRecordIndexes in interface Index
Parameters:
rect - Rectángulo.
Returns:
Índices.
Throws:
IndexNotExistsException
DriverIOException
See Also:
Index.getRecordIndexes(java.awt.geom.Rectangle2D)