Package com.luciad.models.features
Class FeatureQuery.Builder
java.lang.Object
com.luciad.models.features.FeatureQuery.Builder
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
FeatureQuery
Builder to create a FeatureQuery.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the bounds the queried features must interact with.build()Creates theFeatureQueryfor the configured conditions and settings.cancellationToken(CancellationToken cancellationToken) Sets the query cancellation token.voidclose()condition(Expression condition) Sets the condition to apply.featureIds(List<Long> featureIds) Sets the feature ids to select.protected voidfinalize()limit(long limit) Sets the maximum number of features to return.scaleLevelIndex(long scaleLevelIndex) Sets the scale level index.sort(FeatureQuery.SortOperator order) Sets the sorting of the features.tooManyFeaturesCount(long featureCount) Sets the maximum number of features that can be handled byIFeatureModel#querywithout terminating the query.
-
Constructor Details
-
Builder
Copy constructor.- Parameters:
other- the builder to copy.
-
-
Method Details
-
finalize
protected void finalize() -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
build
Creates theFeatureQueryfor the configured conditions and settings.- Returns:
- the
FeatureQueryfor the configured conditions and settings.
-
bounds
Sets the bounds the queried features must interact with.- Parameters:
bounds- the bounds the queried features must interact with- Returns:
- this
-
condition
Sets the condition to apply.- Parameters:
condition- the condition to apply- Returns:
- this
-
featureIds
Sets the feature ids to select.- Parameters:
featureIds- the feature ids to select- Returns:
- this
-
sort
Sets the sorting of the features.- Parameters:
order- the sorting of the features- Returns:
- this
-
limit
Sets the maximum number of features to return.- Parameters:
limit- the maximum number of features to return- Returns:
- this
-
scaleLevelIndex
Sets the scale level index.- Parameters:
scaleLevelIndex- the scale level index.- Returns:
- this
- Since:
- 2025.0.04
- See Also:
-
tooManyFeaturesCount
Sets the maximum number of features that can be handled byIFeatureModel#querywithout terminating the query.- Parameters:
featureCount- the feature count.- Returns:
- this
- Since:
- 2026.0
- See Also:
-
cancellationToken
@NotNull public FeatureQuery.Builder cancellationToken(@NotNull CancellationToken cancellationToken) Sets the query cancellation token.Optional, if none is set a never-cancelling token is used.
- Returns:
- this.
-