Package org.influxdb.dto
Class Query
java.lang.Object
org.influxdb.dto.Query
- Direct Known Subclasses:
BoundParameterQuery
,BuiltQuery
public class Query extends Object
Represents a Query against Influxdb.
- Author:
- stefan.majer [at] gmail.com
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description static String
encode(String command)
Encode a command intox-www-form-urlencoded
format.boolean
equals(Object obj)
String
getCommand()
String
getCommandWithUrlEncoded()
String
getDatabase()
int
hashCode()
boolean
requiresPost()
-
Constructor Details
-
Method Details
-
getCommand
- Returns:
- the command
-
getCommandWithUrlEncoded
- Returns:
- url encoded command
-
getDatabase
- Returns:
- the database
-
requiresPost
public boolean requiresPost() -
hashCode
public int hashCode() -
equals
-
encode
Encode a command intox-www-form-urlencoded
format.- Parameters:
command
- the command to be encoded.- Returns:
- a encoded command.
-