Revision 23760 branches/v2_0_0_prep/libraries/libFMap_data/src/org/gvsig/fmap/data/index/Index.java
Index.java | ||
---|---|---|
30 | 30 |
|
31 | 31 |
import java.util.List; |
32 | 32 |
|
33 |
import org.gvsig.fmap.data.feature.Feature; |
|
33 | 34 |
import org.gvsig.fmap.data.feature.FeatureAttributeDescriptor; |
35 |
import org.gvsig.fmap.data.feature.FeatureCollection; |
|
36 |
import org.gvsig.fmap.data.feature.FeatureID; |
|
34 | 37 |
import org.gvsig.fmap.data.feature.FeatureStore; |
35 | 38 |
import org.gvsig.fmap.data.feature.FeatureType; |
36 | 39 |
|
37 | 40 |
/** |
38 |
* |
|
41 |
* Interface for any Index.
|
|
39 | 42 |
* @author jyarza |
40 | 43 |
* |
41 | 44 |
*/ |
42 | 45 |
public interface Index { |
43 | 46 |
|
47 |
/** Column to which belongs this index */ |
|
44 | 48 |
public FeatureAttributeDescriptor getFeatureAttributeDescriptor(); |
49 |
|
|
50 |
/** FeatureType to which belongs this index */ |
|
45 | 51 |
public FeatureType getFeatureType(); |
52 |
|
|
53 |
/** FeatureStore to which belongs this index */ |
|
46 | 54 |
public FeatureStore getFeatureStore(); |
47 | 55 |
|
56 |
/** Index name */ |
|
57 |
public String getName(); |
|
58 |
|
|
59 |
/** Indicates if this index should overwrite itself on creation, if it exists already */ |
|
60 |
public boolean isOverwrite(); |
|
61 |
|
|
62 |
/** |
|
63 |
* This is the most basic insertion method. |
|
64 |
* Inserts an object into the index, with the specified id. |
|
65 |
*/ |
|
66 |
public void insert(Object o, FeatureID fid); |
|
67 |
|
|
68 |
/** |
|
69 |
* Inserts a Feature in the index. |
|
70 |
* The Feature must contain a column that matches this index's column (name and data type) |
|
71 |
* @param feat |
|
72 |
*/ |
|
73 |
public void insert(Feature feat); |
|
74 |
|
|
75 |
/** |
|
76 |
* Inserts a FeatureCollection into this index |
|
77 |
* FeatureType is not checked so it will accept any FeatureType |
|
78 |
* as long as exists a column with a valid name |
|
79 |
*/ |
|
80 |
public void insert(FeatureCollection data); |
|
81 |
|
|
82 |
/** |
|
83 |
* This is the most basic deletion method. |
|
84 |
* Deletes an object from the index, given its id |
|
85 |
**/ |
|
86 |
public void delete(Object o, FeatureID fid); |
|
87 |
|
|
88 |
/** |
|
89 |
* Deletes a Feature in the index. |
|
90 |
* The Feature must contain a column that matches this index's column (name and data type) |
|
91 |
* @param feat |
|
92 |
*/ |
|
93 |
public void delete(Feature feat); |
|
94 |
|
|
95 |
/** |
|
96 |
* Deletes a FeatureCollection from this index |
|
97 |
* FeatureType is not checked so it will accept any FeatureType |
|
98 |
* as long as exists a column with a valid name |
|
99 |
*/ |
|
100 |
public void delete(FeatureCollection data) throws IndexException; |
|
101 |
|
|
102 |
/** Performs a search in the index that meet the given parameters */ |
|
48 | 103 |
public List query(QueryParameters params) throws IndexException; |
49 | 104 |
|
50 |
public void rebuild() throws IndexException; |
|
51 | 105 |
|
52 | 106 |
} |
53 | 107 |
|
Also available in: Unified diff