root / trunk / libraries / libFMap / src / com / iver / cit / gvsig / fmap / rendering / indexes / IndexFactory.java @ 1100
History | View | Annotate | Download (2.34 KB)
1 | 1100 | fjp | /* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
|
---|---|---|---|
2 | *
|
||
3 | * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
|
||
4 | *
|
||
5 | * This program is free software; you can redistribute it and/or
|
||
6 | * modify it under the terms of the GNU General Public License
|
||
7 | * as published by the Free Software Foundation; either version 2
|
||
8 | * of the License, or (at your option) any later version.
|
||
9 | *
|
||
10 | * This program is distributed in the hope that it will be useful,
|
||
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
13 | * GNU General Public License for more details.
|
||
14 | *
|
||
15 | * You should have received a copy of the GNU General Public License
|
||
16 | * along with this program; if not, write to the Free Software
|
||
17 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA.
|
||
18 | *
|
||
19 | * For more information, contact:
|
||
20 | *
|
||
21 | * Generalitat Valenciana
|
||
22 | * Conselleria d'Infraestructures i Transport
|
||
23 | * Av. Blasco Ib??ez, 50
|
||
24 | * 46010 VALENCIA
|
||
25 | * SPAIN
|
||
26 | *
|
||
27 | * +34 963862235
|
||
28 | * gvsig@gva.es
|
||
29 | * www.gvsig.gva.es
|
||
30 | *
|
||
31 | * or
|
||
32 | *
|
||
33 | * IVER T.I. S.A
|
||
34 | * Salamanca 50
|
||
35 | * 46005 Valencia
|
||
36 | * Spain
|
||
37 | *
|
||
38 | * +34 963163400
|
||
39 | * dac@iver.es
|
||
40 | */
|
||
41 | 214 | fernando | package com.iver.cit.gvsig.fmap.rendering.indexes; |
42 | |||
43 | 1034 | vcaballero | import com.iver.cit.gvsig.fmap.drivers.DriverIOException; |
44 | import com.iver.cit.gvsig.fmap.layers.VectorialAdapter; |
||
45 | |||
46 | 214 | fernando | import java.io.File; |
47 | import java.io.IOException; |
||
48 | |||
49 | |||
50 | 1034 | vcaballero | /**
|
51 | * Clase para gestionar los ?ndices.
|
||
52 | *
|
||
53 | * @author Vicente Caballero Navarro
|
||
54 | */
|
||
55 | 214 | fernando | public class IndexFactory { |
56 | 1034 | vcaballero | /**
|
57 | * Crea un fichero ?ndice en el disco con el path que se le pasa como
|
||
58 | * par?metro sobre la fuente de datos vectorial que se pasa como par?metro
|
||
59 | * y devuelve un objeto con el ?ndice en su memoria o un objeto que accede
|
||
60 | * al fichero de disco sin usar la memoria.
|
||
61 | *
|
||
62 | * @param adapter
|
||
63 | * @param file
|
||
64 | *
|
||
65 | * @return Fichero de ?ndices.
|
||
66 | *
|
||
67 | * @throws DriverIOException
|
||
68 | * @throws IOException
|
||
69 | */
|
||
70 | public FDiskIndex createIndex(VectorialAdapter adapter, File file) |
||
71 | throws DriverIOException, IOException { |
||
72 | //TODO implementar bien
|
||
73 | return null; |
||
74 | } |
||
75 | 214 | fernando | |
76 | 1034 | vcaballero | /**
|
77 | * Carga el fichero de ?ndices que se le pasa como par?metro en memoria o
|
||
78 | * en disco
|
||
79 | *
|
||
80 | * @param file Fichero.
|
||
81 | *
|
||
82 | * @return ?ndice.
|
||
83 | *
|
||
84 | * @throws IOException
|
||
85 | */
|
||
86 | public Index loadIndex(File file) throws IOException { |
||
87 | //TODO implementar bien
|
||
88 | return null; |
||
89 | } |
||
90 | 214 | fernando | } |