SetRecords<(Of <(<'T>)>)> Methods
The SetRecords<(Of <(<'T>)>)> type exposes the following members.
Methods
Name | Description | |
---|---|---|
![]() |
AsEnumerable |
Returns IEnumerable>ARecord< for the records of this set based on DefaultScanPolicy or filterExpression.
Note: The records' return order may vary between executions.
|
![]() |
BatchDelete<(Of <<'(R>)>>) |
Deletes records defined in primaryKeys.
(Inherited from SetRecords.) |
![]() |
BatchRead<(Of <<'(P>)>>) |
Return a collection of ARecord based on primaryKeys
|
![]() |
BatchWrite(IEnumerable<(Of <<'(T>)>>), BatchPolicy, BatchWritePolicy, ParallelOptions) |
Writes a collection of ARecord as a operation.
|
![]() |
BatchWrite(IEnumerable<(Of <<'(ARecord>)>>), BatchPolicy, BatchWritePolicy, ParallelOptions) |
Writes a collection of ARecord as a operation.
(Inherited from SetRecords.) |
![]() |
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.) |
![]() |
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.) |
![]() |
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.) |
![]() |
BatchWriteObject<(Of <<'(P, T>)>>) |
Writes a collection of T objects to this set.
(Inherited from SetRecords.) |
![]() |
ChangeRecordView |
Changes how records are displayed using the LinqPad [LINQPad.Extensions.Dump{T}(T)] method.
|
![]() |
Clone(Policy, WritePolicy, QueryPolicy, ScanPolicy) |
Clones the specified instance providing new policies, if provided.
(Inherited from SetRecords.) |
![]() |
Clone()()()() | (Inherited from SetRecords.) |
![]() |
CopyRecords(SetRecords, Func<(Of <<'(T, Object>)>>), WritePolicy, ParallelOptions) | |
![]() |
CopyRecords(ANamespaceAccess, String, Func<(Of <<'(T, Object>)>>), WritePolicy, ParallelOptions) | |
![]() |
CopyRecords<(Of <<'(C>)>>)(SetRecords<(Of <<'(C>)>>), Func<(Of <<'(T, Object>)>>), WritePolicy, ParallelOptions) | |
![]() |
CopyRecords<(Of <<'(C>)>>)(SetRecords<(Of <<'(C>)>>), WritePolicy, ParallelOptions) | |
![]() |
Count |
Placeholder for [System.Linq.Enumerable.Count{TSource}(IEnumerable{TSource})] (Inherited from SetRecords.) |
![]() |
CreateDigest |
Creates an Aerospike Digest byte array (always length of 20 bytes) based on value.
(Inherited from SetRecords.) |
![]() |
CreateIndex(String, String, IndexType) |
Creates a secondary index on this set for a bin https://docs.aerospike.com/server/guide/query
|
![]() |
CreateIndex(String, String, IndexType, IndexCollectionType, array<CTX>[]()[][]) |
Creates a secondary index on this set for a bin https://docs.aerospike.com/server/guide/query
|
![]() |
CreateTransaction |
Creates an new Aerospike transaction which is a copy of this set's namespace.
(Inherited from SetRecords.) |
![]() |
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.) |
![]() |
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.) |
![]() |
DetermineFKBins | (Inherited from SetRecords.) |
![]() |
DropIndex |
Drops a secondary index.
|
![]() |
Equals(Object) | (Inherited from SetRecords.) |
![]() |
Equals(ARecord) | (Inherited from SetRecords.) |
![]() |
Equals(SetRecords) | (Inherited from SetRecords.) |
![]() |
Exists |
Returns true if primary key exists
(Inherited from SetRecords.) |
![]() |
Export |
Exports the records in this set to a JSON file based on JsonExportStructure.
(Inherited from SetRecords.) |
![]() |
Finalize | (Inherited from Object.) |
![]() |
First(Exp) |
Returns the first record from the set based on DefaultQueryPolicy or filterExpression.
|
![]() |
First(Func<(Of <<'(T, Boolean>)>>), Exp) |
Returns the first record from the set based on DefaultScanPolicy or filterExpression.
|
![]() |
First(Func<(Of <<'(ARecord, Boolean>)>>), Exp) |
Returns the first record from the set based on DefaultScanPolicy or filterExpression.
(Inherited from SetRecords.) |
![]() |
FirstOrDefault(Exp) |
Returns the first record or null from the set based on DefaultQueryPolicy or filterExpression.
|
![]() |
FirstOrDefault(Func<(Of <<'(T, Boolean>)>>), Exp) |
Returns the first record or null from the set based on DefaultScanPolicy or filterExpression.
|
![]() |
FirstOrDefault(Func<(Of <<'(ARecord, Boolean>)>>), Exp) |
Returns the first record or null from the set based on DefaultScanPolicy or filterExpression.
(Inherited from SetRecords.) |
![]() |
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.) |
![]() |
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.) |
![]() |
Get(Object, array<String>[]()[][]) |
Returns the record based on the primary key
|
![]() |
Get(Object, Expression, array<String>[]()[][]) |
Returns the record based on the primary key
|
![]() |
GetEnumerator | |
![]() |
GetHashCode | (Inherited from SetRecords.) |
![]() |
GetRecords |
Gets all records in this set
(Inherited from SetRecords.) |
![]() |
GetType | (Inherited from Object.) |
![]() |
Import |
Imports a Export(String, Exp, Boolean) generated JSON file based on JsonExportStructure.
(Inherited from SetRecords.) |
![]() |
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.) |
![]() |
MemberwiseClone | (Inherited from Object.) |
![]() |
Operate |
Executes an Aerospike operation against the set based on the primary key.
(Inherited from SetRecords.) |
![]() |
OrderBy |
Placeholder for [System.Linq.Enumerable.OrderBy{TSource, TKey}(IEnumerable{TSource}, Func{TSource, TKey})] (Inherited from SetRecords.) |
![]() |
OrderByDescending |
Placeholder for [System.Linq.Enumerable.OrderByDescending{TSource, TKey}(IEnumerable{TSource}, Func{TSource, TKey})] (Inherited from SetRecords.) |
![]() |
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.) |
![]() |
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.) |
![]() |
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.) |
![]() |
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.) |
![]() |
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.) |
![]() |
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.) |
![]() |
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.) |
![]() |
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.) |
![]() |
Query(array<String>[]()[][]) |
Returns all the records based on the associated bins.
|
![]() |
Query(Exp, array<String>[]()[][]) |
Performs a Query(QueryPolicy, Statement) applying the expression filter.
|
![]() |
Query(Filter, array<String>[]()[][]) |
Performs a secondary index query using the provided Filter.
|
![]() |
Query(Filter, Exp, array<String>[]()[][]) |
Performs a secondary index query using the provided Filter and than apply the filter expression.
|
![]() |
Query(String, Filter, Exp, array<String>[]()[][]) |
Performs a secondary index query or expression query using the provided arguments.
(Inherited from SetRecords.) |
![]() |
Select<(Of <<'(TResult>)>>)(Func<(Of <<'(T, TResult>)>>)) |
Projects each element of an ARecord into a new form.
|
![]() |
Select<(Of <<'(TResult>)>>)(Func<(Of <<'(ARecord, TResult>)>>)) |
Projects each element of an ARecord into a new form.
(Inherited from SetRecords.) |
![]() |
Skip |
Skips the number of records from the set based on DefaultQueryPolicy or filterExpression.
|
![]() |
Take |
Returns the top number of records from the set based on DefaultQueryPolicy or filterExpression.
|
![]() |
ToArray | |
![]() |
ToJson |
Creates a Json Array of all records in the set based on the filterExpression, if provided.
(Inherited from SetRecords.) |
![]() |
ToList | |
![]() |
ToString | (Inherited from SetRecords.) |
![]() |
Truncate |
Truncates the Set
(Inherited from SetRecords.) |
![]() |
Where(Func<(Of <<'(T, Boolean>)>>)) |
Filters a collection based on predicate.
|
![]() |
Where(Func<(Of <<'(ARecord, Boolean>)>>)) |
Filters a collection based on predicate.
(Inherited from SetRecords.) |
![]() |
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.) |