public interface FeatureIndex
Modifier and Type | Method and Description |
---|---|
void |
delete(Feature feat)
Deletes a Feature in the index.
|
void |
delete(FeatureSet data)
Deletes a FeatureSet from this index
FeatureType is not checked so it will accept any FeatureType
as long as exists a column with a valid name
|
java.util.List |
getAttributeNames()
Attribute names
|
int |
getDataType()
Data type
|
FeatureSet |
getMatchFeatureSet(java.lang.Object value)
Returns a FeatureSet with the set of values that match the given value.
|
java.lang.String |
getName()
Index name
|
FeatureSet |
getNearestFeatureSet(int count,
java.lang.Object value)
Returns a FeatureSet with the set of up to
count values that are nearest to the given value. |
FeatureSet |
getNearestFeatureSet(int count,
java.lang.Object value,
java.lang.Object tolerance)
Returns a FeatureSet with the set of up to
count values whose distance to the given value
is not greater than tolerance |
FeatureSet |
getRangeFeatureSet(java.lang.Object value1,
java.lang.Object value2)
Returns a FeatureSet with the set of values that belong to the range defined by value1 and value2.
|
void |
insert(Feature feat)
Inserts a Feature in the index.
|
void |
insert(FeatureSet data)
Inserts a FeatureSet into this index
FeatureType is not checked so it will accept any FeatureType
as long as exists a column with a valid name
|
boolean |
isFilling()
Returns if the index is in the process of being filled with the Features
of a store.
|
boolean |
isValid()
Returns if the index is valid and might be used to get Features.
|
java.lang.String getName()
java.util.List getAttributeNames()
int getDataType()
void insert(Feature feat) throws DataException
feat
- DataException
void insert(FeatureSet data) throws DataException
DataException
void delete(Feature feat) throws DataException
feat
- DataException
void delete(FeatureSet data) throws FeatureIndexException
FeatureIndexException
FeatureSet getMatchFeatureSet(java.lang.Object value) throws FeatureIndexException
value
- is the value to match.FeatureIndexException
FeatureSet getRangeFeatureSet(java.lang.Object value1, java.lang.Object value2) throws FeatureIndexException
value1
- range lower limit.value2
- range higher limit.FeatureIndexException
FeatureSet getNearestFeatureSet(int count, java.lang.Object value) throws FeatureIndexException
count
values that are nearest to the given value.count
- maximum number of values that their resulting FeatureSet will returnvalue
- the value around which the nearest count
will be looked up.count
values that are nearest to the given value.FeatureIndexException
FeatureSet getNearestFeatureSet(int count, java.lang.Object value, java.lang.Object tolerance) throws FeatureIndexException
count
values whose distance to the given value
is not greater than tolerance
count
- maximum number of values that their resulting FeatureSet will returnvalue
- the value around which the nearest count
will be looked up.tolerance
- maximum distance from the given value.count
values that are nearest to the given value.FeatureIndexException
boolean isValid()
boolean isFilling()