public class DefaultFeatureIndexes extends Object implements FeatureIndexes
Constructor and Description |
---|
DefaultFeatureIndexes(DefaultFeatureStore store)
Creates an empty DataIndexes for the given FeatureStore
|
Modifier and Type | Method and Description |
---|---|
void |
addIndex(FeatureIndexProviderServices index) |
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.
|
String |
toString() |
public DefaultFeatureIndexes(DefaultFeatureStore store) throws DataException
store
- FeatureStore to whom this belongsDataException
public FeatureIndex getFeatureIndex(String name)
FeatureIndexes
getFeatureIndex
in interface FeatureIndexes
name
- FeatureIndex namepublic void addIndex(FeatureIndexProviderServices index)
public Iterator iterator()
FeatureIndexes
iterator
in interface FeatureIndexes
public FeatureSet getFeatureSet(Evaluator evaluator) throws FeatureIndexException
getFeatureSet
in interface FeatureIndexes
evaluator
- FeatureIndexException
public boolean areValid()
FeatureIndexes
areValid
in interface FeatureIndexes