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