_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c172400 | validation | // GroupBy creates a GroupBy query with the given Rows queries | {
"resource": ""
} | ||
c172401 | validation | // GroupByLimit creates a GroupBy query with the given limit and Rows queries | {
"resource": ""
} | ||
c172402 | validation | // GroupByFilter creates a GroupBy query with the given filter and Rows queries | {
"resource": ""
} | ||
c172403 | validation | // OptFieldTypeSet adds a set field.
// Specify CacheTypeDefault for the default cache type.
// Specify CacheSizeDefault for the default cache size. | {
"resource": ""
} | ||
c172404 | validation | // OptFieldTypeInt adds an integer field. | {
"resource": ""
} | ||
c172405 | validation | // OptFieldTypeTime adds a time field. | {
"resource": ""
} | ||
c172406 | validation | // OptFieldTypeMutex adds a mutex field. | {
"resource": ""
} | ||
c172407 | validation | // 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. | {
"resource": ""
} | ||
c172408 | validation | // 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. | {
"resource": ""
} | ||
c172409 | validation | // 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. | {
"resource": ""
} | ||
c172410 | validation | // 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. | {
"resource": ""
} | ||
c172411 | validation | // RowTopN creates a TopN query with the given item count and row.
// This variant supports customizing the row query. | {
"resource": ""
} | ||
c172412 | validation | // 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. | {
"resource": ""
} | ||
c172413 | validation | // 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. | {
"resource": ""
} | ||
c172414 | validation | // NotNull creates a not equal to null query. | {
"resource": ""
} | ||
c172415 | validation | // Between creates a between query. | {
"resource": ""
} | ||
c172416 | validation | // SetIntValue creates a Set query. | {
"resource": ""
} | ||
c172417 | validation | // NewPQLRowsQuery creates a new PQLRowsQuery. | {
"resource": ""
} | ||
c172418 | validation | // Rows creates a Rows query with defaults | {
"resource": ""
} | ||
c172419 | validation | // RowsLimit creates a Rows query with the given limit | {
"resource": ""
} | ||
c172420 | validation | // Result returns the first result or nil. | {
"resource": ""
} | ||
c172421 | validation | // MarshalJSON serializes this row result. | {
"resource": ""
} | ||
c172422 | validation | // NewURIFromAddress parses the passed address and returns a URI. | {
"resource": ""
} | ||
c172423 | validation | // SetScheme sets the scheme of this URI. | {
"resource": ""
} | ||
c172424 | validation | // SetHost sets the host of this URI. | {
"resource": ""
} | ||
c172425 | validation | // Normalize returns the address in a form usable by a HTTP client. | {
"resource": ""
} | ||
c172426 | validation | // Equals returns true if the checked URI is equivalent to this URI. | {
"resource": ""
} | ||
c172427 | validation | // ValidLabel returns true if the given label is valid, otherwise false. | {
"resource": ""
} | ||
c172428 | validation | // ValidKey returns true if the given key is valid, otherwise false. | {
"resource": ""
} | ||
c172429 | validation | // NewClient creates a client with the given address, URI, or cluster and options. | {
"resource": ""
} | ||
c172430 | validation | // Query runs the given query against the server with the given options.
// Pass nil for default options. | {
"resource": ""
} | ||
c172431 | validation | // CreateIndex creates an index on the server using the given Index struct. | {
"resource": ""
} | ||
c172432 | validation | // CreateField creates a field on the server using the given Field struct. | {
"resource": ""
} | ||
c172433 | validation | // EnsureIndex creates an index on the server if it does not exist. | {
"resource": ""
} | ||
c172434 | validation | // EnsureField creates a field on the server if it doesn't exists. | {
"resource": ""
} | ||
c172435 | validation | // DeleteIndex deletes an index on the server. | {
"resource": ""
} | ||
c172436 | validation | // DeleteField deletes a field on the server. | {
"resource": ""
} | ||
c172437 | validation | // 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. | {
"resource": ""
} | ||
c172438 | validation | // Schema returns the indexes and fields on the server. | {
"resource": ""
} | ||
c172439 | validation | // ImportField imports records from the given iterator. | {
"resource": ""
} | ||
c172440 | validation | // ExportField exports columns for a field. | {
"resource": ""
} | ||
c172441 | validation | // Status returns the server's status. | {
"resource": ""
} | ||
c172442 | validation | // 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 | {
"resource": ""
} | ||
c172443 | validation | // doRequest creates and performs an http request. | {
"resource": ""
} | ||
c172444 | validation | // statusToNodeShardsForIndex finds the hosts which contains shards for the given index | {
"resource": ""
} | ||
c172445 | validation | // 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... | {
"resource": ""
} | ||
c172446 | validation | // OptClientSocketTimeout is the maximum idle socket time in nanoseconds | {
"resource": ""
} | ||
c172447 | validation | // OptClientConnectTimeout is the maximum time to connect in nanoseconds. | {
"resource": ""
} | ||
c172448 | validation | // OptClientPoolSizePerRoute is the maximum number of active connections in the pool to a host. | {
"resource": ""
} | ||
c172449 | validation | // OptClientTotalPoolSize is the maximum number of connections in the pool. | {
"resource": ""
} | ||
c172450 | validation | // OptClientTLSConfig contains the TLS configuration. | {
"resource": ""
} | ||
c172451 | validation | // OptClientManualServerAddress forces the client use only the manual server address | {
"resource": ""
} | ||
c172452 | validation | // 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. | {
"resource": ""
} | ||
c172453 | validation | // OptQueryColumnAttrs enables returning column attributes in the result. | {
"resource": ""
} | ||
c172454 | validation | // OptQueryShards restricts the set of shards on which a query operates. | {
"resource": ""
} | ||
c172455 | validation | // OptQueryExcludeAttrs enables discarding attributes from a result, | {
"resource": ""
} | ||
c172456 | validation | // OptQueryExcludeColumns enables discarding columns from a result, | {
"resource": ""
} | ||
c172457 | validation | // OptImportThreadCount is the number of goroutines allocated for import. | {
"resource": ""
} | ||
c172458 | validation | // OptImportBatchSize is the number of records read before importing them. | {
"resource": ""
} | ||
c172459 | validation | // OptImportStatusChannel is a channel which carry import status information.
// Make sure to read from this channel, otherwise the import process will stall. | {
"resource": ""
} | ||
c172460 | validation | // OptImportClear sets clear import, which clears bits instead of setting them. | {
"resource": ""
} | ||
c172461 | validation | // OptImportRoaring enables importing using roaring bitmaps which is more performant. | {
"resource": ""
} | ||
c172462 | validation | // 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... | {
"resource": ""
} | ||
c172463 | validation | // Read updates the passed array with the exported CSV data and returns the number of bytes read | {
"resource": ""
} | ||
c172464 | validation | // ColumnUnmarshallerWithTimestamp creates a RecordUnmarshaller for importing columns with the given format and timestamp format. | {
"resource": ""
} | ||
c172465 | validation | // NewIterator creates a CSVIterator from a Reader. | {
"resource": ""
} | ||
c172466 | validation | // NewColumnIterator creates a new iterator for column data. | {
"resource": ""
} | ||
c172467 | validation | // NewColumnIteratorWithTimestampFormat creates a new iterator for column data with timestamp. | {
"resource": ""
} | ||
c172468 | validation | // NewValueIterator creates a new iterator for value data. | {
"resource": ""
} | ||
c172469 | validation | // NextRecord iterates on lines of a Reader.
// Returns io.EOF on end of iteration. | {
"resource": ""
} | ||
c172470 | validation | // FieldValueUnmarshaller is a function which creates a Record from a CSV file line with value data. | {
"resource": ""
} | ||
c172471 | validation | // MergeConfig merges two config objects together and returns the resulting
// configuration. Values from the right take precedence over the left side. | {
"resource": ""
} | ||
c172472 | validation | // 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. | {
"resource": ""
} | ||
c172473 | validation | // elementsFromLine returns a list of elements, each representing a single
// item which will belong to a column of output. | {
"resource": ""
} | ||
c172474 | validation | // 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. | {
"resource": ""
} | ||
c172475 | validation | // Format is the public-facing interface that takes a list of strings and
// returns nicely aligned column-formatted text. | {
"resource": ""
} | ||
c172476 | validation | // Build builds the URL host using the given positional and named variables,
// and writes it to the given URL. | {
"resource": ""
} | ||
c172477 | validation | // Build builds the URL path using the given positional and named variables,
// and writes it to the given URL. | {
"resource": ""
} | ||
c172478 | validation | // braceIndices returns the first level curly brace indices from a string.
// It returns an error in case of unbalanced braces. | {
"resource": ""
} | ||
c172479 | validation | // Extract returns positional and named variables extracted from the URL host. | {
"resource": ""
} | ||
c172480 | validation | // mergeValues returns the result of merging two url.Values. | {
"resource": ""
} | ||
c172481 | validation | // redirectPath returns a handler that redirects if the path trailing slash
// differs from the request URL path. | {
"resource": ""
} | ||
c172482 | validation | // CompileRegexp compiles a regular expression pattern and creates a template
// to revert it. | {
"resource": ""
} | ||
c172483 | validation | // Match returns whether the regexp matches the given string. | {
"resource": ""
} | ||
c172484 | validation | // 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. | {
"resource": ""
} | ||
c172485 | validation | // 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. | {
"resource": ""
} | ||
c172486 | validation | // 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. | {
"resource": ""
} | ||
c172487 | validation | // write writes a reverse template to the buffer. | {
"resource": ""
} | ||
c172488 | validation | // New creates Cmp for multiple comparison mode. | {
"resource": ""
} | ||
c172489 | validation | // New creates Cmp for single comparison mode. | {
"resource": ""
} | ||
c172490 | validation | // CompareFile verifies that files with names path1, path2 have same contents. | {
"resource": ""
} | ||
c172491 | validation | // 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. | {
"resource": ""
} | ||
c172492 | validation | // postEOFCheck returns false if there is more data in a LimitedReader after
// hitting EOF | {
"resource": ""
} | ||
c172493 | validation | // Equivalent to HAProxy "show stat" command. | {
"resource": ""
} | ||
c172494 | validation | // Equivalent to HAProxy "show info" command. | {
"resource": ""
} | ||
c172495 | validation | // RunCommand is the entrypoint to the client. Sends an arbitray command string to HAProxy. | {
"resource": ""
} | ||
c172496 | validation | // IsExist returns whether the error is known to report that an user or group
// already exists. It is satisfied by ErrUserExist and ErrGroupExist. | {
"resource": ""
} | ||
c172497 | validation | // exist checks if the file exists. | {
"resource": ""
} | ||
c172498 | validation | // Contain returns whether the named file contains the byte slice b. The
// return value is a boolean. | {
"resource": ""
} | ||
c172499 | validation | // ContainString returns whether the named file contains the string s. The
// return value is a boolean. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.