# Functions
CloneExpr returns a deep copy of the expression.
CloneRegexLiteral returns a clone of the RegexLiteral.
Eval evaluates expr against a map.
FormatDuration formats a duration to a string.
No description provided by the author
IdentNeedsQuotes returns true if the ident string given would require quotes.
InitializeMapFunc takes an aggregate call from the query and returns the MapFunc.
InitializeReduceFunc takes an aggregate call from the query and returns the ReduceFunc.
No description provided by the author
InspectDataType returns the data type of a given value.
IsNumeric returns whether a given aggregate can only be run on numeric fields.
IsRegexOp returns true if the operator accepts a regex operand.
Lookup returns the token associated with a given string.
MapCount computes the number of values in an iterator.
MapCountDistinct computes the unique count of values in an iterator.
MapDistinct computes the unique values in an iterator.
MapEcho emits the data points for each group by interval.
MapFirst collects the values to pass to the reducer This function assumes time ordered input.
MapLast collects the values to pass to the reducer.
MapMax collects the values to pass to the reducer.
MapMean computes the count and sum of values in an iterator to be combined by the reducer.
MapMin collects the values to pass to the reducer.
MapRawQuery is for queries without aggregates.
MapSpread collects the values to pass to the reducer.
MapStddev collects the values to pass to the reducer.
MapSum computes the summation of values in an iterator.
MapTop emits the top data points for each group by interval.
MatchSource returns the source name that matches a field name.
MustParseStatement parses a statement string and returns its AST.
NewParser returns a new instance of Parser.
NewPrivilege returns an initialized *Privilege.
NewScanner returns a new instance of Scanner.
ParseDuration parses a time duration from a string.
ParseExpr parses an expression string and returns its AST representation.
ParseQuery parses a query string and returns its AST representation.
ParseStatement parses a statement string and returns its AST representation.
QuoteIdent returns a quoted identifier from multiple bare identifiers.
QuoteString returns a quoted string.
Reduce evaluates expr using the available values in valuer.
ReduceCountDistinct finds the unique counts of values.
ReduceDistinct finds the unique values for each key.
ReduceFirst computes the first of value.
ReduceLast computes the last of value.
ReduceMax computes the max of value.
ReduceMean computes the mean of values for each key.
ReduceMedian computes the median of values.
ReduceMin computes the min of value.
ReducePercentile computes the percentile of values for each key.
ReduceSpread computes the spread of values.
ReduceStddev computes the stddev of values.
ReduceSum computes the sum of values for each key.
ReduceTop computes the top values for each key.
Rewrite recursively invokes the rewriter to replace each node.
RewriteFunc rewrites a node hierarchy.
ScanBareIdent reads bare identifier from a rune reader.
No description provided by the author
ScanString reads a quoted string from a rune reader.
TimeRange returns the minimum and maximum times specified by an expression.
TimeRange returns the minimum and maximum times, as epoch nano, specified by and expression.
Walk traverses a node hierarchy in depth-first order.
WalkFunc traverses a node hierarchy in depth-first order.
# Constants
+.
Keywords.
AllPrivileges means all privileges required / granted / revoked.
No description provided by the author
AND.
No description provided by the author
No description provided by the author
\q.
`.*.
"abc.
No description provided by the author
Boolean means the data type is a boolean.
No description provided by the author
:.
,.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
DateFormat represents the format for date literals.
DateTimeFormat represents the format for date time literals.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
/.
.
No description provided by the author
Duration means the data type is a duration of time.
No description provided by the author
13h.
No description provided by the author
No description provided by the author
=.
=~.
No description provided by the author
No description provided by the author
false.
No description provided by the author
Float means the data type is a float.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
>.
>=.
main.
No description provided by the author
Special tokens.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Integer means the data type is a integer.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
(.
<.
<=.
No description provided by the author
No description provided by the author
*.
!=.
!~.
NoFill means that empty aggregate windows will be purged from the result.
NoPrivileges means no privileges required / granted / revoked.
No description provided by the author
NullFill means that empty aggregate windows will just have null values.
12345.67.
NumberFill means that empty aggregate windows will be filled with the given number.
No description provided by the author
No description provided by the author
OR.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
PreviousFill means that empty aggregate windows will be filled with whatever the previous aggregate window had.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ReadPrivilege means read privilege required / granted / revoked.
Regular expressions.
No description provided by the author
No description provided by the author
No description provided by the author
).
No description provided by the author
;.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
String means the data type is a string of text.
"abc".
-.
No description provided by the author
Time means the data type is a time.
No description provided by the author
true.
Unknown primitive data type.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
WritePrivilege means write privilege required / granted / revoked.
No description provided by the author
# Variables
ErrInvalidDuration is returned when parsing a malformatted duration.
# Structs
AlterRetentionPolicyStatement represents a command to alter an existing retention policy.
BinaryExpr represents an operation between two expressions.
BooleanLiteral represents a boolean literal.
Call represents a function call.
CreateContinuousQueryStatement represents a command for creating a continuous query.
CreateDatabaseStatement represents a command for creating a new database.
CreateRetentionPolicyStatement represents a command to create a retention policy.
CreateUserStatement represents a command for creating a new user.
DeleteStatement represents a command for removing data from the database.
Dimension represents an expression that a select statement is grouped by.
Distinct represents a DISTINCT expression.
DropContinuousQueryStatement represents a command for removing a continuous query.
DropDatabaseStatement represents a command to drop a database.
DropMeasurementStatement represents a command to drop a measurement.
DropRetentionPolicyStatement represents a command to drop a retention policy from a database.
DropSeriesStatement represents a command for removing a series from the database.
DropUserStatement represents a command for dropping a user.
DurationLiteral represents a duration literal.
ExecutionPrivilege is a privilege required for a user to execute a statement on a database or resource.
Field represents an expression retrieved from a select statement.
GrantAdminStatement represents a command for granting admin privilege.
GrantStatement represents a command for granting a privilege.
Measurement represents a single measurement used as a datasource.
nowValuer returns only the value for "now()".
NumberLiteral represents a numeric literal.
ParenExpr represents a parenthesized expression.
ParseError represents an error that occurred during parsing.
Parser represents an InfluxQL parser.
Pos specifies the line and character position of a token.
No description provided by the author
Query represents a collection of ordered statements.
RegexLiteral represents a regular expression.
Result represents a resultset returned from a single statement.
RevokeAdminStatement represents a command to revoke admin privilege from a user.
RevokeStatement represents a command to revoke a privilege from a user.
Row represents a single row returned from the execution of a statement.
Scanner represents a lexical scanner for InfluxQL.
SelectStatement represents a command for extracting data from the database.
SetPasswordUserStatement represents a command for changing user password.
ShowContinuousQueriesStatement represents a command for listing continuous queries.
ShowDatabasesStatement represents a command for listing all databases in the cluster.
ShowDiagnosticsStatement represents a command for show node diagnostics.
ShowFieldKeysStatement represents a command for listing field keys.
ShowGrantsForUserStatement represents a command for listing user privileges.
ShowMeasurementsStatement represents a command for listing measurements.
ShowRetentionPoliciesStatement represents a command for listing retention policies.
ShowSeriesStatement represents a command for listing series in the database.
ShowServersStatement represents a command for listing all servers.
ShowShardsStatement represents a command for displaying shards in the cluster.
ShowRetentionPoliciesStatement represents a command for displaying stats for a given server.
ShowTagKeysStatement represents a command for listing tag keys.
ShowTagValuesStatement represents a command for listing tag values.
ShowUsersStatement represents a command for listing users.
SortField represents a field to sort results by.
StringLiteral represents a string literal.
TagSet is a fundamental concept within the query system.
Target represents a target (destination) policy, measurement, and DB.
TimeLiteral represents a point-in-time literal.
VarRef represents a reference to a variable.
Wildcard represents a wild card expression.
# Interfaces
Expr represents an expression that can be evaluated to a value.
HasDefaultDatabase provides an interface to get the default database from a Statement.
Iterator represents a forward-only iterator over a set of points.
Node represents a node in the InfluxDB abstract syntax tree.
Rewriter can be called by Rewrite to replace nodes in the AST hierarchy.
Source represents a source of data for a statement.
Statement represents a single command in InfluxQL.
Valuer is the interface that wraps the Value() method.
Visitor can be called by Walk to traverse an AST hierarchy.
# Type aliases
DataType represents the primitive data types available in InfluxQL.
Dimensions represents a list of dimensions.
ExecutionPrivileges is a list of privileges required to execute a statement.
Fields represents a list of fields.
No description provided by the author
MapFunc represents a function used for mapping over a sequential series of data.
Measurements represents a list of measurements.
No description provided by the author
No description provided by the author
Privilege is a type of action a user can be granted the right to use.
No description provided by the author
ReduceFunc represents a function used for reducing mapper output.
Rows represents a list of rows that can be sorted consistently by name/tag.
SortFields represents an ordered list of ORDER BY fields.
Sources represents a list of sources.
Statements represents a list of statements.
Token is a lexical token of the InfluxQL language.
UnmarshalFunc represents a function that can take bytes from a mapper from remote server and marshal it into an interface the reducer can use.