_id stringlengths 2 7 | text stringlengths 6 2.61k | title stringclasses 1
value |
|---|---|---|
c10000 | // Serialize returns a byte slice containing the message. | |
c10001 | // calculates transactions per second | |
c10002 | // Execute put and get on a server configured as multi-bin. This is the server default. | |
c10003 | // Read record header data. | |
c10004 | // NewExecuteTask initializes task with fields needed to query server nodes. | |
c10005 | // NewBin generates a new Bin instance, specifying bin name and string value.
// For servers configured as "single-bin", enter an empty name. | |
c10006 | // dieIfError calls each callback in turn before printing the error via log.Fatalln. | |
c10007 | // NewAtomicBool generates a new AtomicBoolean instance. | |
c10008 | // Set atomically sets the boolean value. | |
c10009 | // Or atomically applies OR operation to the boolean value. | |
c10010 | //CompareAndToggle atomically sets the boolean value if the current value is equal to updated value. | |
c10011 | // Registers my luaStream type to given L. | |
c10012 | // NewLuaStream creates a LuaStream | |
c10013 | // Create unique key map with specified order when map does not exist.
// Use specified write mode when writing map items. | |
c10014 | // ListSetOrderOp creates a set list order operation.
// Server sets list order. Server returns null. | |
c10015 | // 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. | |
c10016 | // 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. | |
c10017 | // 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. | |
c10018 | // ListPopOp creates list pop operation.
// Server returns item at specified index and removes item from list bin. | |
c10019 | // ListPopRangeOp creates a list pop range operation.
// Server returns items starting at specified index and removes items from list bin. | |
c10020 | // 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. | |
c10021 | // ListRemoveOp creates a list remove operation.
// Server removes item at specified index from list bin.
// Server returns number of items removed. | |
c10022 | // ListRemoveByValueOp creates list remove by value operation.
// Server removes the item identified by value and returns removed data specified by returnType. | |
c10023 | // ListRemoveByValueListOp creates list remove by value operation.
// Server removes list items identified by value and returns removed data specified by returnType. | |
c10024 | // ListRemoveRangeOp creates a list remove range operation.
// Server removes "count" items starting at specified index from list bin.
// Server returns number of items removed. | |
c10025 | // 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. | |
c10026 | // ListSetOp creates a list set operation.
// Server sets item value at specified index in list bin.
// Server does not return a result by default. | |
c10027 | // 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. | |
c10028 | // ListClearOp creates a list clear operation.
// Server removes all items in list bin.
// Server does not return a result by default. | |
c10029 | // ListSizeOp creates a list size operation.
// Server returns size of list on bin name. | |
c10030 | // ListGetOp creates a list get operation.
// Server returns item at specified index in list bin. | |
c10031 | // ListGetRangeOp creates a list get range operation.
// Server returns "count" items starting at specified index in list bin. | |
c10032 | // ListSortOp creates list sort operation.
// Server sorts list according to sortFlags.
// Server does not return a result by default. | |
c10033 | // ListRemoveByIndexOp creates a list remove operation.
// Server removes list item identified by index and returns removed data specified by returnType. | |
c10034 | // 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. | |
c10035 | // ListRemoveByIndexRangeCountOp creates a list remove operation.
// Server removes "count" list items starting at specified index and returns removed data specified by returnType. | |
c10036 | // ListRemoveByRankOp creates a list remove operation.
// Server removes list item identified by rank and returns removed data specified by returnType. | |
c10037 | // 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. | |
c10038 | // ListGetByValueOp creates a list get by value operation.
// Server selects list items identified by value and returns selected data specified by returnType. | |
c10039 | // ListGetByValueListOp creates list get by value list operation.
// Server selects list items identified by values and returns selected data specified by returnType. | |
c10040 | // ListGetByIndexOp creates list get by index operation.
// Server selects list item identified by index and returns selected data specified by returnType | |
c10041 | // 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. | |
c10042 | // ListGetByRankOp creates a list get by rank operation.
// Server selects list item identified by rank and returns selected data specified by returnType. | |
c10043 | // 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. | |
c10044 | // NewScanPolicy creates a new ScanPolicy instance with default values. | |
c10045 | // NewRemoveTask initializes a RemoveTask with fields needed to query server nodes. | |
c10046 | // 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 | |
c10047 | // Put will add the elem back to the pool, unless the pool is full. | |
c10048 | // NewClientPolicy generates a new ClientPolicy with default values. | |
c10049 | // 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 | |
c10050 | // 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 | |
c10051 | // Write writes the slice to the connection buffer. | |
c10052 | // 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. | |
c10053 | // SetTimeout sets connection timeout for both read and write operations. | |
c10054 | // authenticateFast will send authentication information to the server. | |
c10055 | // Login will send authentication information to the server. | |
c10056 | // isIdle returns true if the connection has reached the idle deadline. | |
c10057 | // refresh extends the idle deadline of the connection. | |
c10058 | // 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. | |
c10059 | // 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 ... | |
c10060 | // 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. | |
c10061 | // 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... | |
c10062 | // 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. | |
c10063 | // 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... | |
c10064 | // 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. | |
c10065 | // NewMapPolicy creates a MapPolicy with WriteMode. Use with servers before v4.3 | |
c10066 | // NewMapPolicyWithFlags creates a MapPolicy with WriteFlags. Use with servers v4.3+ | |
c10067 | // 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. | |
c10068 | // 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... | |
c10069 | // 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... | |
c10070 | // MapRemoveByKeyOp creates map remove operation.
// Server removes map item identified by key and returns removed data specified by returnType. | |
c10071 | // MapRemoveByKeyListOp creates map remove operation.
// Server removes map items identified by keys and returns removed data specified by returnType. | |
c10072 | // MapRemoveByValueOp creates map remove operation.
// Server removes map items identified by value and returns removed data specified by returnType. | |
c10073 | // MapRemoveByValueListOp creates map remove operation.
// Server removes map items identified by values and returns removed data specified by returnType. | |
c10074 | // MapRemoveByIndexOp creates map remove operation.
// Server removes map item identified by index and returns removed data specified by returnType. | |
c10075 | // 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. | |
c10076 | // MapRemoveByIndexRangeCountOp creates map remove operation.
// Server removes "count" map items starting at specified index and returns removed data specified by returnType. | |
c10077 | // MapRemoveByRankOp creates map remove operation.
// Server removes map item identified by rank and returns removed data specified by returnType. | |
c10078 | // 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. | |
c10079 | // MapRemoveByRankRangeCountOp creates map remove operation.
// Server removes "count" map items starting at specified rank and returns removed data specified by returnType. | |
c10080 | // MapGetByKeyOp creates map get by key operation.
// Server selects map item identified by key and returns selected data specified by returnType. | |
c10081 | // MapGetByKeyListOp creates a map get by key list operation.
// Server selects map items identified by keys and returns selected data specified by returnType. | |
c10082 | // MapGetByValueOp creates map get by value operation.
// Server selects map items identified by value and returns selected data specified by returnType. | |
c10083 | // MapGetByIndexOp creates map get by index operation.
// Server selects map item identified by index and returns selected data specified by returnType. | |
c10084 | // 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. | |
c10085 | // MapGetByIndexRangeCountOp creates map get by index range operation.
// Server selects "count" map items starting at specified index and returns selected data specified by returnType. | |
c10086 | // MapGetByRankOp creates map get by rank operation.
// Server selects map item identified by rank and returns selected data specified by returnType. | |
c10087 | // 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. | |
c10088 | // MapGetByRankRangeCountOp creates map get by rank range operation.
// Server selects "count" map items starting at specified rank and returns selected data specified by returnType. | |
c10089 | // NewQueue creates a new queue with initial size. | |
c10090 | // 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 | |
c10091 | // Poll removes and returns an item from the queue.
// If the queue is empty, nil will be returned. | |
c10092 | // NewDropIndexTask initializes a task with fields needed to query server nodes. | |
c10093 | // NewBlobValue accepts an AerospikeBlob interface, and automatically
// converts it to a BytesValue.
// If Encode returns an err, it will panic. | |
c10094 | // Set updates the value of SyncVal with the passed argument | |
c10095 | // Get returns the value inside the SyncVal | |
c10096 | // GetSyncedVia returns the value returned by the function f. | |
c10097 | // 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. | |
c10098 | // NewAtomicInt generates a newVal AtomicInt instance. | |
c10099 | // AddAndGet atomically adds the given value to the current value. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.