Revision 29289 branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/impl/DefaultFeatureIndexes.java
DefaultFeatureIndexes.java | ||
---|---|---|
44 | 44 |
import org.gvsig.tools.evaluator.EvaluatorFieldValueMatch; |
45 | 45 |
import org.gvsig.tools.evaluator.EvaluatorFieldValueNearest; |
46 | 46 |
import org.gvsig.tools.evaluator.EvaluatorFieldValueRange; |
47 |
import org.slf4j.Logger; |
|
48 |
import org.slf4j.LoggerFactory; |
|
47 | 49 |
|
48 | 50 |
/** |
49 | 51 |
* This class provides access to a FeatureStore local indexes and also decides |
... | ... | |
52 | 54 |
* @author jyarza |
53 | 55 |
*/ |
54 | 56 |
public class DefaultFeatureIndexes implements FeatureIndexes { |
55 |
|
|
57 |
private static final Logger logger = LoggerFactory |
|
58 |
.getLogger(DefaultFeatureIndexes.class); |
|
56 | 59 |
// Access by index name |
57 | 60 |
private Map names; |
58 | 61 |
// Store to which this belongs |
... | ... | |
99 | 102 |
* Using the given evaluator attributes, choose and use an appropriate index |
100 | 103 |
* to obtain a FeatureSet. If no index can be applied, then this method |
101 | 104 |
* returns null |
102 |
*
|
|
105 |
* |
|
103 | 106 |
* @param evaluator |
104 | 107 |
* @return FeatureSet or null if could not find any appropriate index. |
105 | 108 |
* @throws FeatureIndexException |
106 |
*
|
|
109 |
* |
|
107 | 110 |
*/ |
108 | 111 |
public FeatureSet getFeatureSet(Evaluator evaluator) |
109 | 112 |
throws FeatureIndexException { |
... | ... | |
209 | 212 |
// If there is not any any index supporting the function, use the |
210 | 213 |
// first one |
211 | 214 |
if (!index.isSupported()) { |
212 |
this.store |
|
213 |
.getLogger() |
|
214 |
.info( |
|
215 |
"No index support for the evaluator values. Using default index."); |
|
215 |
logger |
|
216 |
.info("No index support for the evaluator values. Using default index."); |
|
216 | 217 |
index = (ApplyIndex) applyIndexes.get(0); |
217 | 218 |
} |
218 | 219 |
|
Also available in: Unified diff