Aerospike.Database.LINQPadDriver.Extensions Namespace
Aerospike LINDPad Driver

SetRecords Methods

The SetRecords 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.
Public method BatchRead<(Of <<'(P>)>>)
Return a collection of ARecord based on primaryKeys
Public method BatchWrite(IEnumerable<(Of <<'(ARecord>)>>), BatchPolicy, BatchWritePolicy, ParallelOptions)
Writes a collection of ARecord as a operation.
Public method BatchWrite<(Of <<'(P>)>>)(IEnumerable<(Of <<'(ValueTuple<(Of <<'(P, IEnumerable<(Of <<'(Bin>)>>)>)>>)>)>>), BatchPolicy, BatchWritePolicy, ParallelOptions)
Writes a collection of items to this set.
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.
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.
Public method BatchWriteObject<(Of <<'(P, T>)>>)
Writes a collection of T objects to this set.
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.
Public method Clone()()()()
Public method Count
Placeholder for [System.Linq.Enumerable.Count{TSource}(IEnumerable{TSource})]
Public method CreateDigest
Creates an Aerospike Digest byte array (always length of 20 bytes) based on value.
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.
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.
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.
Public method Static member DetermineExpiration(TimeSpan)
Determines the Expiration in seconds of a record TTL
Public method Static member DetermineExpiration(DateTimeOffset)
Determines the Expiration based on when the record should be expired.
Public method Static member DetermineTTL
Determines the TTL based on an expiration date.
Public method DropIndex
Drops a secondary index.
Public method Equals(Object)
Public method Equals(ARecord)
Public method Equals(SetRecords)
Public method Exists
Returns true if primary key exists
Public method Export
Exports the records in this set to a JSON file based on JsonExportStructure.
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 <<'(ARecord, Boolean>)>>), Exp)
Returns the first record from the set based on DefaultScanPolicy or filterExpression.
Public method FirstOrDefault(Exp)
Returns the first record or null from the set based on DefaultQueryPolicy or filterExpression.
Public method FirstOrDefault(Func<(Of <<'(ARecord, Boolean>)>>), Exp)
Returns the first record or null from the set based on DefaultScanPolicy or filterExpression.
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).
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.
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
Public method GetRecords
Gets all records in this set
Public method GetType (Inherited from Object.)
Public method Import
Imports a Export(String, Exp, Boolean) generated JSON file based on JsonExportStructure.
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).
Protected method MemberwiseClone (Inherited from Object.)
Public method Operate
Executes an Aerospike operation against the set based on the primary key.
Public method OrderBy
Placeholder for [System.Linq.Enumerable.OrderBy{TSource, TKey}(IEnumerable{TSource}, Func{TSource, TKey})]
Public method OrderByDescending
Placeholder for [System.Linq.Enumerable.OrderByDescending{TSource, TKey}(IEnumerable{TSource}, Func{TSource, TKey})]
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.
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.
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.
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.
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.
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.
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.
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.
Public method Query(array<String>[]()[][])
Returns all the records based on the provided 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. See ASecondaryIndexAccess for directly using secondary indexes.
Public method Query(Filter, Exp, array<String>[]()[][])
Performs a secondary index query using the provided Filter and than apply the filter expression. See ASecondaryIndexAccess for directly using secondary indexes.
Public method Query(String, Filter, Exp, array<String>[]()[][])
Performs a secondary index query or expression query using the provided arguments.
Public method Select<(Of <<'(TResult>)>>)
Projects each element of an ARecord into a new form.
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.
Public method ToList
Public method ToString
Public method Truncate
Truncates the Set
Public method Where
Filters a collection based on predicate.
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)