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