public static final class FeatureQuery.Builder extends Object implements AutoCloseable
Builder
to create a FeatureQuery.Constructor and Description |
---|
Builder(FeatureQuery.Builder other) |
Modifier and Type | Method and Description |
---|---|
FeatureQuery.Builder |
bounds(Bounds bounds)
Sets the bounds the queried features must interact with.
|
FeatureQuery |
build()
Creates the
FeatureQuery for the configured conditions and settings. |
void |
close() |
FeatureQuery.Builder |
condition(Expression condition)
Sets the condition to apply.
|
FeatureQuery.Builder |
featureIds(List<Long> featureIds)
Sets the feature ids to select.
|
protected void |
finalize() |
FeatureQuery.Builder |
limit(long limit)
Sets the maximum number of features to return.
|
FeatureQuery.Builder |
sort(FeatureQuery.SortOperator order)
Sets the sorting of the features.
|
public Builder(@NotNull FeatureQuery.Builder other)
public void close()
close
in interface AutoCloseable
@NotNull public FeatureQuery build()
FeatureQuery
for the configured conditions and settings.FeatureQuery
for the configured conditions and settings.@NotNull public FeatureQuery.Builder bounds(@NotNull Bounds bounds)
bounds
- the bounds the queried features must interact with@NotNull public FeatureQuery.Builder condition(@NotNull Expression condition)
condition
- the condition to apply@NotNull public FeatureQuery.Builder featureIds(@NotNull List<Long> featureIds)
featureIds
- the feature ids to select@NotNull public FeatureQuery.Builder sort(@NotNull FeatureQuery.SortOperator order)
order
- the sorting of the features@NotNull public FeatureQuery.Builder limit(long limit)
limit
- the maximum number of features to return