Class FeatureQuery.Builder

java.lang.Object
com.luciad.models.features.FeatureQuery.Builder
All Implemented Interfaces:
AutoCloseable
Enclosing class:
FeatureQuery

public static final class FeatureQuery.Builder extends Object implements AutoCloseable
Builder to create a FeatureQuery.
  • Constructor Details

    • Builder

      public Builder(@NotNull FeatureQuery.Builder other)
      Copy constructor.
      Parameters:
      other - the builder to copy.
  • Method Details

    • finalize

      protected void finalize()
      Overrides:
      finalize in class Object
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
    • build

      @NotNull public FeatureQuery build()
      Creates the FeatureQuery for the configured conditions and settings.
      Returns:
      the FeatureQuery for the configured conditions and settings.
    • bounds

      @NotNull public FeatureQuery.Builder bounds(@NotNull Bounds bounds)
      Sets the bounds the queried features must interact with.
      Parameters:
      bounds - the bounds the queried features must interact with
      Returns:
      this
    • condition

      @NotNull public FeatureQuery.Builder condition(@NotNull Expression condition)
      Sets the condition to apply.
      Parameters:
      condition - the condition to apply
      Returns:
      this
    • featureIds

      @NotNull public FeatureQuery.Builder featureIds(@NotNull List<Long> featureIds)
      Sets the feature ids to select.
      Parameters:
      featureIds - the feature ids to select
      Returns:
      this
    • sort

      @NotNull public FeatureQuery.Builder sort(@NotNull FeatureQuery.SortOperator order)
      Sets the sorting of the features.
      Parameters:
      order - the sorting of the features
      Returns:
      this
    • limit

      @NotNull public FeatureQuery.Builder limit(long limit)
      Sets the maximum number of features to return.
      Parameters:
      limit - the maximum number of features to return
      Returns:
      this
    • scaleLevelIndex

      @NotNull public FeatureQuery.Builder scaleLevelIndex(long scaleLevelIndex)
      Sets the scale level index.
      Parameters:
      scaleLevelIndex - the scale level index.
      Returns:
      this
      Since:
      2025.0.04
      See Also:
    • tooManyFeaturesCount

      @NotNull public FeatureQuery.Builder tooManyFeaturesCount(long featureCount)
      Sets the maximum number of features that can be handled by IFeatureModel#query without 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.