Interface OptimizedQueryFilter

All Superinterfaces:
Filter

public interface OptimizedQueryFilter extends Filter
Filter API for query optimizations to apply.
Since:
1.46
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Hint that a total result count is not necessary.

    Methods inherited from interface net.solarnetwork.central.domain.Filter

    getFilter
  • Method Details

    • isWithoutTotalResultsCount

      boolean isWithoutTotalResultsCount()
      Hint that a total result count is not necessary.

      Setting this to true can improve the performance of most queries, when the overall total count of results is not needed. When set, features like FilterResults.getTotalResults() will not be available in the results.

      Returns:
      true to optimize query to omit a total result count