Interface Cursor<T>

    • Method Detail

      • getFindPlan

        FindPlan getFindPlan()
        Gets a filter plan for the query.
        Returns:
        the filter plan
      • project

        <P> RecordStream<P> project​(Class<P> projectionType)
        Projects the result of one type into an Iterable of another type.
        Type Parameters:
        P - the type of the target objects.
        Parameters:
        projectionType - the projection type.
        Returns:
        java.lang.Iterable of projected objects.
      • join

        <Foreign,​Joined> RecordStream<Joined> join​(Cursor<Foreign> foreignCursor,
                                                         Lookup lookup,
                                                         Class<Joined> type)
        Performs a left outer join with a foreign cursor with the specified lookup parameters.

        It performs an equality match on the localField to the foreignField from the objects of the foreign cursor. If an input object does not contain the localField, the join treats the field as having a value of null for matching purposes.

        Type Parameters:
        Foreign - the type of the foreign object.
        Joined - the type of the joined object.
        Parameters:
        foreignCursor - the foreign cursor for the join.
        lookup - the lookup parameter for the join operation.
        type - the type of the joined record.
        Returns:
        a lazy iterable of joined objects.
        Since:
        2.1.0