程序包 com.cnosdb.dto

类 Query

java.lang.Object
com.cnosdb.dto.Query
直接已知子类:
BoundParameterQuery, BuiltQuery

public class Query extends Object
Represents a Query against Cnosdb.
作者:
stefan.majer [at] gmail.com
  • 构造器详细资料

    • Query

      public Query(String command)
      参数:
      command - the query command
    • Query

      public Query(String command, String database)
      参数:
      command - the query command
      database - the database to query
    • Query

      public Query(String command, String database, boolean requiresPost)
      参数:
      command - the query command
      database - the database to query
      requiresPost - true if the command requires a POST instead of GET to cnosdb
  • 方法详细资料

    • getCommand

      public String getCommand()
      返回:
      the command
    • getCommandWithUrlEncoded

      public String getCommandWithUrlEncoded()
      返回:
      url encoded command
    • getDatabase

      public String getDatabase()
      返回:
      the database
    • requiresPost

      public boolean requiresPost()
    • hashCode

      public int hashCode()
      覆盖:
      hashCode 在类中 Object
    • equals

      public boolean equals(Object obj)
      覆盖:
      equals 在类中 Object
    • encode

      public static String encode(String command)
      Encode a command into x-www-form-urlencoded format.
      参数:
      command - the command to be encoded.
      返回:
      a encoded command.