Android.Database.CursorJoiner Class
Does a join on two cursors using the specified columns.

See Also: CursorJoiner Members

Syntax

[Android.Runtime.Register("android/database/CursorJoiner", DoNotGenerateAcw=true)]
public sealed class CursorJoiner : Java.Lang.Object, Java.Lang.IIterable, Java.Util.IIterator, IDisposable

Remarks

Does a join on two cursors using the specified columns. The cursors must already be sorted on each of the specified columns in ascending order. This joiner only supports the case where the tuple of key column values is unique.

Typical usage:

java Example

 CursorJoiner joiner = new CursorJoiner(cursorA, keyColumnsofA, cursorB, keyColumnsofB);
 for (CursorJointer.Result joinerResult : joiner) {
     switch (joinerResult) {
         case LEFT:
             // handle case where a row in cursorA is unique
             break;
         case RIGHT:
             // handle case where a row in cursorB is unique
             break;
         case BOTH:
             // handle case where a row with the same key is in both cursors
             break;
     }
 }
 

[Android Documentation]

Requirements

Namespace: Android.Database
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1