_id
stringlengths
2
7
text
stringlengths
6
2.61k
title
stringclasses
1 value
c172400
// GroupBy creates a GroupBy query with the given Rows queries
c172401
// GroupByLimit creates a GroupBy query with the given limit and Rows queries
c172402
// GroupByFilter creates a GroupBy query with the given filter and Rows queries
c172403
// OptFieldTypeSet adds a set field. // Specify CacheTypeDefault for the default cache type. // Specify CacheSizeDefault for the default cache size.
c172404
// OptFieldTypeInt adds an integer field.
c172405
// OptFieldTypeTime adds a time field.
c172406
// OptFieldTypeMutex adds a mutex field.
c172407
// Row creates a Row query. // Row retrieves the indices of all the set columns in a row. // It also retrieves any attributes set on that row or column.
c172408
// Set creates a Set query. // Set, assigns a value of 1 to a bit in the binary matrix, thus associating the given row in the given field with the given column.
c172409
// SetTimestamp creates a Set query with timestamp. // Set, assigns a value of 1 to a column in the binary matrix, // thus associating the given row in the given field with the given column.
c172410
// ClearRow creates a ClearRow query. // ClearRow sets all bits to 0 in a given row of the binary matrix, thus disassociating the given row in the given field from all columns.
c172411
// RowTopN creates a TopN query with the given item count and row. // This variant supports customizing the row query.
c172412
// FilterAttrTopN creates a TopN query with the given item count, row, attribute name and filter values for that field // The attrName and attrValues arguments work together to only return Rows which have the attribute specified by attrName with one of the values specified in attrValues.
c172413
// Store creates a Store call. // Store writes the result of the row query to the specified row. If the row already exists, it will be replaced. The destination field must be of field type set.
c172414
// NotNull creates a not equal to null query.
c172415
// Between creates a between query.
c172416
// SetIntValue creates a Set query.
c172417
// NewPQLRowsQuery creates a new PQLRowsQuery.
c172418
// Rows creates a Rows query with defaults
c172419
// RowsLimit creates a Rows query with the given limit
c172420
// Result returns the first result or nil.
c172421
// MarshalJSON serializes this row result.
c172422
// NewURIFromAddress parses the passed address and returns a URI.
c172423
// SetScheme sets the scheme of this URI.
c172424
// SetHost sets the host of this URI.
c172425
// Normalize returns the address in a form usable by a HTTP client.
c172426
// Equals returns true if the checked URI is equivalent to this URI.
c172427
// ValidLabel returns true if the given label is valid, otherwise false.
c172428
// ValidKey returns true if the given key is valid, otherwise false.
c172429
// NewClient creates a client with the given address, URI, or cluster and options.
c172430
// Query runs the given query against the server with the given options. // Pass nil for default options.
c172431
// CreateIndex creates an index on the server using the given Index struct.
c172432
// CreateField creates a field on the server using the given Field struct.
c172433
// EnsureIndex creates an index on the server if it does not exist.
c172434
// EnsureField creates a field on the server if it doesn't exists.
c172435
// DeleteIndex deletes an index on the server.
c172436
// DeleteField deletes a field on the server.
c172437
// SyncSchema updates a schema with the indexes and fields on the server and // creates the indexes and fields in the schema on the server side. // This function does not delete indexes and the fields on the server side nor in the schema.
c172438
// Schema returns the indexes and fields on the server.
c172439
// ImportField imports records from the given iterator.
c172440
// ExportField exports columns for a field.
c172441
// Status returns the server's status.
c172442
// httpRequest makes a request to the cluster - use this when you want the // client to choose a host, and it doesn't matter if the request goes to a // specific host
c172443
// doRequest creates and performs an http request.
c172444
// statusToNodeShardsForIndex finds the hosts which contains shards for the given index
c172445
// ExperimentalReplayImport takes a data stream which was previously recorded by the import // logging functionality and imports it to Pilosa. The target cluster need not // be of the same size as the original cluster, but it must already have the // necessary schema in place. It is an experimental method and may be ch...
c172446
// OptClientSocketTimeout is the maximum idle socket time in nanoseconds
c172447
// OptClientConnectTimeout is the maximum time to connect in nanoseconds.
c172448
// OptClientPoolSizePerRoute is the maximum number of active connections in the pool to a host.
c172449
// OptClientTotalPoolSize is the maximum number of connections in the pool.
c172450
// OptClientTLSConfig contains the TLS configuration.
c172451
// OptClientManualServerAddress forces the client use only the manual server address
c172452
// ExperimentalOptClientLogImports writes all imports to the given writer in // such a way that they can easily be replayed into another Pilosa cluster. It // is an experimental option and may be changed or removed.
c172453
// OptQueryColumnAttrs enables returning column attributes in the result.
c172454
// OptQueryShards restricts the set of shards on which a query operates.
c172455
// OptQueryExcludeAttrs enables discarding attributes from a result,
c172456
// OptQueryExcludeColumns enables discarding columns from a result,
c172457
// OptImportThreadCount is the number of goroutines allocated for import.
c172458
// OptImportBatchSize is the number of records read before importing them.
c172459
// OptImportStatusChannel is a channel which carry import status information. // Make sure to read from this channel, otherwise the import process will stall.
c172460
// OptImportClear sets clear import, which clears bits instead of setting them.
c172461
// OptImportRoaring enables importing using roaring bitmaps which is more performant.
c172462
// OptImportSort tells the importer whether or not to sort batches of records, on // by default. Sorting imposes some performance cost, especially on data that's // already sorted, but dramatically improves performance in pathological // cases. It is enabled by default because the pathological cases are awful, // and t...
c172463
// Read updates the passed array with the exported CSV data and returns the number of bytes read
c172464
// ColumnUnmarshallerWithTimestamp creates a RecordUnmarshaller for importing columns with the given format and timestamp format.
c172465
// NewIterator creates a CSVIterator from a Reader.
c172466
// NewColumnIterator creates a new iterator for column data.
c172467
// NewColumnIteratorWithTimestampFormat creates a new iterator for column data with timestamp.
c172468
// NewValueIterator creates a new iterator for value data.
c172469
// NextRecord iterates on lines of a Reader. // Returns io.EOF on end of iteration.
c172470
// FieldValueUnmarshaller is a function which creates a Record from a CSV file line with value data.
c172471
// MergeConfig merges two config objects together and returns the resulting // configuration. Values from the right take precedence over the left side.
c172472
// stringFormat, given a set of column widths and the number of columns in // the current line, returns a sprintf-style format string which can be used // to print output aligned properly with other lines using the same widths set.
c172473
// elementsFromLine returns a list of elements, each representing a single // item which will belong to a column of output.
c172474
// widthsFromLines examines a list of strings and determines how wide each // column should be considering all of the elements that need to be printed // within it.
c172475
// Format is the public-facing interface that takes a list of strings and // returns nicely aligned column-formatted text.
c172476
// Build builds the URL host using the given positional and named variables, // and writes it to the given URL.
c172477
// Build builds the URL path using the given positional and named variables, // and writes it to the given URL.
c172478
// braceIndices returns the first level curly brace indices from a string. // It returns an error in case of unbalanced braces.
c172479
// Extract returns positional and named variables extracted from the URL host.
c172480
// mergeValues returns the result of merging two url.Values.
c172481
// redirectPath returns a handler that redirects if the path trailing slash // differs from the request URL path.
c172482
// CompileRegexp compiles a regular expression pattern and creates a template // to revert it.
c172483
// Match returns whether the regexp matches the given string.
c172484
// Values matches the regexp and returns the results for positional and // named groups. Positional values are stored using an empty string as key. // If the string doesn't match it returns nil.
c172485
// Revert builds a string for this regexp using the given values. Positional // values use an empty string as key. // // The values are modified in place, and only the unused ones are left.
c172486
// RevertValid is the same as Revert but it also validates the resulting // string matching it against the compiled regexp. // // The values are modified in place, and only the unused ones are left.
c172487
// write writes a reverse template to the buffer.
c172488
// New creates Cmp for multiple comparison mode.
c172489
// New creates Cmp for single comparison mode.
c172490
// CompareFile verifies that files with names path1, path2 have same contents.
c172491
// readPartial keeps reading from reader into provided buffer, // until buffer size reaches exactly n2. n1 is initial buffer size. // useful to ensure we get an specific buffer size from reader, // withstanding partial reads.
c172492
// postEOFCheck returns false if there is more data in a LimitedReader after // hitting EOF
c172493
// Equivalent to HAProxy "show stat" command.
c172494
// Equivalent to HAProxy "show info" command.
c172495
// RunCommand is the entrypoint to the client. Sends an arbitray command string to HAProxy.
c172496
// IsExist returns whether the error is known to report that an user or group // already exists. It is satisfied by ErrUserExist and ErrGroupExist.
c172497
// exist checks if the file exists.
c172498
// Contain returns whether the named file contains the byte slice b. The // return value is a boolean.
c172499
// ContainString returns whether the named file contains the string s. The // return value is a boolean.