_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c157900 | train | // replaceExprs is a convenience function used by implementors
// of the replace method. | {
"resource": ""
} | ||
c157901 | train | // IsImpossible returns true if the comparison in the expression can never evaluate to true.
// Note that this is not currently exhaustive to ALL impossible comparisons. | {
"resource": ""
} | ||
c157902 | train | // HexDecode decodes the hexval into bytes. | {
"resource": ""
} | ||
c157903 | train | // Equal returns true if the column names match. | {
"resource": ""
} | ||
c157904 | train | // Lowered returns a lower-cased column name.
// This function should generally be used only for optimizing
// comparisons. | {
"resource": ""
} | ||
c157905 | train | // Equal performs a case-insensitive compare. | {
"resource": ""
} | ||
c157906 | train | // EqualString performs a case-insensitive compare with str. | {
"resource": ""
} | ||
c157907 | train | // validateWorkflow validates that workflow has valid input parameters. | {
"resource": ""
} | ||
c157908 | train | // initCheckpoint initialize the checkpoint for the horizontal workflow. | {
"resource": ""
} | ||
c157909 | train | // Run executes the horizontal resharding process.
// It implements the workflow.Workflow interface. | {
"resource": ""
} | ||
c157910 | train | // WorkflowPhases returns phases for resharding workflow | {
"resource": ""
} | ||
c157911 | train | // newStreamingRows creates a new streamingRows from stream. | {
"resource": ""
} | ||
c157912 | train | // checkFields fetches the first packet from the channel, which
// should contain the field info. | {
"resource": ""
} | ||
c157913 | train | // AddFile is part of the BackupHandle interface | {
"resource": ""
} | ||
c157914 | train | // EndBackup is part of the BackupHandle interface | {
"resource": ""
} | ||
c157915 | train | // AbortBackup is part of the BackupHandle interface | {
"resource": ""
} | ||
c157916 | train | // ReadFile is part of the BackupHandle interface | {
"resource": ""
} | ||
c157917 | train | // ListBackups is part of the BackupStorage interface | {
"resource": ""
} | ||
c157918 | train | // StartBackup is part of the BackupStorage interface | {
"resource": ""
} | ||
c157919 | train | // RemoveBackup is part of the BackupStorage interface | {
"resource": ""
} | ||
c157920 | train | // Set atomically sets str as new value. | {
"resource": ""
} | ||
c157921 | train | // Get atomically returns the current value. | {
"resource": ""
} | ||
c157922 | train | // NewUnicodeLooseMD5 creates a new UnicodeLooseMD5. | {
"resource": ""
} | ||
c157923 | train | // StmtType returns the statement type as a string | {
"resource": ""
} | ||
c157924 | train | // IsDML returns true if the query is an INSERT, UPDATE or DELETE statement. | {
"resource": ""
} | ||
c157925 | train | // GetTableName returns the table name from the SimpleTableExpr
// only if it's a simple expression. Otherwise, it returns "". | {
"resource": ""
} | ||
c157926 | train | // IsValue returns true if the Expr is a string, integral or value arg.
// NULL is not considered to be a value. | {
"resource": ""
} | ||
c157927 | train | // IsSimpleTuple returns true if the Expr is a ValTuple that
// contains simple values or if it's a list arg. | {
"resource": ""
} | ||
c157928 | train | // ExtractSetValues returns a map of key-value pairs
// if the query is a SET statement. Values can be bool, int64 or string.
// Since set variable names are case insensitive, all keys are returned
// as lower case. | {
"resource": ""
} | ||
c157929 | train | // canMergeOnFilter returns true if the join constraint makes the routes
// mergeable by unique vindex. The constraint has to be an equality
// like a.id = b.id where both columns have the same unique vindex. | {
"resource": ""
} | ||
c157930 | train | // UpdatePlan evaluates the primitive against the specified
// filter. If it's an improvement, the primitive is updated.
// We assume that the filter has already been pushed into
// the route. | {
"resource": ""
} | ||
c157931 | train | // computePlan computes the plan for the specified filter. | {
"resource": ""
} | ||
c157932 | train | // computeEqualPlan computes the plan for an equality constraint. | {
"resource": ""
} | ||
c157933 | train | // computeINPlan computes the plan for an IN constraint. | {
"resource": ""
} | ||
c157934 | train | // exprIsValue returns true if the expression can be treated as a value
// for the routeOption. External references are treated as value. | {
"resource": ""
} | ||
c157935 | train | // NewMycnf fills the Mycnf structure with vt root paths and derived values.
// This is used to fill out the cnfTemplate values and generate my.cnf.
// uid is a unique id for a particular tablet - it must be unique within the
// tabletservers deployed within a keyspace, lest there be collisions on disk.
// mysqldPort n... | {
"resource": ""
} | ||
c157936 | train | // TabletDir returns the default directory for a tablet | {
"resource": ""
} | ||
c157937 | train | // directoryList returns the list of directories to create in an empty
// mysql instance. | {
"resource": ""
} | ||
c157938 | train | // makeMycnf will join cnf files cnfPaths and substitute in the right values. | {
"resource": ""
} | ||
c157939 | train | // fillMycnfTemplate will fill in the passed in template with the values
// from Mycnf | {
"resource": ""
} | ||
c157940 | train | // MarshalNoEscape is the same functionality as json.Marshal but
// with HTML escaping disabled | {
"resource": ""
} | ||
c157941 | train | // MarshalIndentNoEscape is the same functionality as json.MarshalIndent but with HTML escaping
// disabled | {
"resource": ""
} | ||
c157942 | train | // Put returns pointer to slice to some bucket. Discards slice for which there is no bucket | {
"resource": ""
} | ||
c157943 | train | // ValueBindVariable converts a Value to a bind var. | {
"resource": ""
} | ||
c157944 | train | // ValidateBindVariable returns an error if the bind variable has inconsistent
// fields. | {
"resource": ""
} | ||
c157945 | train | // BindVariableToValue converts a bind var into a Value. | {
"resource": ""
} | ||
c157946 | train | // BindVariablesEqual compares two maps of bind variables.
// For protobuf messages we have to use "proto.Equal". | {
"resource": ""
} | ||
c157947 | train | // CopyBindVariables returns a shallow-copy of the given bindVariables map. | {
"resource": ""
} | ||
c157948 | train | // FormatBindVariables returns a string representation of the
// bind variables.
//
// If full is false, then large string or tuple values are truncated
// to only print the lengths.
//
// If asJson is true, then the resulting string is a valid JSON
// representation, otherwise it is the golang printed map representati... | {
"resource": ""
} | ||
c157949 | train | // toKebabCase produces a monitoring compliant name from the
// original. It converts CamelCase to camel-case,
// and CAMEL_CASE to camel-case. For numbers, it
// converts 0.5 to v0_5. | {
"resource": ""
} | ||
c157950 | train | // NewFullScanAlgorithm constructs a new FullScanAlgorithm. | {
"resource": ""
} | ||
c157951 | train | // hasObservers checks the provided address to see if it has observers.
// If so, it returns the voting server address, the observer address, and true.
// Otherwise, it returns false. | {
"resource": ""
} | ||
c157952 | train | // NewServer returns a topo.Conn connecting to real Zookeeper processes. | {
"resource": ""
} | ||
c157953 | train | // ShardQueriesPQ returns the shard query count per query as a string. | {
"resource": ""
} | ||
c157954 | train | // NewSandboxConn returns a new SandboxConn targeted to the provided tablet. | {
"resource": ""
} | ||
c157955 | train | // Commit is part of the QueryService interface. | {
"resource": ""
} | ||
c157956 | train | // CommitPrepared commits the prepared transaction. | {
"resource": ""
} | ||
c157957 | train | // RollbackPrepared rolls back the prepared transaction. | {
"resource": ""
} | ||
c157958 | train | // CreateTransaction creates the metadata for a 2PC transaction. | {
"resource": ""
} | ||
c157959 | train | // SetRollback transitions the 2pc transaction to the Rollback state.
// If a transaction id is provided, that transaction is also rolled back. | {
"resource": ""
} | ||
c157960 | train | // BeginExecute is part of the QueryService interface. | {
"resource": ""
} | ||
c157961 | train | // MessageStream is part of the QueryService interface. | {
"resource": ""
} | ||
c157962 | train | // MessageAck is part of the QueryService interface. | {
"resource": ""
} | ||
c157963 | train | // SplitQuery returns a single QuerySplit whose 'sql' field describes the received arguments. | {
"resource": ""
} | ||
c157964 | train | // StreamHealth is not implemented. | {
"resource": ""
} | ||
c157965 | train | // UpdateStream is part of the QueryService interface. | {
"resource": ""
} | ||
c157966 | train | // VStream is part of the QueryService interface. | {
"resource": ""
} | ||
c157967 | train | // This file contains utility methods for Conn objects. Only useful on the client
// side.
// ExecuteFetchMap returns a map from column names to cell data for a query
// that should return exactly 1 row. | {
"resource": ""
} | ||
c157968 | train | // GetCharset returns the current numerical values of the per-session character
// set variables. | {
"resource": ""
} | ||
c157969 | train | // SetCharset changes the per-session character set variables. | {
"resource": ""
} | ||
c157970 | train | // isDbDir returns true if the given directory contains a DB | {
"resource": ""
} | ||
c157971 | train | // backupFiles finds the list of files to backup, and creates the backup. | {
"resource": ""
} | ||
c157972 | train | // ExecuteRestore restores from a backup. If the restore is successful
// we return the position from which replication should start
// otherwise an error is returned | {
"resource": ""
} | ||
c157973 | train | // restoreFiles will copy all the files from the BackupStorage to the
// right place. | {
"resource": ""
} | ||
c157974 | train | // ExecuteVtworkerCommand is part of the vtworkerdatapb.VtworkerServer interface | {
"resource": ""
} | ||
c157975 | train | // StartServer registers the VtworkerServer for RPCs | {
"resource": ""
} | ||
c157976 | train | // NewStringTokenizer creates a new Tokenizer for the
// sql string. | {
"resource": ""
} | ||
c157977 | train | // NewTokenizer creates a new Tokenizer reading a sql
// string from the io.Reader. | {
"resource": ""
} | ||
c157978 | train | // KeywordString returns the string corresponding to the given keyword | {
"resource": ""
} | ||
c157979 | train | // Lex returns the next token form the Tokenizer.
// This function is used by go yacc. | {
"resource": ""
} | ||
c157980 | train | // Error is called by go yacc if there's a parsing error. | {
"resource": ""
} | ||
c157981 | train | // skipStatement scans until end of statement. | {
"resource": ""
} | ||
c157982 | train | // RunCommandAndWait executes a single command on a given vtctld and blocks until the command did return or timed out.
// Output from vtctld is streamed as logutilpb.Event messages which
// have to be consumed by the caller who has to specify a "recv" function. | {
"resource": ""
} | ||
c157983 | train | // ExecuteHook will run the hook on the tablet | {
"resource": ""
} | ||
c157984 | train | // ExecuteTabletHook will run the hook on the provided tablet. | {
"resource": ""
} | ||
c157985 | train | // NewPanicWorker returns a new PanicWorker object. | {
"resource": ""
} | ||
c157986 | train | // QueryResponsesEqual compares two arrays of QueryResponse.
// They contain protos, so we cannot use reflect.DeepEqual. | {
"resource": ""
} | ||
c157987 | train | // RunCommandAndWait executes a single command on a given vtworker and blocks until the command did return or timed out.
// Output from vtworker is streamed as logutil.Event messages which
// have to be consumed by the caller who has to specify a "recv" function. | {
"resource": ""
} | ||
c157988 | train | // ErrorFromGRPC converts a GRPC error to vtError for
// tabletserver calls. | {
"resource": ""
} | ||
c157989 | train | // FetchJSON fetches JSON content from the specified URL path and returns it
// as a map. The function returns an empty map on error. | {
"resource": ""
} | ||
c157990 | train | // FetchInt fetches the specified slash-separated tag and returns the
// value as an int. It returns 0 on error, or if not found. | {
"resource": ""
} | ||
c157991 | train | // FetchVal fetches the specified slash-separated tag and returns the
// value as an interface. It returns nil on error, or if not found. | {
"resource": ""
} | ||
c157992 | train | // FetchURL fetches the content from the specified URL path and returns it
// as a string. The function returns an empty string on error. | {
"resource": ""
} | ||
c157993 | train | // buildValueList builds the set of PK reference rows used to drive the next query.
// It uses the PK values supplied in the original query and bind variables.
// The generated reference rows are validated for type match against the PK of the table. | {
"resource": ""
} | ||
c157994 | train | // buildSecondaryList is used for handling ON DUPLICATE DMLs, or those that change the PK. | {
"resource": ""
} | ||
c157995 | train | // resolveNumber extracts a number from a bind variable or sql value. | {
"resource": ""
} | ||
c157996 | train | // unicoded returns a valid UTF-8 string that json won't reject | {
"resource": ""
} | ||
c157997 | train | // newJointab creates a new jointab for the current plan
// being built. It also needs the current list of bind vars
// used in the original query to make sure that the names
// it generates don't collide with those already in use. | {
"resource": ""
} | ||
c157998 | train | // Procure requests for the specified column from the plan
// and returns the join var name for it. | {
"resource": ""
} | ||
c157999 | train | // Lookup returns the order of the route that supplies the column and
// the join var name if one has already been assigned for it. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.