SetRecords..::..BatchWriteObject<(Of <(<'P, T>)>)> Method
Writes a collection of T objects to this set.
Namespace:
Aerospike.Database.LINQPadDriver.ExtensionsAssembly: Aerospike.Database.LINQPadDriver (in Aerospike.Database.LINQPadDriver.dll)
Syntax
public bool BatchWriteObject<P, T>( IEnumerable<ValueTuple<P, T>> objRecords, BatchPolicy batchPolicy, BatchWritePolicy batchWritePolicy, ParallelOptions parallelOptions, Func<string, string, Object, bool, Object> transform, string documentBinName )
Type Parameters
- P
- The Primary Key Type
- T
Parameters
- objRecords
- Type: IEnumerable<(Of <(<'ValueTuple<(Of <(<'P, T>)>)>>)>)>
- batchPolicy
- Type: BatchPolicy
- batchWritePolicy
- Type: BatchWritePolicy
- parallelOptions
- Type: ParallelOptions
- transform
- Type: Func<(Of <(<'String, String, Object, Boolean, Object>)>)>
A action that is called to perform customized transformation. First argument -- the name of the property/field within the instance/class Second argument -- the name of the bin (can be different from property/field name if BinNameAttribute is defined) Third argument -- the instance being transformed Fourth argument -- if true the instance is within another object. Returns the new transformed object or null to indicate that this instance should be skipped.
- documentBinName
- Type: String
If provided the record is created as a document and this will be the name of the bin.