Class Query

java.lang.Object
com.influxdb.client.domain.Query

public class Query extends Object
Query influx using the Flux language
  • Field Details

  • Constructor Details

    • Query

      public Query()
  • Method Details

    • extern

      public Query extern(File extern)
    • getExtern

      public File getExtern()
      Get extern
      Returns:
      extern
    • setExtern

      public void setExtern(File extern)
    • query

      public Query query(String query)
    • getQuery

      public String getQuery()
      Query script to execute.
      Returns:
      query
    • setQuery

      public void setQuery(String query)
    • getType

      public Query.TypeEnum getType()
      The type of query. Must be \"flux\".
      Returns:
      type
    • params

      public Query params(Map<String,Object> params)
    • putParamsItem

      public Query putParamsItem(String key, Object paramsItem)
    • getParams

      public Map<String,Object> getParams()
      Enumeration of key/value pairs that respresent parameters to be injected into query (can only specify either this field or extern and not both)
      Returns:
      params
    • setParams

      public void setParams(Map<String,Object> params)
    • dialect

      public Query dialect(Dialect dialect)
    • getDialect

      public Dialect getDialect()
      Get dialect
      Returns:
      dialect
    • setDialect

      public void setDialect(Dialect dialect)
    • now

      public Query now(OffsetDateTime now)
    • getNow

      public OffsetDateTime getNow()
      Specifies the time that should be reported as \"now\" in the query. Default is the server's now time.
      Returns:
      now
    • setNow

      public void setNow(OffsetDateTime now)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object