_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c20500
train
// IsEnd have we consumed all input?
{ "resource": "" }
c20501
train
// IsComment Is this a comment?
{ "resource": "" }
c20502
train
// Emit passes an token back to the client.
{ "resource": "" }
c20503
train
// ignore skips over the item
{ "resource": "" }
c20504
train
// Returns current string not yet emitted
{ "resource": "" }
c20505
train
// SkipWhiteSpaces Skips white space characters in the input.
{ "resource": "" }
c20506
train
// SkipWhiteSpacesNewLine Skips white space characters in the input, returns bool // for if it contained new line
{ "resource": "" }
c20507
train
// Skips white space characters at end by trimming so we can recognize the end // more easily
{ "resource": "" }
c20508
train
// Scans input and matches against the string. // Returns true if the expected string was matched. // expects matchTo to be a lower case string
{ "resource": "" }
c20509
train
// Emits an error token and terminates the scan // by passing back a nil ponter that will be the next state // terminating lexer.next function
{ "resource": "" }
c20510
train
// non-consuming check to see if we are about to find next keyword
{ "resource": "" }
c20511
train
// non-consuming isIdentity // Identities are non-numeric string values that are not quoted
{ "resource": "" }
c20512
train
// current clause state function, used for repeated clauses
{ "resource": "" }
c20513
train
// LexMatchClosure matches expected tokentype emitting the token on success // and returning passed state function.
{ "resource": "" }
c20514
train
// look for either an Identity or Value //
{ "resource": "" }
c20515
train
// LexEndOfStatement Look for end of statement defined by either a semicolon or end of file
{ "resource": "" }
c20516
train
// LexSelectClause Handle start of select statements, specifically looking for // @@variables, *, or else we drop into <select_list> // // <SELECT> :== // (DISTINCT|ALL)? ( <sql_variable> | * | <select_list> ) [FROM <source_clause>] // // <sql_variable> = @@stuff //
{ "resource": "" }
c20517
train
// Handle start of insert, Upsert statements //
{ "resource": "" }
c20518
train
// Handle recursive subqueries //
{ "resource": "" }
c20519
train
// Lex Valid Json // // Must start with { or [ //
{ "resource": "" }
c20520
train
// Lex Valid Json Array // // Must End with ] //
{ "resource": "" }
c20521
train
// Lex Valid Json Object // // Must End with } //
{ "resource": "" }
c20522
train
// is Alpha Numeric reports whether r is an alphabetic, digit, or underscore, or period
{ "resource": "" }
c20523
train
// Is the given rune valid in an identifier?
{ "resource": "" }
c20524
train
// IsIdentifierRune Is this a valid identity rune?
{ "resource": "" }
c20525
train
// IsValidIdentity test the given string to determine if any characters are // not valid and therefore must be quoted
{ "resource": "" }
c20526
train
// NewGroupByFinal creates the group-by-finalizer task.
{ "resource": "" }
c20527
train
// Close the task, channels, cleanup.
{ "resource": "" }
c20528
train
// Close the task and cleanup. Trys to wait for the downstream // reducer tasks to complete after flushing messages.
{ "resource": "" }
c20529
train
// RegisterFileHandler Register a FileHandler available by the provided @scannerType
{ "resource": "" }
c20530
train
// unwind pointers, etc to find either the value or flag indicating was nil
{ "resource": "" }
c20531
train
// Final Projections project final select columns for result-writing
{ "resource": "" }
c20532
train
// EmptyEvalFunc a no-op evaluation function for use in
{ "resource": "" }
c20533
train
// NewFuncRegistry create a new function registry. By default their is a // global one, but you can have local function registries as well.
{ "resource": "" }
c20534
train
// FuncGet gets a function from registry if it exists.
{ "resource": "" }
c20535
train
// Validate must be at least 2 args, max of 3
{ "resource": "" }
c20536
train
// EvalFilerSelect evaluates a FilterSelect statement from read, into write context // // @writeContext = Write results of projection // @readContext = Message input, ie evaluate for Where/Filter clause
{ "resource": "" }
c20537
train
// MatchesExpr executes a expr.Node expression against an evaluation context // returning true if the context matches.
{ "resource": "" }
c20538
train
// copy-pasta from entity to avoid the import // when we actually parameterize this we will need to do it differently anyway
{ "resource": "" }
c20539
train
// expr dispatches to node-type-specific methods
{ "resource": "" }
c20540
train
// Values as as slice, create a row of values describing this file // for use in sql listing of files
{ "resource": "" }
c20541
train
// Convert a cloudstorage object to a File. Interpret the table name // for given full file path.
{ "resource": "" }
c20542
train
// NewCommand creates new command exec task
{ "resource": "" }
c20543
train
// FuncResolver sets the function resolver to use during parsing. By default we only use the Global resolver. // But if you set a function resolver we'll use that first and then fall back to the Global resolver.
{ "resource": "" }
c20544
train
// ParseFilters Parse a list of Filter statement's from text
{ "resource": "" }
c20545
train
// First keyword was FILTER, so use the FILTER parser rule-set
{ "resource": "" }
c20546
train
// NewDateConverter takes a node expression
{ "resource": "" }
c20547
train
// filters returns a boolean expression
{ "resource": "" }
c20548
train
// Next returns the current token and advances cursor to next one
{ "resource": "" }
c20549
train
// Returns the current token, does not advance
{ "resource": "" }
c20550
train
// Peek returns but does not consume the next token.
{ "resource": "" }
c20551
train
// expect verifies the current token and guarantees it has the required type
{ "resource": "" }
c20552
train
// parse take the tokens and recursively build into Node
{ "resource": "" }
c20553
train
// get Function from Global function registry.
{ "resource": "" }
c20554
train
// NewJsonSource reader assumes we are getting NEW LINE delimted json file // - optionally may be gzipped
{ "resource": "" }
c20555
train
// NewCreate creates new create exec task
{ "resource": "" }
c20556
train
// NewDrop creates new drop exec task.
{ "resource": "" }
c20557
train
// NewAlter creates new ALTER exec task.
{ "resource": "" }
c20558
train
// StaticDataValue is used to create a static name=value pair that matches // DataSource interfaces
{ "resource": "" }
c20559
train
// NewDialectWriter creates a writer that is custom literal and identity // escape characters
{ "resource": "" }
c20560
train
// WriteLiteral writes literal with escapes if needed
{ "resource": "" }
c20561
train
// WriteIdentity writes identity with escaping if needed
{ "resource": "" }
c20562
train
// WriteLeftRightIdentity writes identity with escaping if needed
{ "resource": "" }
c20563
train
// WriteIdentityQuote write out an identity using given quote character
{ "resource": "" }
c20564
train
// WriteLiteral writes literal and escapes " with \"
{ "resource": "" }
c20565
train
// NewWhere create new Where Clause // filters vs final differ bc the Final does final column aliasing
{ "resource": "" }
c20566
train
// NewWhereFilter filters vs final differ bc the Final does final column aliasing
{ "resource": "" }
c20567
train
// Cast a value to given value type
{ "resource": "" }
c20568
train
// Equal function compares equality after detecting type. // error if it could not evaluate
{ "resource": "" }
c20569
train
// ValueToString convert all scalar values to their go string.
{ "resource": "" }
c20570
train
// is this boolean string?
{ "resource": "" }
c20571
train
// ValueToBool Convert a value type to a bool if possible
{ "resource": "" }
c20572
train
// ValueToFloat64 Convert a value type to a float64 if possible
{ "resource": "" }
c20573
train
// ValueToInt Convert a value type to a int if possible
{ "resource": "" }
c20574
train
// ValueToInt64 Convert a value type to a int64 if possible
{ "resource": "" }
c20575
train
// StringToTimeAnchor Convert a string type to a time if possible. // If "now-3d" then use date-anchoring ie if prefix = 'now'.
{ "resource": "" }
c20576
train
// ValueToTime Convert a value type to a time if possible
{ "resource": "" }
c20577
train
// ValueToTimeAnchor given a value, and a time anchor, conver to time. // use "now-3d" anchoring if has prefix "now".
{ "resource": "" }
c20578
train
// An insert to write to data source
{ "resource": "" }
c20579
train
// An inserter to write to data source
{ "resource": "" }
c20580
train
// Validate Must have 1 arg
{ "resource": "" }
c20581
train
// Must have 2 arguments, both must be able to be coerced to Number
{ "resource": "" }
c20582
train
// TableToString Table output a CREATE TABLE statement using mysql dialect.
{ "resource": "" }
c20583
train
// TypeFromString given a string, return data type
{ "resource": "" }
c20584
train
// NewFilePager creates default new FilePager
{ "resource": "" }
c20585
train
// WalkExecSource Provide ability to implement a source plan for execution
{ "resource": "" }
c20586
train
// NextScanner provides the next scanner assuming that each scanner // represents different file, and multiple files for single source
{ "resource": "" }
c20587
train
// NextFile gets next file
{ "resource": "" }
c20588
train
// Next iterator for next message, wraps the file Scanner, Next file abstractions
{ "resource": "" }
c20589
train
// Init Dialects have one time load-setup.
{ "resource": "" }
c20590
train
// WalkProjectionFinal walk the select plan to create final projection.
{ "resource": "" }
c20591
train
// WalkSourceSelect is a single source select
{ "resource": "" }
c20592
train
// WalkLiteralQuery Handle Literal queries such as "SELECT 1, @var;"
{ "resource": "" }
c20593
train
// The source column name
{ "resource": "" }
c20594
train
// CopyRewrite Create a new copy of this column for rewrite purposes removing alias
{ "resource": "" }
c20595
train
// Copy - deep copy, shared nothing
{ "resource": "" }
c20596
train
// SqlSelectFromPb take a protobuf select struct and conver to SqlSelect
{ "resource": "" }
c20597
train
// Finalize this Query plan by preparing sub-sources // ie we need to rewrite some things into sub-statements // - we need to share the join expression across sources
{ "resource": "" }
c20598
train
// Rewrite take current SqlSelect statement and re-write it
{ "resource": "" }
c20599
train
// Get a list of Un-Aliased Columns, ie columns with column // names that have NOT yet been aliased
{ "resource": "" }