Logo Search packages:      
Sourcecode: db version File versions

com::sleepycat::collections::DataCursor::DataCursor ( DataView  view,
DataCursor[]  indexCursors,
JoinConfig  joinConfig,
boolean  closeIndexCursors 
) throws DatabaseException [inline, package]

Creates a join cursor.

Definition at line 98 of file DataCursor.java.

References com::sleepycat::collections::DataView::db, init(), and com::sleepycat::collections::DataView::isSecondary().

                                 {

        if (view.isSecondary()) {
            throw new IllegalArgumentException(
                "The primary collection in a join must not be a secondary " +
                "database");
        }
        Cursor[] cursors = new Cursor[indexCursors.length];
        for (int i = 0; i < cursors.length; i += 1) {
            cursors[i] = indexCursors[i].cursor.getCursor();
        }
        joinCursor = view.db.join(cursors, joinConfig);
        init(view, false, null, null);
        if (closeIndexCursors) {
            indexCursorsToClose = indexCursors;
        }
    }


Generated by  Doxygen 1.6.0   Back to index