org.gvsig.fmap.dal.feature
Interface FeatureIndexes


public interface FeatureIndexes

This interface gives access to a store's local indexes and also provides a delegated method for obtaining a resulting FeatureSet using the appropriate index given an Evaluator.

Author:
jyarza

Method Summary
 boolean areValid()
          Returns if all the indexes are valid and might be used to get Features.
 FeatureIndex getFeatureIndex(String name)
          Returns a FeatureIndex given the name with which it was created.
 FeatureSet getFeatureSet(Evaluator evaluator)
          Using the given evaluator attributes, choose and use an appropriate index to obtain a FeatureSet.
 Iterator iterator()
          Returns an iterator over the indexes.
 

Method Detail

getFeatureIndex

FeatureIndex getFeatureIndex(String name)
Returns a FeatureIndex given the name with which it was created.

Parameters:
name - FeatureIndex name
Returns:
FeatureIndex or null if it is not found.

getFeatureSet

FeatureSet getFeatureSet(Evaluator evaluator)
                         throws FeatureIndexException
Using the given evaluator attributes, choose and use an appropriate index to obtain a FeatureSet. If no index can be applied, then this method returns null

Parameters:
evaluator -
Returns:
FeatureSet or null if could not find any appropriate index.
Throws:
FeatureIndexException

iterator

Iterator iterator()
Returns an iterator over the indexes. Elements are of type FeatureIndex.

Returns:
Iterator over the FeatureIndex(es).

areValid

boolean areValid()
Returns if all the indexes are valid and might be used to get Features.

Returns:
if the indexes are valid


Copyright © 2004-2012 gvSIG. All Rights Reserved.