Read objects from the space matching their IDs, the specified class and routing key.
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<T> ReadByIds<T>( Object[] ids, Object routingKey )
Function ReadByIds(Of T) ( _ ids As Object(), _ routingKey As Object _ ) As IReadByIdsResult(Of T)
generic<typename T> IReadByIdsResult<T>^ ReadByIds( array<Object^>^ ids, Object^ routingKey )
Generic Template Parameters
- T
- The class.
Parameters
- ids (array<Object>[]()[][])
- The object IDs array.
- routingKey (Object)
- The routing key of the provided object IDs.
Return Value
An IReadByIdsResult<(Of <(<'T>)>)> containing the matched results.
Exceptions
Exception | Condition |
---|---|
ReadByIdsException | The operation had a failure. |