Aerospike LINDPad Driver

SetRecords<(Of <(<'T>)>)> Methods

The SetRecords<(Of <(<'T>)>)> type exposes the following members.

Methods


  Name Description
Public method AsEnumerable
Returns IEnumerable>ARecord< for the records of this set based on DefaultScanPolicy or filterExpression. Note: The records' return order may vary between executions.
Public method BatchDelete<(Of <<'(R>)>>)
Deletes records defined in primaryKeys.
(Inherited from SetRecords.)
Public method BatchRead<(Of <<'(P>)>>)
Return a collection of ARecord based on primaryKeys
Public method BatchWrite(IEnumerable<(Of <<'(T>)>>), BatchPolicy, BatchWritePolicy, ParallelOptions)
Writes a collection of ARecord as a operation.
Public method BatchWrite(IEnumerable<(Of <<'(ARecord>)>>), BatchPolicy, BatchWritePolicy, ParallelOptions)
Writes a collection of ARecord as a operation.
(Inherited from SetRecords.)
Public method BatchWrite<(Of <<'(P>)>>)(IEnumerable<(Of <<'(ValueTuple<(Of <<'(P, IEnumerable<(Of <<'(Bin>)>>)>)>>)>)>>), BatchPolicy, BatchWritePolicy, ParallelOptions)
Writes a collection of items to this set.
(Inherited from SetRecords.)
Public method BatchWrite<(Of <<'(P, V>)>>)(IEnumerable<(Of <<'(ValueTuple<(Of <<'(P, IEnumerable<(Of <<'(ValueTuple<(Of <<'(String, V>)>>)>)>>)>)>>)>)>>), BatchPolicy, BatchWritePolicy, ParallelOptions)
Writes a collection of items to this set.
(Inherited from SetRecords.)
Public method BatchWrite<(Of <<'(P, V>)>>)(IEnumerable<(Of <<'(ValueTuple<(Of <<'(P, IDictionary<(Of <<'(String, V>)>>)>)>>)>)>>), BatchPolicy, BatchWritePolicy, ParallelOptions)
Writes a collection of items to this set.
(Inherited from SetRecords.)
Public method BatchWriteObject<(Of <<'(P, T>)>>)
Writes a collection of T objects to this set.
(Inherited from SetRecords.)
Public method ChangeRecordView
Changes how records are displayed using the LinqPad [LINQPad.Extensions.Dump{T}(T)] method.
Public method Clone(Policy, WritePolicy, QueryPolicy, ScanPolicy)
Clones the specified instance providing new policies, if provided.
(Inherited from SetRecords.)
Public method Clone()()()() (Inherited from SetRecords.)
Public method CopyRecords(SetRecords, Func<(Of <<'(T, Object>)>>), WritePolicy, ParallelOptions)
Public method CopyRecords(ANamespaceAccess, String, Func<(Of <<'(T, Object>)>>), WritePolicy, ParallelOptions)
Public method CopyRecords<(Of <<'(C>)>>)(SetRecords<(Of <<'(C>)>>), Func<(Of <<'(T, Object>)>>), WritePolicy, ParallelOptions)
Public method CopyRecords<(Of <<'(C>)>>)(SetRecords<(Of <<'(C>)>>), WritePolicy, ParallelOptions)
Public method Count
Placeholder for [System.Linq.Enumerable.Count{TSource}(IEnumerable{TSource})]
(Inherited from SetRecords.)
Public method CreateDigest
Creates an Aerospike Digest byte array (always length of 20 bytes) based on value.
(Inherited from SetRecords.)
Public method CreateIndex(String, String, IndexType)
Creates a secondary index on this set for a bin https://docs.aerospike.com/server/guide/query
Public method CreateIndex(String, String, IndexType, IndexCollectionType, array<CTX>[]()[][])
Creates a secondary index on this set for a bin https://docs.aerospike.com/server/guide/query
Public method CreateTransaction
Creates an new Aerospike transaction which is a copy of this set's namespace.
(Inherited from SetRecords.)
Public method Delete(ARecord, WritePolicy)
Deletes a DB record based on the provided record. Note that if the namespace and/or set is different, this instances's values are used.
(Inherited from SetRecords.)
Public method Delete(Object, WritePolicy)
Deletes the DB record associated with the primary key. Note that if the namespace and/or set is different, this instances's values are used.
(Inherited from SetRecords.)
Protected method DetermineFKBins (Inherited from SetRecords.)
Public method DropIndex
Drops a secondary index.
Public method Equals(Object) (Inherited from SetRecords.)
Public method Equals(ARecord) (Inherited from SetRecords.)
Public method Equals(SetRecords) (Inherited from SetRecords.)
Public method Exists
Returns true if primary key exists
(Inherited from SetRecords.)
Public method Export
Exports the records in this set to a JSON file based on JsonExportStructure.
(Inherited from SetRecords.)
Protected method Finalize (Inherited from Object.)
Public method First(Exp)
Returns the first record from the set based on DefaultQueryPolicy or filterExpression.
Public method First(Func<(Of <<'(T, Boolean>)>>), Exp)
Returns the first record from the set based on DefaultScanPolicy or filterExpression.
Public method First(Func<(Of <<'(ARecord, Boolean>)>>), Exp)
Returns the first record from the set based on DefaultScanPolicy or filterExpression.
(Inherited from SetRecords.)
Public method FirstOrDefault(Exp)
Returns the first record or null from the set based on DefaultQueryPolicy or filterExpression.
Public method FirstOrDefault(Func<(Of <<'(T, Boolean>)>>), Exp)
Returns the first record or null from the set based on DefaultScanPolicy or filterExpression.
Public method FirstOrDefault(Func<(Of <<'(ARecord, Boolean>)>>), Exp)
Returns the first record or null from the set based on DefaultScanPolicy or filterExpression.
(Inherited from SetRecords.)
Public method FromJson(String, String, String, WritePolicy, Nullable<(Of <<'(TimeSpan>)>>), Boolean)
Converts a Json string into an ARecord which is than put into this set. Each top-level property in the Json is translated into a bin and value. Json Arrays and embedded objects are transformed into an Aerospike List or Map<string,object>. Note: If the Json string is an Json Array, each element is treated as a separate record. If the Json string is a Json Object, the following behavior occurs: If jsonBinName is provided, the Json object is treated as an Aerospike document which will be associated with that bin. if jsonBinName is null, each json property in that Json object is treated as a separate bin/value. You can also insert individual records by calling FromJson(String, String, String, WritePolicy, Nullable<(Of <<'(TimeSpan>)>>), Boolean).
(Inherited from SetRecords.)
Public method FromJson(String, Object, String, String, WritePolicy, Nullable<(Of <<'(TimeSpan>)>>), Boolean)
Converts a Json string into an ARecord which is than put into this set. Each top-level property in the Json is translated into a bin and value. Json Arrays and embedded objects are transformed into an Aerospike List or Map<string,object>. Note: If jsonBinName is provided the Json item will completely be placed into this bin as its' value.
(Inherited from SetRecords.)
Public method Get(Object, array<String>[]()[][])
Returns the record based on the primary key
Public method Get(Object, Expression, array<String>[]()[][])
Returns the record based on the primary key
Public method GetEnumerator
Public method GetHashCode (Inherited from SetRecords.)
Public method GetRecords
Gets all records in this set
(Inherited from SetRecords.)
Public method GetType (Inherited from Object.)
Public method Import
Imports a Export(String, Exp, Boolean) generated JSON file based on JsonExportStructure.
(Inherited from SetRecords.)
Public method ImportJsonFile
This will import a Json file and convert it into a DB record for update into the DB. Each line in the file is treated as a new DB record. Each top-level property in the Json is translated into a bin and value. Json Arrays and embedded objects are transformed into an Aerospike List or Map<string,object>. Note: If the Json string is a Json Object, the following behavior occurs: If jsonBinName is provided, the Json object is treated as an Aerospike document which will be associated with that bin. if jsonBinName is null, each json property in that Json object is treated as a separate bin/value. You can also insert individual records by calling FromJson(String, String, String, WritePolicy, Nullable<(Of <<'(TimeSpan>)>>), Boolean).
(Inherited from SetRecords.)
Protected method MemberwiseClone (Inherited from Object.)
Public method Operate
Executes an Aerospike operation against the set based on the primary key.
(Inherited from SetRecords.)
Public method OrderBy
Placeholder for [System.Linq.Enumerable.OrderBy{TSource, TKey}(IEnumerable{TSource}, Func{TSource, TKey})]
(Inherited from SetRecords.)
Public method OrderByDescending
Placeholder for [System.Linq.Enumerable.OrderByDescending{TSource, TKey}(IEnumerable{TSource}, Func{TSource, TKey})]
(Inherited from SetRecords.)
Public method Put(ARecord, WritePolicy, Nullable<(Of <<'(TimeSpan>)>>))
Puts (Writes) a DB record based on the provided record including Expiration. Note that if the namespace and/or set is different, this instances's values are used, except in the case where the primary key is a digest. In these cases, an InvalidOperationException is thrown.
(Inherited from SetRecords.)
Public method Put(Object, String, Object, WritePolicy, Nullable<(Of <<'(TimeSpan>)>>))
Puts (writes) a bin to the DB record. Note that if the namespace and/or set is different, this instances's values are used.
(Inherited from SetRecords.)
Public method Put(Object, String, String, WritePolicy, Nullable<(Of <<'(TimeSpan>)>>))
Puts (writes) a bin to the DB record. Note that if the namespace and/or set is different, this instances's values are used.
(Inherited from SetRecords.)
Public method Put(Object, IEnumerable<(Of <<'(Bin>)>>), WritePolicy, Nullable<(Of <<'(TimeSpan>)>>))
Put (Writes) a DB record based on the provided key and bin values. Note that if the namespace and/or set is different, this instances's values are used.
(Inherited from SetRecords.)
Public method Put<(Of <<'(V>)>>)(Object, IDictionary<(Of <<'(String, V>)>>), WritePolicy, Nullable<(Of <<'(TimeSpan>)>>))
Puts (Writes) a DB record based on the provided key and bin values. Note that if the namespace and/or set is different, this instances's values are used.
(Inherited from SetRecords.)
Public method Put<(Of <<'(T>)>>)(Object, String, IList<(Of <<'(T>)>>), WritePolicy, Nullable<(Of <<'(TimeSpan>)>>))
Puts (writes) a bin to the DB record. Note that if the namespace and/or set is different, this instances's values are used.
(Inherited from SetRecords.)
Public method Put<(Of <<'(T>)>>)(Object, String, IEnumerable<(Of <<'(T>)>>), WritePolicy, Nullable<(Of <<'(TimeSpan>)>>))
Puts (writes) a bin to the DB record. Note that if the namespace and/or set is different, this instances's values are used.
(Inherited from SetRecords.)
Public method Put<(Of <<'(K, V>)>>)(Object, String, IDictionary<(Of <<'(K, V>)>>), WritePolicy, Nullable<(Of <<'(TimeSpan>)>>))
Puts (writes) a bin to the DB record. Note that if the namespace and/or set is different, this instances's values are used.
(Inherited from SetRecords.)
Public method Query(array<String>[]()[][])
Returns all the records based on the associated bins.
Public method Query(Exp, array<String>[]()[][])
Performs a Query(QueryPolicy, Statement) applying the expression filter.
Public method Query(Filter, array<String>[]()[][])
Performs a secondary index query using the provided Filter.
Public method Query(Filter, Exp, array<String>[]()[][])
Performs a secondary index query using the provided Filter and than apply the filter expression.
Public method Query(String, Filter, Exp, array<String>[]()[][])
Performs a secondary index query or expression query using the provided arguments.
(Inherited from SetRecords.)
Public method Select<(Of <<'(TResult>)>>)(Func<(Of <<'(T, TResult>)>>))
Projects each element of an ARecord into a new form.
Public method Select<(Of <<'(TResult>)>>)(Func<(Of <<'(ARecord, TResult>)>>))
Projects each element of an ARecord into a new form.
(Inherited from SetRecords.)
Public method Skip
Skips the number of records from the set based on DefaultQueryPolicy or filterExpression.
Public method Take
Returns the top number of records from the set based on DefaultQueryPolicy or filterExpression.
Public method ToArray
Public method ToJson
Creates a Json Array of all records in the set based on the filterExpression, if provided.
(Inherited from SetRecords.)
Public method ToList
Public method ToString (Inherited from SetRecords.)
Public method Truncate
Truncates the Set
(Inherited from SetRecords.)
Public method Where(Func<(Of <<'(T, Boolean>)>>))
Filters a collection based on predicate.
Public method Where(Func<(Of <<'(ARecord, Boolean>)>>))
Filters a collection based on predicate.
(Inherited from SetRecords.)
Public method WriteObject<(Of <<'(T>)>>)
Writes the instance where each field/property is a bin name and the associated value the bin's value. BinNameAttribute which allows you to use this name instead of the property/field name. BinIgnoreAttribute which will ignore the property/field name (not written to the DB)
(Inherited from SetRecords.)