_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c14000
train
// pk returns the primary key values indexed by the corresponding primary key column names.
{ "resource": "" }
c14001
train
// columns returns the struct field values indexed by their corresponding DB column names.
{ "resource": "" }
c14002
train
// getValue returns the field value for the given struct value.
{ "resource": "" }
c14003
train
// getField returns the reflection value of the field for the given struct value.
{ "resource": "" }
c14004
train
// indirect dereferences pointers and returns the actual value it points to. // If a pointer is nil, it will be initialized with a new value.
{ "resource": "" }
c14005
train
// NewExp generates an expression with the specified SQL fragment and the optional binding parameters.
{ "resource": "" }
c14006
train
// Escape specifies how a LIKE expression should be escaped. // Each string at position 2i represents a special character and the string at position 2i+1 is // the corresponding escaped version.
{ "resource": "" }
c14007
train
// String returns the constant of the // string representation of the OpType object.
{ "resource": "" }
c14008
train
// OpTypeFromString returns the constant // representing the passed in string
{ "resource": "" }
c14009
train
// GetFunction looks up a function by name and then init's it with the provided map. // returns ErrNotFound if the provided name was not registered.
{ "resource": "" }
c14010
train
// RegisteredFunctions returns a slice of the names of every function registered.
{ "resource": "" }
c14011
train
// Tail does the things
{ "resource": "" }
c14012
train
// Use Postgres logical decoding to retrieve the latest changes
{ "resource": "" }
c14013
train
// Stop sends a stop signal to the emitter and all the nodes, whether they are running or not. // the node's database adaptors are expected to clean up after themselves, and stop will block until // all nodes have stopped successfully
{ "resource": "" }
c14014
train
// Run the pipeline
{ "resource": "" }
c14015
train
// start error listener consumes all the events on the pipe's Err channel, and stops the pipeline // when it receives one
{ "resource": "" }
c14016
train
// emit the metrics
{ "resource": "" }
c14017
train
// apply maps a function f across all nodes of a pipeline
{ "resource": "" }
c14018
train
// Writer instantiates a Writer for use with working with the file.
{ "resource": "" }
c14019
train
// Construct will Marshal the Config and then Unmarshal it into a // named struct the generic map into a proper struct
{ "resource": "" }
c14020
train
// GetString returns value stored in the config under the given key, or // an empty string if the key doesn't exist, or isn't a string value
{ "resource": "" }
c14021
train
// Add exposes the ability for each versioned client to register itself for use
{ "resource": "" }
c14022
train
// NewLogManager creates a new instance of LogManager and initializes its namespace map by reading any // existing log files.
{ "resource": "" }
c14023
train
// CommitOffset verifies it does not contain an offset older than the current offset // and persists to the log.
{ "resource": "" }
c14024
train
// OffsetMap provides access to the underlying map containing the newest offset for every // namespace.
{ "resource": "" }
c14025
train
// NewestOffset loops over every offset and returns the highest one.
{ "resource": "" }
c14026
train
// WithURI defines the full connection string for the RabbitMQ connection
{ "resource": "" }
c14027
train
// WithSSL configures the database connection to connect via TLS.
{ "resource": "" }
c14028
train
// WithCACerts configures the RootCAs for the underlying TLS connection
{ "resource": "" }
c14029
train
// Connect satisfies the client.Client interface.
{ "resource": "" }
c14030
train
// String represents the pipelines as a string
{ "resource": "" }
c14031
train
// Config parses the provided configuration object and associates it with the // JS VM.
{ "resource": "" }
c14032
train
// Reader returns an error because this adaptor is currently not supported as a Source.
{ "resource": "" }
c14033
train
// Writer determines the which underlying writer to used based on the cluster's version.
{ "resource": "" }
c14034
train
// Has returns to two value from of the key lookup on a map.
{ "resource": "" }
c14035
train
// PutOffset sets the provided offset for the given Log.
{ "resource": "" }
c14036
train
// WithPath defines the directory where all data will be stored.
{ "resource": "" }
c14037
train
// WithMaxSegmentBytes defines the maximum limit a log segment can reach before needing // to create a new one.
{ "resource": "" }
c14038
train
// OldestOffset obtains the BaseOffset from the oldest segment on disk.
{ "resource": "" }
c14039
train
// Segments provides access to the underlying segments stored on disk.
{ "resource": "" }
c14040
train
// DeleteAll cleans out all data in the path.
{ "resource": "" }
c14041
train
// NewReader returns an io.Reader based on the provider offset.
{ "resource": "" }
c14042
train
// NewPipe creates a new Pipe. If the pipe that is passed in is nil, then this pipe will be treated as a source pipe that just serves to emit messages. // Otherwise, the pipe returned will be created and chained from the last member of the Out slice of the parent. This function has side effects, and will add // an Ou...
{ "resource": "" }
c14043
train
// Stop terminates the channels listening loop, and allows any timeouts in send to fail
{ "resource": "" }
c14044
train
// Send emits the given message on the 'Out' channel. the send Timesout after 100 ms in order to chaeck of the Pipe has stopped and we've been asked to exit. // If the Pipe has been stopped, the send will fail and there is no guarantee of either success or failure
{ "resource": "" }
c14045
train
// getOriginalDoc retrieves the original document from the database. // transporter has no knowledge of update operations, all updates work as wholesale document replaces
{ "resource": "" }
c14046
train
// validOp checks to see if we're an insert, delete, or update, otherwise the // document is skilled.
{ "resource": "" }
c14047
train
// WithURI defines the full connection string of the MongoDB database.
{ "resource": "" }
c14048
train
// WithTimeout overrides the DefaultSessionTimeout and should be parseable by time.ParseDuration
{ "resource": "" }
c14049
train
// WithReadPreference sets the MongoDB read preference based on the provided string.
{ "resource": "" }
c14050
train
// Connect tests the mongodb connection and initializes the mongo session
{ "resource": "" }
c14051
train
// Session fulfills the client.Client interface by providing a copy of the main mgoSession
{ "resource": "" }
c14052
train
// Connect initializes the file for IO
{ "resource": "" }
c14053
train
// Close closes the underlying file
{ "resource": "" }
c14054
train
// NewMetricsEvent creates a new metrics event
{ "resource": "" }
c14055
train
// NewErrorEvent are events sent to indicate a problem processing on one of the nodes
{ "resource": "" }
c14056
train
// NewNodeWithOptions initializes a Node with the required parameters and then applies // each OptionFunc provided.
{ "resource": "" }
c14057
train
// WithReader sets the client.Reader to be used to source data from.
{ "resource": "" }
c14058
train
// WithWriter sets the client.Writer to be used to send data to.
{ "resource": "" }
c14059
train
// WithParent sets the parent node and reconfigures the pipe.
{ "resource": "" }
c14060
train
// WithTransforms adds the provided transforms to be applied in the pipeline.
{ "resource": "" }
c14061
train
// WithCommitLog configures a CommitLog for the reader to persist messages.
{ "resource": "" }
c14062
train
// WithResumeTimeout configures how long to wait before all sink offsets match the // newest offset.
{ "resource": "" }
c14063
train
// WithWriteTimeout configures the timeout duration for a writer to return.
{ "resource": "" }
c14064
train
// WithOffsetManager configures an offset.Manager to track message offsets.
{ "resource": "" }
c14065
train
// WithCompactionInterval configures the duration for running log compaction.
{ "resource": "" }
c14066
train
// Start the adaptor as a source
{ "resource": "" }
c14067
train
// Stop this node's adaptor, and sends a stop to each child of this node
{ "resource": "" }
c14068
train
// Validate ensures that the node tree conforms to a proper structure. // Node trees must have at least one source, and one sink. // dangling transformers are forbidden. Validate only knows about default adaptors // in the adaptor package, it can't validate any custom adaptors
{ "resource": "" }
c14069
train
// Endpoints recurses down the node tree and accumulates a map associating node name with node type // this is primarily used with the boot event
{ "resource": "" }
c14070
train
// WithURI defines the full connection string of the RethinkDB database.
{ "resource": "" }
c14071
train
// WithSessionTimeout overrides the DefaultTimeout and should be parseable by time.ParseDuration
{ "resource": "" }
c14072
train
// WithWriteTimeout overrides the DefaultTimeout and should be parseable by time.ParseDuration
{ "resource": "" }
c14073
train
// WithReadTimeout overrides the DefaultTimeout and should be parseable by time.ParseDuration
{ "resource": "" }
c14074
train
// Close fulfills the Closer interface and takes care of cleaning up the rethink.Session
{ "resource": "" }
c14075
train
// From builds a message.Msg specific to an elasticsearch document
{ "resource": "" }
c14076
train
// WithConfirms attaches a channel to be able to acknowledge message processing.
{ "resource": "" }
c14077
train
// ID will attempt to convert the _id field into a string representation
{ "resource": "" }
c14078
train
// prepareDocument checks for an `_id` field and moves it to `id`.
{ "resource": "" }
c14079
train
// handleresponse takes the rethink response and turn it into something we can consume elsewhere
{ "resource": "" }
c14080
train
// NewEmitter creates a new emitter that will listen on the listen channel and use the emit EmitFunc // to process events
{ "resource": "" }
c14081
train
// Start the emitter
{ "resource": "" }
c14082
train
// Stop sends a stop signal and waits for the inflight posts to complete before exiting
{ "resource": "" }
c14083
train
// HTTPPostEmitter listens on the event channel and posts the events to an http server // Events are serialized into json, and sent via a POST request to the given Uri // http errors are logged as warnings to the console, and won't stop the Emitter
{ "resource": "" }
c14084
train
// GetAdaptor looks up an adaptor by name and then init's it with the provided Config. // returns ErrNotFound if the provided name was not registered.
{ "resource": "" }
c14085
train
// RegisteredAdaptors returns a slice of the names of every adaptor registered.
{ "resource": "" }
c14086
train
// Adaptors returns an non-initialized adaptor and is best used for doing assertions to see if // the Adaptor supports other interfaces
{ "resource": "" }
c14087
train
// NewSegment creates a new instance of Segment with the provided parameters // and initializes its NextOffset and Position should the file be non-empty.
{ "resource": "" }
c14088
train
// IsFull determines whether the current size of the segment is greater than or equal to the // maxBytes configured.
{ "resource": "" }
c14089
train
// ReadAt calls ReadAt on the underlying log.
{ "resource": "" }
c14090
train
// FindOffsetPosition attempts to find the provided offset position in the // Segment.
{ "resource": "" }
c14091
train
// Bytes converts Offset to the binary format to be stored on disk.
{ "resource": "" }
c14092
train
// WithURI defines the full connection string for the Postgres connection
{ "resource": "" }
c14093
train
// Connect initializes the Postgres connection
{ "resource": "" }
c14094
train
// ModeOpToByte converts the Mode and Op values into a single byte by performing bitwise operations. // Mode is stored in bits 0 - 1 // Op is stored in bits 2 - 4 // bits 5 - 7 are currently unused
{ "resource": "" }
c14095
train
// ReadEntry takes an io.Reader and returns a LogEntry.
{ "resource": "" }
c14096
train
// readKeyValue returns the key and value stored given the size and io.Reader.
{ "resource": "" }
c14097
train
// Apply fulfills the function.Function interface by transforming the incoming message with the configured // JavaScript function.
{ "resource": "" }
c14098
train
// Profile is getting the user data
{ "resource": "" }
c14099
train
// Emails is getting user's emails
{ "resource": "" }