Interface QueryParameter

All Known Implementing Classes:
Query

public interface QueryParameter
Request parameters a query should support.
  • Method Summary

    Modifier and Type
    Method
    Description
    Add the count parameter as specified by the SensorThingsAPI specification.
    filter(String options)
    Add the filter parameter as specified by the SensorThingsAPI specification.
    orderBy(String clause)
    Add the orderBy parameter as specified by the SensorThingsAPI specification.
    skip(int n)
    Add the skip parameter as specified by the SensorThingsAPI specification.
    top(int n)
    Add the top parameter as specified by the SensorThingsAPI specification.
  • Method Details

    • filter

      Query filter(String options)
      Add the filter parameter as specified by the SensorThingsAPI specification.
      Parameters:
      options - the filter options as a string
      Returns:
      the updated instance of the query
    • top

      Query top(int n)
      Add the top parameter as specified by the SensorThingsAPI specification.
      Parameters:
      n - the limit
      Returns:
      the updated instance of the query
    • orderBy

      Query orderBy(String clause)
      Add the orderBy parameter as specified by the SensorThingsAPI specification.
      Parameters:
      clause - the order clause
      Returns:
      the updated instance of the query
    • skip

      Query skip(int n)
      Add the skip parameter as specified by the SensorThingsAPI specification.
      Parameters:
      n - the number of entities to skip
      Returns:
      the updated instance of the query
    • count

      Query count()
      Add the count parameter as specified by the SensorThingsAPI specification.
      Returns:
      the updated instance of the query