_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c158100 | train | // NewInsertsQueryBuilder creates a new InsertsQueryBuilder. | {
"resource": ""
} | ||
c158101 | train | // NewUpdatesQueryBuilder creates a new UpdatesQueryBuilder. | {
"resource": ""
} | ||
c158102 | train | // NewDeletesQueryBuilder creates a new DeletesQueryBuilder. | {
"resource": ""
} | ||
c158103 | train | // FindHealthyTablet returns a random healthy tabletType tablet.
// Since we don't want to use them all, we require at least
// minHealthyRdonlyTablets servers to be healthy.
// May block up to -wait_for_healthy_rdonly_tablets_timeout. | {
"resource": ""
} | ||
c158104 | train | // Backup takes a db backup and sends it to the BackupStorage | {
"resource": ""
} | ||
c158105 | train | // RestoreFromBackup deletes all local data and restores anew from the latest backup. | {
"resource": ""
} | ||
c158106 | train | // NewTabletExecutor creates a new TabletExecutor instance | {
"resource": ""
} | ||
c158107 | train | // Open opens a connection to the master for every shard. | {
"resource": ""
} | ||
c158108 | train | // Validate validates a list of sql statements. | {
"resource": ""
} | ||
c158109 | train | // Execute applies schema changes | {
"resource": ""
} | ||
c158110 | train | // Close clears tablet executor states | {
"resource": ""
} | ||
c158111 | train | // NewMysqld creates a Mysqld object based on the provided configuration
// and connection parameters. | {
"resource": ""
} | ||
c158112 | train | // RunMysqlUpgrade will run the mysql_upgrade program on the current
// install. Will be called only when mysqld is running with no
// network and no grant tables. | {
"resource": ""
} | ||
c158113 | train | // Start will start the mysql daemon, either by running the
// 'mysqld_start' hook, or by running mysqld_safe in the background.
// If a mysqlctld address is provided in a flag, Start will run
// remotely. When waiting for mysqld to start, we will use
// the dba user. | {
"resource": ""
} | ||
c158114 | train | // startNoWait is the internal version of Start, and it doesn't wait. | {
"resource": ""
} | ||
c158115 | train | // wait is the internal version of Wait, that takes credentials. | {
"resource": ""
} | ||
c158116 | train | // execCmd searches the PATH for a command and runs it, logging the output.
// If input is not nil, pipe it to the command's stdin. | {
"resource": ""
} | ||
c158117 | train | // binaryPath does a limited path lookup for a command,
// searching only within sbin and bin in the given root. | {
"resource": ""
} | ||
c158118 | train | // MySQL 5.7 GA and up have deprecated mysql_install_db.
// Instead, initialization is built into mysqld. | {
"resource": ""
} | ||
c158119 | train | // RefreshConfig attempts to recreate the my.cnf from templates, and log and
// swap in to place if it's updated. It keeps a copy of the last version in case fallback is required.
// Should be called from a stable replica, server_id is not regenerated. | {
"resource": ""
} | ||
c158120 | train | // ReinitConfig updates the config file as if Mysqld is initializing. At the
// moment it only randomizes ServerID because it's not safe to restore a replica
// from a backup and then give it the same ServerID as before, MySQL can then
// skip transactions in the replication stream with the same server_id. | {
"resource": ""
} | ||
c158121 | train | // Teardown will shutdown the running daemon, and delete the root directory. | {
"resource": ""
} | ||
c158122 | train | // executeMysqlScript executes a .sql script from an io.Reader with the mysql
// command line tool. It uses the connParams as is, not adding credentials. | {
"resource": ""
} | ||
c158123 | train | // GetAppConnection returns a connection from the app pool.
// Recycle needs to be called on the result. | {
"resource": ""
} | ||
c158124 | train | // GetDbaConnection creates a new DBConnection. | {
"resource": ""
} | ||
c158125 | train | // GetAllPrivsConnection creates a new DBConnection. | {
"resource": ""
} | ||
c158126 | train | // Close will close this instance of Mysqld. It will wait for all dba
// queries to be finished. | {
"resource": ""
} | ||
c158127 | train | // VReplicationExec executes a vreplication command. | {
"resource": ""
} | ||
c158128 | train | // VReplicationWaitForPos waits for the specified position. | {
"resource": ""
} | ||
c158129 | train | // GetSrvKeyspaceNames is part of the srvtopo.Server interface. | {
"resource": ""
} | ||
c158130 | train | // GetSrvKeyspace is part of the srvtopo.Server interface. | {
"resource": ""
} | ||
c158131 | train | // NewSyncProducer creates a new SyncProducer using the given broker addresses and configuration. | {
"resource": ""
} | ||
c158132 | train | // NewClient creates a new Client. It connects to one of the given broker addresses
// and uses that broker to automatically fetch metadata on the rest of the kafka cluster. If metadata cannot
// be retrieved from any of the given broker addresses, the client is not created. | {
"resource": ""
} | ||
c158133 | train | // private broker management helpers
// registerBroker makes sure a broker received by a Metadata or Coordinator request is registered
// in the brokers map. It returns the broker that is registered, which may be the provided broker,
// or a previously registered Broker instance. You must hold the write lock before cal... | {
"resource": ""
} | ||
c158134 | train | // deregisterBroker removes a broker from the seedsBroker list, and if it's
// not the seedbroker, removes it from brokers map completely. | {
"resource": ""
} | ||
c158135 | train | // core metadata update logic | {
"resource": ""
} | ||
c158136 | train | // if no fatal error, returns a list of topics that need retrying due to ErrLeaderNotAvailable | {
"resource": ""
} | ||
c158137 | train | // NewConfig returns a new configuration instance with sane defaults. | {
"resource": ""
} | ||
c158138 | train | // NewAsyncProducer creates a new AsyncProducer using the given broker addresses and configuration. | {
"resource": ""
} | ||
c158139 | train | // singleton
// dispatches messages by topic | {
"resource": ""
} | ||
c158140 | train | // one per broker; also constructs an associated flusher | {
"resource": ""
} | ||
c158141 | train | // SetHandlerByMap defines mapping of Request types to MockResponses. When a
// request is received by the broker, it looks up the request type in the map
// and uses the found MockResponse instance to generate an appropriate reply.
// If the request type is not found in the map then nothing is sent. | {
"resource": ""
} | ||
c158142 | train | // SetNotifier set a function that will get invoked whenever a request has been
// processed successfully and will provide the number of bytes read and written | {
"resource": ""
} | ||
c158143 | train | // History returns a slice of RequestResponse pairs in the order they were
// processed by the broker. Note that in case of multiple connections to the
// broker the order expected by a test can be different from the order recorded
// in the history, unless some synchronization is implemented in the test. | {
"resource": ""
} | ||
c158144 | train | // Close terminates the broker blocking until it stops internal goroutines and
// releases all resources. | {
"resource": ""
} | ||
c158145 | train | // setHandler sets the specified function as the request handler. Whenever
// a mock broker reads a request from the wire it passes the request to the
// function and sends back whatever the handler function returns. | {
"resource": ""
} | ||
c158146 | train | // NewMockBrokerAddr behaves like newMockBroker but listens on the address you give
// it rather than just some ephemeral port. | {
"resource": ""
} | ||
c158147 | train | // NewMockBrokerListener behaves like newMockBrokerAddr but accepts connections on the listener specified. | {
"resource": ""
} | ||
c158148 | train | // Setup is run at the beginning of a new session, before ConsumeClaim | {
"resource": ""
} | ||
c158149 | train | // Connected returns true if the broker is connected and false otherwise. If the broker is not
// connected but it had tried to connect, the error from that connection attempt is also returned. | {
"resource": ""
} | ||
c158150 | train | //Close closes the broker resources | {
"resource": ""
} | ||
c158151 | train | //GetMetadata send a metadata request and returns a metadata response or error | {
"resource": ""
} | ||
c158152 | train | //GetConsumerMetadata send a consumer metadata request and returns a consumer metadata response or error | {
"resource": ""
} | ||
c158153 | train | //FindCoordinator sends a find coordinate request and returns a response or error | {
"resource": ""
} | ||
c158154 | train | //GetAvailableOffsets return an offset response or error | {
"resource": ""
} | ||
c158155 | train | //Produce returns a produce response or error | {
"resource": ""
} | ||
c158156 | train | //Fetch returns a FetchResponse or error | {
"resource": ""
} | ||
c158157 | train | //CommitOffset return an Offset commit reponse or error | {
"resource": ""
} | ||
c158158 | train | //FetchOffset returns an offset fetch response or error | {
"resource": ""
} | ||
c158159 | train | //JoinGroup returns a join group response or error | {
"resource": ""
} | ||
c158160 | train | //SyncGroup returns a sync group response or error | {
"resource": ""
} | ||
c158161 | train | //LeaveGroup return a leave group response or error | {
"resource": ""
} | ||
c158162 | train | //Heartbeat returns a heartbeat response or error | {
"resource": ""
} | ||
c158163 | train | //ListGroups return a list group response or error | {
"resource": ""
} | ||
c158164 | train | //DescribeGroups return describe group response or error | {
"resource": ""
} | ||
c158165 | train | //ApiVersions return api version response or error | {
"resource": ""
} | ||
c158166 | train | //CreateTopics send a create topic request and returns create topic response | {
"resource": ""
} | ||
c158167 | train | //DeleteTopics sends a delete topic request and returns delete topic response | {
"resource": ""
} | ||
c158168 | train | //CreatePartitions sends a create partition request and returns create
//partitions response or error | {
"resource": ""
} | ||
c158169 | train | //DeleteRecords send a request to delete records and return delete record
//response or error | {
"resource": ""
} | ||
c158170 | train | //DescribeAcls sends a describe acl request and returns a response or error | {
"resource": ""
} | ||
c158171 | train | //CreateAcls sends a create acl request and returns a response or error | {
"resource": ""
} | ||
c158172 | train | //DeleteAcls sends a delete acl request and returns a response or error | {
"resource": ""
} | ||
c158173 | train | //InitProducerID sends an init producer request and returns a response or error | {
"resource": ""
} | ||
c158174 | train | //AddPartitionsToTxn send a request to add partition to txn and returns
//a response or error | {
"resource": ""
} | ||
c158175 | train | //AddOffsetsToTxn sends a request to add offsets to txn and returns a response
//or error | {
"resource": ""
} | ||
c158176 | train | //EndTxn sends a request to end txn and returns a response or error | {
"resource": ""
} | ||
c158177 | train | //TxnOffsetCommit sends a request to commit transaction offsets and returns
//a response or error | {
"resource": ""
} | ||
c158178 | train | //DescribeConfigs sends a request to describe config and returns a response or
//error | {
"resource": ""
} | ||
c158179 | train | //AlterConfigs sends a request to alter config and return a response or error | {
"resource": ""
} | ||
c158180 | train | //DeleteGroups sends a request to delete groups and returns a response or error | {
"resource": ""
} | ||
c158181 | train | // sendAndReceiveV0SASLPlainAuth flows the v0 sasl auth NOT wrapped in the kafka protocol | {
"resource": ""
} | ||
c158182 | train | // sendAndReceiveV1SASLPlainAuth flows the v1 sasl authentication using the kafka protocol | {
"resource": ""
} | ||
c158183 | train | // mapToString returns a list of key-value pairs ordered by key.
// keyValSep separates the key from the value. elemSep separates each pair. | {
"resource": ""
} | ||
c158184 | train | // Messages convenience helper which returns either all the
// messages that are wrapped in this block | {
"resource": ""
} | ||
c158185 | train | // NewConsumerGroup creates a new consumer group the given broker addresses and configuration. | {
"resource": ""
} | ||
c158186 | train | // Close implements ConsumerGroup. | {
"resource": ""
} | ||
c158187 | train | // Consume implements ConsumerGroup. | {
"resource": ""
} | ||
c158188 | train | // Leaves the cluster, called by Close, protected by lock. | {
"resource": ""
} | ||
c158189 | train | // Drains messages and errors, ensures the claim is fully closed. | {
"resource": ""
} | ||
c158190 | train | // decodes a message set from a previously encoded bulk-message | {
"resource": ""
} | ||
c158191 | train | // NewConsumer creates a new consumer using the given broker addresses and configuration. | {
"resource": ""
} | ||
c158192 | train | //subscriptionConsumer ensures we will get nil right away if no new subscriptions is available | {
"resource": ""
} | ||
c158193 | train | //handleResponses handles the response codes left for us by our subscriptions, and abandons ones that have been closed | {
"resource": ""
} | ||
c158194 | train | // WithCustomHashFunction lets you specify what hash function to use for the partitioning | {
"resource": ""
} | ||
c158195 | train | // NewRandomPartitioner returns a Partitioner which chooses a random partition each time. | {
"resource": ""
} | ||
c158196 | train | // NewCustomHashPartitioner is a wrapper around NewHashPartitioner, allowing the use of custom hasher.
// The argument is a function providing the instance, implementing the hash.Hash32 interface. This is to ensure that
// each partition dispatcher gets its own hasher, to avoid concurrency issues by sharing an instance... | {
"resource": ""
} | ||
c158197 | train | // NewCustomPartitioner creates a default Partitioner but lets you specify the behavior of each component via options | {
"resource": ""
} | ||
c158198 | train | // NewHashPartitioner returns a Partitioner which behaves as follows. If the message's key is nil then a
// random partition is chosen. Otherwise the FNV-1a hash of the encoded bytes of the message key is used,
// modulus the number of partitions. This ensures that messages with the same key always end up on the
// sam... | {
"resource": ""
} | ||
c158199 | train | // NewReferenceHashPartitioner is like NewHashPartitioner except that it handles absolute values
// in the same way as the reference Java implementation. NewHashPartitioner was supposed to do
// that but it had a mistake and now there are people depending on both behaviours. This will
// all go away on the next major v... | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.