Read objects from the space matching their IDs, the specified class type and routing key, with the
provided .
Note, if routing key is null and the cluster is partitioned, the operation will broadcast to all of the partitions.
FIFO is not supported by this operation - the results are always ordered in correlation with the input IDs array.
Declaration Syntax
C# | Visual Basic | Visual C++ | J# |
IReadByIdsResult<Object> ReadByIds( Type type, Object[] ids, Object routingKey, ITransaction tx, ReadModifiers modifiers )
Function ReadByIds ( _ type As Type, _ ids As Object(), _ routingKey As Object, _ tx As ITransaction, _ modifiers As ReadModifiers _ ) As IReadByIdsResult(Of Object)
IReadByIdsResult<Object^>^ ReadByIds( Type^ type, array<Object^>^ ids, Object^ routingKey, ITransaction^ tx, ReadModifiers modifiers )
IReadByIdsResult<Object> ReadByIds( Type type, Object[] ids, Object routingKey, ITransaction tx, ReadModifiers modifiers )
Parameters
- type (Type)
- The class.
- ids (array< Object >[]()[])
- The object IDs array.
- routingKey (Object)
- The routing key of the provided object IDs.
- tx (ITransaction)
- The transaction which this operation will participate in.
- modifiers (ReadModifiers)
- The read modifier to use (One or several of ).
Return Value
An IReadByIdsResult<(Of <(T>)>) reference containing the matched results.
Exceptions
Exception | Condition |
---|---|
ReadByIdsException | The operation had a failure. |