Statistics
| Revision:

root / branches / v2_0_0_prep / libraries / libFMap_dal / src / org / gvsig / fmap / dal / feature / spi / index / FeatureIndexProviderServices.java @ 29326

History | View | Annotate | Download (2.38 KB)

1
/* gvSIG. Geographic Information System of the Valencian Government
2
*
3
* Copyright (C) 2007-2008 Infrastructures and Transports Department
4
* of the Valencian Government (CIT)
5
* 
6
* This program is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU General Public License
8
* as published by the Free Software Foundation; either version 2
9
* of the License, or (at your option) any later version.
10
* 
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
* GNU General Public License for more details.
15
* 
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
19
* MA  02110-1301, USA.
20
* 
21
*/
22

    
23
/*
24
* AUTHORS (In addition to CIT):
25
* 2008 {{Company}}   {{Task}}
26
*/
27
 
28

    
29
package org.gvsig.fmap.dal.feature.spi.index;
30

    
31
import org.gvsig.fmap.dal.exception.InitializeException;
32
import org.gvsig.fmap.dal.feature.FeatureAttributeDescriptor;
33
import org.gvsig.fmap.dal.feature.FeatureIndex;
34
import org.gvsig.fmap.dal.feature.FeatureType;
35
import org.gvsig.fmap.dal.feature.exception.FeatureIndexException;
36
import org.gvsig.fmap.dal.feature.spi.FeatureStoreProviderServices;
37

    
38

    
39
/**
40
 * SPI for all index implementations
41
 * @author jyarza
42
 *
43
 */
44
public interface FeatureIndexProviderServices extends FeatureIndex {
45
        
46
        /** Initializes this provider */
47
        public void initialize() throws InitializeException;
48
        
49
        /** Column to which belongs this index */
50
        public FeatureAttributeDescriptor getFeatureAttributeDescriptor();
51
        
52
        /** FeatureType to which belongs this index */
53
        public FeatureType getFeatureType();
54
        
55
        /** FeatureStore to which belongs this index */
56
        public FeatureStoreProviderServices getFeatureStoreProviderServices();
57
        
58
        /** Returns the absolute path (directory + filename) where this index is or will be stored */
59
        public String getFileName();
60
        
61
        /** Returns a temporary absolute path (directory + filename) according to the system environment */
62
        public String getTemporaryFileName();
63
        
64
        /** Calculates and returns a new filename for an index, using the given prefix and suffix */
65
        public String getNewFileName(String prefix, String sufix);
66
        
67
        /** Fills this index with the store's data */
68
        public void fill() throws FeatureIndexException;        
69
}
70