|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.feature.persistence.query.Query
public class Query
Encapsulates the parameter of a query to a FeatureStore.
| Nested Class Summary | |
|---|---|
static class |
Query.QueryHint
Names for hints and additional parameters that a FeatureStore implementation may take into account to
increase efficient query processing. |
| Constructor Summary | |
|---|---|
Query(IdFilter filter,
String featureVersion,
ICRS srsName,
SortProperty[] sortBy)
Creates a new Query instance that selects features based on an IdFilter. |
|
Query(QName ftName,
Filter filter,
int scale,
int maxFeatures,
double resolution)
Creates a new Query instance. |
|
Query(TypeName[] typeNames,
Filter filter,
String featureVersion,
ICRS srsName,
SortProperty[] sortBy)
Creates a new Query instance. |
|
| Method Summary | |
|---|---|
Filter |
getFilter()
Returns the Filter. |
Object |
getHint(Query.QueryHint code)
|
int |
getMaxFeatures()
|
Envelope |
getPrefilterBBox()
Returns an Envelope suitable for performing a spatial pre-filtering step on the set of feature
candidates. |
SortProperty[] |
getSortProperties()
Returns the sort criteria. |
TypeName[] |
getTypeNames()
Returns the names of the requested feature types. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Query(QName ftName,
Filter filter,
int scale,
int maxFeatures,
double resolution)
Query instance.
ftName - name of the requested feature type, must not be nullfilter - additional filter constraints, may be null, if not null, all contained
geometry operands must have a non-null CRSscale - if scale is positive, a scale query hint will be usedmaxFeatures - may be -1 if no limit needs to be exercisedresolution - if resolution is positive, a pixel resolution hint will be used
public Query(TypeName[] typeNames,
Filter filter,
String featureVersion,
ICRS srsName,
SortProperty[] sortBy)
Query instance.
typeNames - feature type names to be queried, must not be null and contain at least one entryfilter - filter to be applied, can be null, if not null, all contained geometry
operands must have a non-null CRSfeatureVersion - specific feature version to be returned, can be nullsrsName - SRS for the returned geometries, can be nullsortBy - sort criteria to be applied, can be null
public Query(IdFilter filter,
String featureVersion,
ICRS srsName,
SortProperty[] sortBy)
Query instance that selects features based on an IdFilter.
filter - filter to be applied, must not be nullfeatureVersion - specific feature version to be returned, can be nullsrsName - SRS for the returned geometries, can be nullsortBy - sort criteria to be applied, can be null| Method Detail |
|---|
public Object getHint(Query.QueryHint code)
public Envelope getPrefilterBBox()
Envelope suitable for performing a spatial pre-filtering step on the set of feature
candidates.
The returned Envelope is determined by the following strategy:
Query contains an OperatorFilter, it is attempted to extract an Envelope from
it. TODO Note that the envelope is only used when the corresponding property name targets a property of the root
feature (and not a property of a subfeature).null is returned.
Envelope suitable for pre-filtering feature candidates, can be nullpublic TypeName[] getTypeNames()
null (but may be empty for id filter
queries)public Filter getFilter()
Filter.
nullpublic SortProperty[] getSortProperties()
null (but may be empty)public int getMaxFeatures()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||