Class QueryResult

    • Constructor Detail

      • QueryResult

        public QueryResult()
        Constructs a new blank QueryResult.
      • QueryResult

        public QueryResult​(Collection<? extends BoxDocument> documents)
        Constructs a new QueryResult initialized with the given documents.
        Parameters:
        documents - the intial documents
    • Method Detail

      • getNextCursor

        public long getNextCursor()
        Returns the nextCursor.
        Returns:
        the nextCursor
      • setNextCursor

        public QueryResult setNextCursor​(long nextCursor)
        Sets the next cursor.
        Parameters:
        nextCursor - the nextCursor to set
        Returns:
        this
      • updateNextCursor

        public QueryResult updateNextCursor​(BoxQuery query)
        Updates nextCursor according to the last document in the query result. If the result is empty, it reuses the cursor in the query.
        Parameters:
        query - the original query containing the cursor
        Returns:
        this