_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c10000
train
// Serialize returns a byte slice containing the message.
{ "resource": "" }
c10001
train
// calculates transactions per second
{ "resource": "" }
c10002
train
// Execute put and get on a server configured as multi-bin. This is the server default.
{ "resource": "" }
c10003
train
// Read record header data.
{ "resource": "" }
c10004
train
// NewExecuteTask initializes task with fields needed to query server nodes.
{ "resource": "" }
c10005
train
// NewBin generates a new Bin instance, specifying bin name and string value. // For servers configured as "single-bin", enter an empty name.
{ "resource": "" }
c10006
train
// dieIfError calls each callback in turn before printing the error via log.Fatalln.
{ "resource": "" }
c10007
train
// NewAtomicBool generates a new AtomicBoolean instance.
{ "resource": "" }
c10008
train
// Set atomically sets the boolean value.
{ "resource": "" }
c10009
train
// Or atomically applies OR operation to the boolean value.
{ "resource": "" }
c10010
train
//CompareAndToggle atomically sets the boolean value if the current value is equal to updated value.
{ "resource": "" }
c10011
train
// Registers my luaStream type to given L.
{ "resource": "" }
c10012
train
// NewLuaStream creates a LuaStream
{ "resource": "" }
c10013
train
// Create unique key map with specified order when map does not exist. // Use specified write mode when writing map items.
{ "resource": "" }
c10014
train
// ListSetOrderOp creates a set list order operation. // Server sets list order. Server returns null.
{ "resource": "" }
c10015
train
// ListAppendOp creates a list append operation. // Server appends values to end of list bin. // Server returns list size on bin name. // It will panic is no values have been passed.
{ "resource": "" }
c10016
train
// ListAppendWithPolicyOp creates a list append operation. // Server appends values to end of list bin. // Server returns list size on bin name. // It will panic is no values have been passed.
{ "resource": "" }
c10017
train
// ListInsertOp creates a list insert operation. // Server inserts value to specified index of list bin. // Server returns list size on bin name. // It will panic is no values have been passed.
{ "resource": "" }
c10018
train
// ListPopOp creates list pop operation. // Server returns item at specified index and removes item from list bin.
{ "resource": "" }
c10019
train
// ListPopRangeOp creates a list pop range operation. // Server returns items starting at specified index and removes items from list bin.
{ "resource": "" }
c10020
train
// ListPopRangeFromOp creates a list pop range operation. // Server returns items starting at specified index to the end of list and removes items from list bin.
{ "resource": "" }
c10021
train
// ListRemoveOp creates a list remove operation. // Server removes item at specified index from list bin. // Server returns number of items removed.
{ "resource": "" }
c10022
train
// ListRemoveByValueOp creates list remove by value operation. // Server removes the item identified by value and returns removed data specified by returnType.
{ "resource": "" }
c10023
train
// ListRemoveByValueListOp creates list remove by value operation. // Server removes list items identified by value and returns removed data specified by returnType.
{ "resource": "" }
c10024
train
// ListRemoveRangeOp creates a list remove range operation. // Server removes "count" items starting at specified index from list bin. // Server returns number of items removed.
{ "resource": "" }
c10025
train
// ListRemoveRangeFromOp creates a list remove range operation. // Server removes all items starting at specified index to the end of list. // Server returns number of items removed.
{ "resource": "" }
c10026
train
// ListSetOp creates a list set operation. // Server sets item value at specified index in list bin. // Server does not return a result by default.
{ "resource": "" }
c10027
train
// ListTrimOp creates a list trim operation. // Server removes items in list bin that do not fall into range specified by index // and count range. If the range is out of bounds, then all items will be removed. // Server returns number of elemts that were removed.
{ "resource": "" }
c10028
train
// ListClearOp creates a list clear operation. // Server removes all items in list bin. // Server does not return a result by default.
{ "resource": "" }
c10029
train
// ListSizeOp creates a list size operation. // Server returns size of list on bin name.
{ "resource": "" }
c10030
train
// ListGetOp creates a list get operation. // Server returns item at specified index in list bin.
{ "resource": "" }
c10031
train
// ListGetRangeOp creates a list get range operation. // Server returns "count" items starting at specified index in list bin.
{ "resource": "" }
c10032
train
// ListSortOp creates list sort operation. // Server sorts list according to sortFlags. // Server does not return a result by default.
{ "resource": "" }
c10033
train
// ListRemoveByIndexOp creates a list remove operation. // Server removes list item identified by index and returns removed data specified by returnType.
{ "resource": "" }
c10034
train
// ListRemoveByIndexRangeOp creates a list remove operation. // Server removes list items starting at specified index to the end of list and returns removed // data specified by returnType.
{ "resource": "" }
c10035
train
// ListRemoveByIndexRangeCountOp creates a list remove operation. // Server removes "count" list items starting at specified index and returns removed data specified by returnType.
{ "resource": "" }
c10036
train
// ListRemoveByRankOp creates a list remove operation. // Server removes list item identified by rank and returns removed data specified by returnType.
{ "resource": "" }
c10037
train
// ListRemoveByRankRangeOp creates a list remove operation. // Server removes list items starting at specified rank to the last ranked item and returns removed // data specified by returnType.
{ "resource": "" }
c10038
train
// ListGetByValueOp creates a list get by value operation. // Server selects list items identified by value and returns selected data specified by returnType.
{ "resource": "" }
c10039
train
// ListGetByValueListOp creates list get by value list operation. // Server selects list items identified by values and returns selected data specified by returnType.
{ "resource": "" }
c10040
train
// ListGetByIndexOp creates list get by index operation. // Server selects list item identified by index and returns selected data specified by returnType
{ "resource": "" }
c10041
train
// ListGetByIndexRangeOp creates list get by index range operation. // Server selects list items starting at specified index to the end of list and returns selected // data specified by returnType.
{ "resource": "" }
c10042
train
// ListGetByRankOp creates a list get by rank operation. // Server selects list item identified by rank and returns selected data specified by returnType.
{ "resource": "" }
c10043
train
// ListGetByRankRangeOp creates a list get by rank range operation. // Server selects list items starting at specified rank to the last ranked item and returns selected // data specified by returnType.
{ "resource": "" }
c10044
train
// NewScanPolicy creates a new ScanPolicy instance with default values.
{ "resource": "" }
c10045
train
// NewRemoveTask initializes a RemoveTask with fields needed to query server nodes.
{ "resource": "" }
c10046
train
// Get returns an element from the pool. // If the pool is empty, or the returned element is not usable, // nil or the result of the New function will be returned
{ "resource": "" }
c10047
train
// Put will add the elem back to the pool, unless the pool is full.
{ "resource": "" }
c10048
train
// NewClientPolicy generates a new ClientPolicy with default values.
{ "resource": "" }
c10049
train
// newConnection creates a connection on the network and returns the pointer // A minimum timeout of 2 seconds will always be applied. // If the connection is not established in the specified timeout, // an error will be returned
{ "resource": "" }
c10050
train
// NewConnection creates a TLS connection on the network and returns the pointer. // A minimum timeout of 2 seconds will always be applied. // If the connection is not established in the specified timeout, // an error will be returned
{ "resource": "" }
c10051
train
// Write writes the slice to the connection buffer.
{ "resource": "" }
c10052
train
// updateDeadline sets connection timeout for both read and write operations. // this function is called before each read and write operation. If deadline has passed, // the function will return a TIMEOUT error.
{ "resource": "" }
c10053
train
// SetTimeout sets connection timeout for both read and write operations.
{ "resource": "" }
c10054
train
// authenticateFast will send authentication information to the server.
{ "resource": "" }
c10055
train
// Login will send authentication information to the server.
{ "resource": "" }
c10056
train
// isIdle returns true if the connection has reached the idle deadline.
{ "resource": "" }
c10057
train
// refresh extends the idle deadline of the connection.
{ "resource": "" }
c10058
train
// GetObject reads a record for specified key and puts the result into the provided object. // The policy can be used to specify timeouts. // If the policy is nil, the default relevant policy will be used.
{ "resource": "" }
c10059
train
// BatchGetObject reads multiple record headers and bins for specified keys in one batch request. // The returned objects are in positional order with the original key array order. // If a key is not found, the positional object will not change, and the positional found boolean will be false. // The policy can be used ...
{ "resource": "" }
c10060
train
// ScanAllObjects reads all records in specified namespace and set from all nodes. // If the policy's concurrentNodes is specified, each server node will be read in // parallel. Otherwise, server nodes are read sequentially. // If the policy is nil, the default relevant policy will be used.
{ "resource": "" }
c10061
train
// scanNodeObjects reads all records in specified namespace and set for one node only, // and marshalls the results into the objects of the provided channel in Recordset. // If the policy is nil, the default relevant policy will be used. // The resulting records will be marshalled into the objChan. // objChan will be c...
{ "resource": "" }
c10062
train
// scanNodeObjects reads all records in specified namespace and set for one node only, // and marshalls the results into the objects of the provided channel in Recordset. // If the policy is nil, the default relevant policy will be used.
{ "resource": "" }
c10063
train
// QueryNodeObjects executes a query on all nodes in the cluster and marshals the records into the given channel. // The query executor puts records on the channel from separate goroutines. // The caller can concurrently pop objects. // // This method is only supported by Aerospike 3 servers. // If the policy is nil, t...
{ "resource": "" }
c10064
train
// QueryNodeObjects executes a query on a specific node and marshals the records into the given channel. // The caller can concurrently pop records off the channel. // // This method is only supported by Aerospike 3 servers. // If the policy is nil, the default relevant policy will be used.
{ "resource": "" }
c10065
train
// NewMapPolicy creates a MapPolicy with WriteMode. Use with servers before v4.3
{ "resource": "" }
c10066
train
// NewMapPolicyWithFlags creates a MapPolicy with WriteFlags. Use with servers v4.3+
{ "resource": "" }
c10067
train
// MapPutItemsOp creates map put items operation // Server writes each map item to map bin and returns map size. // // The required map policy dictates the type of map to create when it does not exist. // The map policy also specifies the mode used when writing items to the map.
{ "resource": "" }
c10068
train
// MapIncrementOp creates map increment operation. // Server increments values by incr for all items identified by key and returns final result. // Valid only for numbers. // // The required map policy dictates the type of map to create when it does not exist. // The map policy also specifies the mode used when writing...
{ "resource": "" }
c10069
train
// MapDecrementOp creates map decrement operation. // Server decrements values by decr for all items identified by key and returns final result. // Valid only for numbers. // // The required map policy dictates the type of map to create when it does not exist. // The map policy also specifies the mode used when writing...
{ "resource": "" }
c10070
train
// MapRemoveByKeyOp creates map remove operation. // Server removes map item identified by key and returns removed data specified by returnType.
{ "resource": "" }
c10071
train
// MapRemoveByKeyListOp creates map remove operation. // Server removes map items identified by keys and returns removed data specified by returnType.
{ "resource": "" }
c10072
train
// MapRemoveByValueOp creates map remove operation. // Server removes map items identified by value and returns removed data specified by returnType.
{ "resource": "" }
c10073
train
// MapRemoveByValueListOp creates map remove operation. // Server removes map items identified by values and returns removed data specified by returnType.
{ "resource": "" }
c10074
train
// MapRemoveByIndexOp creates map remove operation. // Server removes map item identified by index and returns removed data specified by returnType.
{ "resource": "" }
c10075
train
// MapRemoveByIndexRangeOp creates map remove operation. // Server removes map items starting at specified index to the end of map and returns removed // data specified by returnType.
{ "resource": "" }
c10076
train
// MapRemoveByIndexRangeCountOp creates map remove operation. // Server removes "count" map items starting at specified index and returns removed data specified by returnType.
{ "resource": "" }
c10077
train
// MapRemoveByRankOp creates map remove operation. // Server removes map item identified by rank and returns removed data specified by returnType.
{ "resource": "" }
c10078
train
// MapRemoveByRankRangeOp creates map remove operation. // Server removes map items starting at specified rank to the last ranked item and returns removed // data specified by returnType.
{ "resource": "" }
c10079
train
// MapRemoveByRankRangeCountOp creates map remove operation. // Server removes "count" map items starting at specified rank and returns removed data specified by returnType.
{ "resource": "" }
c10080
train
// MapGetByKeyOp creates map get by key operation. // Server selects map item identified by key and returns selected data specified by returnType.
{ "resource": "" }
c10081
train
// MapGetByKeyListOp creates a map get by key list operation. // Server selects map items identified by keys and returns selected data specified by returnType.
{ "resource": "" }
c10082
train
// MapGetByValueOp creates map get by value operation. // Server selects map items identified by value and returns selected data specified by returnType.
{ "resource": "" }
c10083
train
// MapGetByIndexOp creates map get by index operation. // Server selects map item identified by index and returns selected data specified by returnType.
{ "resource": "" }
c10084
train
// MapGetByIndexRangeOp creates map get by index range operation. // Server selects map items starting at specified index to the end of map and returns selected // data specified by returnType.
{ "resource": "" }
c10085
train
// MapGetByIndexRangeCountOp creates map get by index range operation. // Server selects "count" map items starting at specified index and returns selected data specified by returnType.
{ "resource": "" }
c10086
train
// MapGetByRankOp creates map get by rank operation. // Server selects map item identified by rank and returns selected data specified by returnType.
{ "resource": "" }
c10087
train
// MapGetByRankRangeOp creates map get by rank range operation. // Server selects map items starting at specified rank to the last ranked item and returns selected // data specified by returnType.
{ "resource": "" }
c10088
train
// MapGetByRankRangeCountOp creates map get by rank range operation. // Server selects "count" map items starting at specified rank and returns selected data specified by returnType.
{ "resource": "" }
c10089
train
// NewQueue creates a new queue with initial size.
{ "resource": "" }
c10090
train
// Offer adds an item to the queue unless the queue is full. // In case the queue is full, the item will not be added to the queue // and false will be returned
{ "resource": "" }
c10091
train
// Poll removes and returns an item from the queue. // If the queue is empty, nil will be returned.
{ "resource": "" }
c10092
train
// NewDropIndexTask initializes a task with fields needed to query server nodes.
{ "resource": "" }
c10093
train
// NewBlobValue accepts an AerospikeBlob interface, and automatically // converts it to a BytesValue. // If Encode returns an err, it will panic.
{ "resource": "" }
c10094
train
// Set updates the value of SyncVal with the passed argument
{ "resource": "" }
c10095
train
// Get returns the value inside the SyncVal
{ "resource": "" }
c10096
train
// GetSyncedVia returns the value returned by the function f.
{ "resource": "" }
c10097
train
// Update gets a function and passes the value of SyncVal to it. // If the resulting err is nil, it will update the value of SyncVal. // It will return the resulting error to the caller.
{ "resource": "" }
c10098
train
// NewAtomicInt generates a newVal AtomicInt instance.
{ "resource": "" }
c10099
train
// AddAndGet atomically adds the given value to the current value.
{ "resource": "" }