ATransaction Methods
The ATransaction type exposes the following members.
Methods
Name | Description | |
---|---|---|
![]() |
Abort |
Abort and rollback the given multi-record transaction.
Requires server version 8.0+ |
![]() |
AsEnumerable |
Returns IEnumerable>ARecord< for the records of this set based on DefaultScanPolicy or filterExpression.
Note: The records' return order may vary between executions.
(Inherited from ANamespaceAccess.) |
![]() |
BatchDelete<(Of <<'(R>)>>) |
Deletes records defined in primaryKeys.
(Inherited from ANamespaceAccess.) |
![]() |
BatchRead(IEnumerable<(Of <<'(Key>)>>), BatchPolicy, BatchReadPolicy, Expression, array<String>[]()[][], ARecord..::..DumpTypes, array<String>[]()[][]) |
Return a collection of [ARecord] based on primaryKeys (Inherited from ANamespaceAccess.) |
![]() |
BatchRead(IEnumerable<(Of <<'(ARecord>)>>), BatchPolicy, BatchReadPolicy, Expression, array<String>[]()[][], ARecord..::..DumpTypes, array<String>[]()[][]) |
Return a collection of [ARecord] based on records (Inherited from ANamespaceAccess.) |
![]() |
BatchRead<(Of <<'(P>)>>)(String, IEnumerable<(Of <<'(P>)>>), BatchPolicy, BatchReadPolicy, Expression, array<String>[]()[][], ARecord..::..DumpTypes, array<String>[]()[][]) |
Return a collection of ARecord based on primaryKeys (Inherited from ANamespaceAccess.) |
![]() |
BatchWrite<(Of <<'(P>)>>)(String, IEnumerable<(Of <<'(ValueTuple<(Of <<'(P, IEnumerable<(Of <<'(Bin>)>>)>)>>)>)>>), BatchPolicy, BatchWritePolicy, ParallelOptions) |
Writes a collection of items to setName.
(Inherited from ANamespaceAccess.) |
![]() |
BatchWrite<(Of <<'(P, V>)>>)(String, IEnumerable<(Of <<'(ValueTuple<(Of <<'(P, IDictionary<(Of <<'(String, V>)>>)>)>>)>)>>), BatchPolicy, BatchWritePolicy, ParallelOptions) |
Writes a collection of items to setName.
(Inherited from ANamespaceAccess.) |
![]() |
BatchWrite<(Of <<'(P, V>)>>)(String, IEnumerable<(Of <<'(ValueTuple<(Of <<'(P, IEnumerable<(Of <<'(ValueTuple<(Of <<'(String, V>)>>)>)>>)>)>>)>)>>), BatchPolicy, BatchWritePolicy, ParallelOptions) |
Writes a collection of items to setName.
(Inherited from ANamespaceAccess.) |
![]() |
BatchWriteObject<(Of <<'(P, T>)>>) |
Writes a collection of T objects to setName.
(Inherited from ANamespaceAccess.) |
![]() |
BatchWriteRecord<(Of <<'(R>)>>) |
Writes a collection of ARecord as a operation.
(Inherited from ANamespaceAccess.) |
![]() |
Clone |
Clones the specified instance providing new policies, if provided.
This will used the same transaction id as the original.
|
![]() |
Commit |
Attempt to commit the given multi-record transaction. First, the expected record versions are
sent to the server nodes for verification.If all nodes return success, the command is
committed. Otherwise, the transaction is retried based on CommitRetries.
Requires server version 8.0+ |
![]() |
CreateTransaction |
Creates an new Aerospike transaction.
|
![]() |
Equals(System.Object) | (Inherited from Object.) |
![]() |
Exists |
Determines if a set exists within this namespace.
(Inherited from ANamespaceAccess.) |
![]() |
Export |
Exports all the records in this namespace to a JSON file.
(Inherited from ANamespaceAccess.) |
![]() |
Finalize | (Inherited from Object.) |
![]() |
FromJson(String, String, String, String, WritePolicy, Nullable<(Of <<'(TimeSpan>)>>), Boolean, IList<(Of <<'(ARecord>)>>), Boolean) |
Converts a Json string into an ARecord which is than put into setName.
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, String, WritePolicy, Nullable<(Of <<'(TimeSpan>)>>), Boolean, IList<(Of <<'(ARecord>)>>), Boolean).
(Inherited from ANamespaceAccess.) |
![]() |
FromJson(String, String, Object, String, String, WritePolicy, Nullable<(Of <<'(TimeSpan>)>>), Boolean) |
Converts a Json string into an ARecord which is than put into setName.
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 ANamespaceAccess.) |
![]() |
Get |
Will retrieve a record based on the primaryKey.
(Inherited from ANamespaceAccess.) |
![]() |
GetAerospikeTxn |
Gets the aerospike Txn instance or Null
|
![]() |
GetHashCode | (Inherited from Object.) |
![]() |
GetRecords(String, array<String>[]()[][]) |
Gets all records in a set
(Inherited from ANamespaceAccess.) |
![]() |
GetRecords(String, String, array<String>[]()[][]) |
Gets all records in a namespace and/or set
(Inherited from ANamespaceAccess.) |
![]() |
GetSetName |
Gets the Aerospike Set Name based on the PK Digest.
(Inherited from ANamespaceAccess.) |
![]() |
GetType | (Inherited from Object.) |
![]() |
Import(String, String, WritePolicy, Nullable<(Of <<'(TimeSpan>)>>), Boolean, Int32, BatchPolicy, BatchWritePolicy, Boolean, CancellationToken) |
Imports a Export(String, Exp, Boolean) generated JSON file into a set.
(Inherited from ANamespaceAccess.) |
![]() |
Import(String, WritePolicy, Nullable<(Of <<'(TimeSpan>)>>), Boolean, Int32, BatchPolicy, BatchWritePolicy, Boolean, CancellationToken) |
Imports a Export(String, Exp, Boolean) generated JSON file into the originally exported set.
(Inherited from ANamespaceAccess.) |
![]() |
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, String, WritePolicy, Nullable<(Of <<'(TimeSpan>)>>), Boolean, IList<(Of <<'(ARecord>)>>), Boolean).
(Inherited from ANamespaceAccess.) |
![]() |
MemberwiseClone | (Inherited from Object.) |
![]() |
Put(ARecord, String, 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 ANamespaceAccess.) |
![]() |
Put(String, 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 ANamespaceAccess.) |
![]() |
Put(String, 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 ANamespaceAccess.) |
![]() |
Put(String, 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 ANamespaceAccess.) |
![]() |
Put<(Of <<'(V>)>>)(String, 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 ANamespaceAccess.) |
![]() |
Put<(Of <<'(T>)>>)(String, 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 ANamespaceAccess.) |
![]() |
Put<(Of <<'(T>)>>)(String, 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 ANamespaceAccess.) |
![]() |
Put<(Of <<'(K, V>)>>)(String, 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 ANamespaceAccess.) |
![]() |
RecordState(Key) | |
![]() |
RecordState(APrimaryKey) | |
![]() |
RecordState(ARecord) | |
![]() |
RecordState(String, Object) | |
![]() |
ToDump | |
![]() |
ToJson |
Creates a Json Array of all records in the set.
(Inherited from ANamespaceAccess.) |
![]() |
ToString | |
![]() |
Truncate(InfoPolicy, Nullable<(Of <<'(DateTime>)>>)) |
Truncates all the Sets in this namespace
(Inherited from ANamespaceAccess.) |
![]() |
Truncate(String, InfoPolicy, Nullable<(Of <<'(DateTime>)>>)) |
Truncates the Set
(Inherited from ANamespaceAccess.) |
![]() |
WriteObject<(Of <<'(T>)>>) |
Writes the instance where each field/property is a bin name and the associated value the bin's value.
and any of the "Put" methods.
(Inherited from ANamespaceAccess.) |