getCurrentKey

getCurrentKey(ordinal: Integer): Any;

The getCurrentKey method of the MergeIterator class retrieves the keys from a dictionary while iterating through the merged view and returns the value of a single key at the current position.

This method can be used to access the keys of an external key dictionary or to access key properties in a member key dictionary directly from the dictionary without having to access the member object itself. The ordinal parameter specifies the relative key by ordinal position of the iterator in the associated dictionary and should be a number in the range 1 through the number of keys in the dictionary.

When you use this method for filtering based on key conditions or populating list views with key data, judicious use of this method may result in performance improvements. (Performance improvements occur when you can avoid fetching objects from the server to access key properties.)