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

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

public class FMemoryIndex
extends java.lang.Object
implements Index

Lee la estructura de directorios del índice y la pone en memoria


Constructor Summary
FMemoryIndex()
           
 
Method Summary
 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

FMemoryIndex

public FMemoryIndex()
Method Detail

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)