public class DefaultFeatureIndexes extends java.lang.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(java.lang.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.
|
java.util.Iterator |
iterator()
Returns an iterator over the indexes.
|
java.lang.String |
toString() |
public DefaultFeatureIndexes(DefaultFeatureStore store) throws DataException
store
- FeatureStore to whom this belongsDataException
public FeatureIndex getFeatureIndex(java.lang.String name)
FeatureIndexes
getFeatureIndex
in interface FeatureIndexes
name
- FeatureIndex namepublic void addIndex(FeatureIndexProviderServices index)
public java.util.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
public java.lang.String toString()
toString
in class java.lang.Object