package
0.9.0-rc9
Repository: https://github.com/hyperworks/influxdb.git
Documentation: pkg.go.dev

# Functions

CloneExpr returns a deep copy of the expression.
Eval evaluates expr against a map.
FormatDuration formats a duration to a string.
InspectDataType returns the data type of a given value.
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.
MapEcho emits the data points for each group by interval.
MapFirst collects the values to pass to the reducer.
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.
No description provided by the author
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.
MarshalStrings encodes an array of strings into a byte slice.
MatchSource returns the source name that matches a field name.
NewEmitter returns a new instance of Emitter with a buffer size of n.
NewMapper returns a new instance of Mapper with a given function and interval.
NewParser returns a new instance of Parsr.
NewPlanner returns a new instance of Planner.
NewPrivilege returns an initialized *Privilege.
NewReducer returns a new instance of reducer.
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.
QuoteIdent returns a quoted identifier from multiple bare identifiers.
QuoteString returns a quoted string.
Reduce evaluates expr using the available values in valuer.
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.
ReduceMin computes the min of value.
ReducePercentile computes the percentile of values for each key.
No description provided by the author
ReduceSpread computes the spread of values.
ReduceStddev computes the stddev of values.
ReduceSum computes the sum of 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.
SplitIdent splits an identifier into quoted & unquoted segments.
TimeRange returns the minimum and maximum times specified by an expression.
UnmarshalStrings decodes a byte slice into an array of strings.
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
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
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
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
*.
!=.
!~.
NoPrivileges means no privileges required / granted / revoked.
Number means the data type is an int or float.
12345.67.
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
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
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.
DropContinuousQueryStatement represents a command for removing a continuous query.
DropDatabaseStatement represents a command to drop a database.
DropMeasurmentStatement 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.
Emitter provides bufferred emit/flush of key/value pairs.
ExecutionPrivilege is a privilege required for a user to execute a statement on a database or resource.
Executor represents the implementation of Executor.
Field represents an expression retrieved from a select statement.
GrantStatement represents a command for granting a privilege.
Join represents two datasources joined together.
Key represents a key returned by a Mapper or Reducer.
Mapper represents an object for processing iterators.
Measurement represents a single measurement used as a datasource.
Merge represents a datasource created by merging two datasources.
NumberLiteral represents a numeric literal.
ParenExpr represents a parenthesized expression.
ParseError represents an error that occurred during parsing.
Parser represents an InfluxQL parser.
Planner represents an object for creating execution plans.
Pos specifies the line and character position of a token.
Query represents a collection of ordered statements.
No description provided by the author
Reducer represents an object for processing mapper output.
RegexLiteral represents a regular expression.
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.
ShowContinuousQueriesStatement represents a command for listing continuous queries.
ShowDatabasesStatement represents a command for listing all databases in the cluster.
ShowFieldKeysStatement represents a command for listing field keys.
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.
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.
TODO pauldix: Target should actually have a Database, RetentionPolicy, and Measurement.
TimeLiteral represents a point-in-time literal.
VarRef represents a reference to a variable.
Wildcard represents a wild card expression.

# Interfaces

DB represents an interface for creating transactions.
Expr represents an expression that can be evaluated to a value.
Iterator represents a forward-only iterator over a set of points.
Node represents a node in the InfluxDB abstract syntax tree.
Processor represents an object for joining reducer output.
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.
Tx represents a transaction.
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.
MapFunc represents a function used for mapping iterators.
Measurements represents a list of measurements.
Privilege is a type of action a user can be granted the right to use.
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.
Statements represents a list of statements.
Token is a lexical token of the InfluxQL language.