_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c9900 | train | // SetValue sets the Key's value and recompute's its digest without allocating new memory.
// This allows the keys to be reusable. | {
"resource": ""
} | ||
c9901 | train | // Equals uses key digests to compare key equality. | {
"resource": ""
} | ||
c9902 | train | // String implements Stringer interface and returns string representation of key. | {
"resource": ""
} | ||
c9903 | train | // NewKey initializes a key from namespace, optional set name and user key.
// The set name and user defined key are converted to a digest before sending to the server.
// The server handles record identifiers by digest only. | {
"resource": ""
} | ||
c9904 | train | // NewKeyWithDigest initializes a key from namespace, optional set name and user key.
// The server handles record identifiers by digest only. | {
"resource": ""
} | ||
c9905 | train | // SetDigest sets a custom hash | {
"resource": ""
} | ||
c9906 | train | // NewBatchRead defines a key and bins to retrieve in a batch operation. | {
"resource": ""
} | ||
c9907 | train | // LValueToInterface converts a generic LValue to a native type | {
"resource": ""
} | ||
c9908 | train | // ictToString converts IndexCollectionType to string representations | {
"resource": ""
} | ||
c9909 | train | // NewWritePolicy initializes a new WritePolicy instance with default parameters. | {
"resource": ""
} | ||
c9910 | train | // NewPolicy generates a new BasePolicy instance with default values. | {
"resource": ""
} | ||
c9911 | train | // socketTimeout validates and then calculates the timeout to be used for the socket
// based on Timeout and SocketTimeout values. | {
"resource": ""
} | ||
c9912 | train | // Define The AerospikeBlob interface | {
"resource": ""
} | ||
c9913 | train | // Decoder is optional, and should be used manually | {
"resource": ""
} | ||
c9914 | train | // NewStatement initializes a new Statement instance. | {
"resource": ""
} | ||
c9915 | train | // SetAggregateFunction sets aggregation function parameters.
// This function will be called on both the server
// and client for each selected item. | {
"resource": ""
} | ||
c9916 | train | // Always set the taskID client-side to a non-zero random value | {
"resource": ""
} | ||
c9917 | train | // SetLevel sets logging level. Default is ERR. | {
"resource": ""
} | ||
c9918 | train | // Error logs a message if log level allows to do so. | {
"resource": ""
} | ||
c9919 | train | // Debug logs a message if log level allows to do so. | {
"resource": ""
} | ||
c9920 | train | // Should connection be put back into pool. | {
"resource": ""
} | ||
c9921 | train | // NewBatchPolicy initializes a new BatchPolicy instance with default parameters. | {
"resource": ""
} | ||
c9922 | train | // newSingleConnectionHeap creates a new heap with initial size. | {
"resource": ""
} | ||
c9923 | train | // DropIdleTail closes idle connection in tail.
// It will return true if tail connection was idle and dropped | {
"resource": ""
} | ||
c9924 | train | // Len returns the number of connections in the heap | {
"resource": ""
} | ||
c9925 | train | // DropIdle closes all idle connections. | {
"resource": ""
} | ||
c9926 | train | // Len returns the number of connections in all or a specific sub-heap.
// If hint is < 0 or invalid, then the total number of connections will be returned. | {
"resource": ""
} | ||
c9927 | train | // Copy partition map while reserving space for a new replica count. | {
"resource": ""
} | ||
c9928 | train | // naively validates the partition map | {
"resource": ""
} | ||
c9929 | train | /**
* Write records individually.
*/ | {
"resource": ""
} | ||
c9930 | train | /**
* Check existence of records in one batch.
*/ | {
"resource": ""
} | ||
c9931 | train | /**
* Read records in one batch.
*/ | {
"resource": ""
} | ||
c9932 | train | /**
* Read record header data in one batch.
*/ | {
"resource": ""
} | ||
c9933 | train | // NewRegisterTask initializes a RegisterTask with fields needed to query server nodes. | {
"resource": ""
} | ||
c9934 | train | // IsDone will query all nodes for task completion status. | {
"resource": ""
} | ||
c9935 | train | // Registers my luaList type to given L. | {
"resource": ""
} | ||
c9936 | train | // NewAtomicArray generates a new AtomicArray instance. | {
"resource": ""
} | ||
c9937 | train | // Get atomically retrieves an element from the Array.
// If idx is out of range, it will return nil | {
"resource": ""
} | ||
c9938 | train | // Set atomically sets an element in the Array.
// If idx is out of range, it will return an error | {
"resource": ""
} | ||
c9939 | train | // Length returns the array size. | {
"resource": ""
} | ||
c9940 | train | // PackList packs StringSlice as msgpack. | {
"resource": ""
} | ||
c9941 | train | // PackList packs IntSlice as msgpack. | {
"resource": ""
} | ||
c9942 | train | // PackList packs Uint64Slice as msgpack. | {
"resource": ""
} | ||
c9943 | train | // PackList packs Float32Slice as msgpack. | {
"resource": ""
} | ||
c9944 | train | // PackList packs Float64Slice as msgpack. | {
"resource": ""
} | ||
c9945 | train | // PackList packs any slice that implement the ListIter interface | {
"resource": ""
} | ||
c9946 | train | // PackJson packs json data | {
"resource": ""
} | ||
c9947 | train | // PackMap packs any map that implements the MapIter interface | {
"resource": ""
} | ||
c9948 | train | // PackBytes backs a byte array | {
"resource": ""
} | ||
c9949 | train | // PackInt64 packs an int64 | {
"resource": ""
} | ||
c9950 | train | // PackString packs a string | {
"resource": ""
} | ||
c9951 | train | // PackUInt64 packs a uint64 | {
"resource": ""
} | ||
c9952 | train | // Pack bool packs a bool value | {
"resource": ""
} | ||
c9953 | train | // PackFloat32 packs float32 value | {
"resource": ""
} | ||
c9954 | train | // PackFloat64 packs float64 value | {
"resource": ""
} | ||
c9955 | train | // cache uses the encoder and caches the packed operation for further use. | {
"resource": ""
} | ||
c9956 | train | // GetOpForBin creates read bin database operation. | {
"resource": ""
} | ||
c9957 | train | // PutOp creates set database operation. | {
"resource": ""
} | ||
c9958 | train | // AppendOp creates string append database operation. | {
"resource": ""
} | ||
c9959 | train | // PrependOp creates string prepend database operation. | {
"resource": ""
} | ||
c9960 | train | // AddOp creates integer add database operation. | {
"resource": ""
} | ||
c9961 | train | // NewMultiPolicy initializes a MultiPolicy instance with default values. | {
"resource": ""
} | ||
c9962 | train | // Get returns a buffer from the pool. If pool is empty, a new buffer of
// size initBufSize will be created and returned. | {
"resource": ""
} | ||
c9963 | train | // NewNode initializes a server node with connection parameters. | {
"resource": ""
} | ||
c9964 | train | // refreshSessionToken refreshes the session token if it has been expired | {
"resource": ""
} | ||
c9965 | train | // GetConnection gets a connection to the node.
// If no pooled connection is available, a new connection will be created, unless
// ClientPolicy.MaxQueueSize number of connections are already created.
// This method will retry to retrieve a connection in case the connection pool
// is empty, until timeout is reached. | {
"resource": ""
} | ||
c9966 | train | // getConnection gets a connection to the node.
// If no pooled connection is available, a new connection will be created. | {
"resource": ""
} | ||
c9967 | train | // connectionLimitReached return true if connection pool is fully serviced. | {
"resource": ""
} | ||
c9968 | train | // newConnection will make a new connection for the node. | {
"resource": ""
} | ||
c9969 | train | // makeConnectionForPool will try to open a connection until deadline.
// if no deadline is defined, it will only try for _DEFAULT_TIMEOUT. | {
"resource": ""
} | ||
c9970 | train | // getConnectionWithHint gets a connection to the node.
// If no pooled connection is available, a new connection will be created. | {
"resource": ""
} | ||
c9971 | train | // PutConnection puts back a connection to the pool.
// If connection pool is full, the connection will be
// closed and discarded. | {
"resource": ""
} | ||
c9972 | train | // IsActive Checks if the node is active. | {
"resource": ""
} | ||
c9973 | train | // AddAlias adds an alias for the node | {
"resource": ""
} | ||
c9974 | train | // Close marks node as inactive and closes all of its pooled connections. | {
"resource": ""
} | ||
c9975 | train | // Equals compares equality of two nodes based on their names. | {
"resource": ""
} | ||
c9976 | train | // MigrationInProgress determines if the node is participating in a data migration | {
"resource": ""
} | ||
c9977 | train | // initTendConn sets up a connection to be used for info requests.
// The same connection will be used for tend. | {
"resource": ""
} | ||
c9978 | train | // requestInfoWithRetry gets info values by name from the specified database server node.
// It will try at least N times before returning an error. | {
"resource": ""
} | ||
c9979 | train | // requestRawInfo gets info values by name from the specified database server node.
// It won't parse the results. | {
"resource": ""
} | ||
c9980 | train | // RequestStats returns statistics for the specified node as a map | {
"resource": ""
} | ||
c9981 | train | // sessionToken returns the session token for the node.
// It will return nil if the session has expired. | {
"resource": ""
} | ||
c9982 | train | // Rack returns the rack number for the namespace. | {
"resource": ""
} | ||
c9983 | train | // newPartitionByKey initializes a partition and determines the Partition Id
// from key digest automatically. It return the struct itself, and not the address | {
"resource": ""
} | ||
c9984 | train | // NewPartition generates a partition instance. | {
"resource": ""
} | ||
c9985 | train | // Equals checks equality of two partitions. | {
"resource": ""
} | ||
c9986 | train | // Writes the command for write operations | {
"resource": ""
} | ||
c9987 | train | // Writes the command for delete operations | {
"resource": ""
} | ||
c9988 | train | // Writes the command for touch operations | {
"resource": ""
} | ||
c9989 | train | // Writes the command for exist operations | {
"resource": ""
} | ||
c9990 | train | // Writes the command for getting metadata operations | {
"resource": ""
} | ||
c9991 | train | // Implements different command operations | {
"resource": ""
} | ||
c9992 | train | // Generic header write. | {
"resource": ""
} | ||
c9993 | train | // Header write for write operations. | {
"resource": ""
} | ||
c9994 | train | // String implements the Stringer interface.
// Returns string representation of record. | {
"resource": ""
} | ||
c9995 | train | /**
* Cycically extract a word of key material
* @param data the string to extract the data from
* @param off the current offset into the data
* @return the next word of material from data and the next offset into the data
*/ | {
"resource": ""
} | ||
c9996 | train | /**
* Key the Blowfish cipher
* @param key an array containing the key
*/ | {
"resource": ""
} | ||
c9997 | train | /**
* Perform the central password hashing step in the
* bcrypt scheme
* @param password the password to hash
* @param salt the binary salt to hash with the password
* @param log_rounds the binary logarithm of the number
* of rounds of hashing to apply
* @return an array containing the binary hashed password
*/ | {
"resource": ""
} | ||
c9998 | train | // NewMessage generates a new Message instance. | {
"resource": ""
} | ||
c9999 | train | // Resize changes the internal buffer size for the message. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.