Class DocumentTreeIterator

    • Constructor Detail

      • DocumentTreeIterator

        public DocumentTreeIterator​(CoreSession session,
                                    DocumentModel root)
        Creates the iterator given the tree root.
    • Method Detail

      • getNextNonEmptySequence

        protected Iterator<DocumentModel> getNextNonEmptySequence()
        Gets next non empty sequence from queue.

        This will remove from the queue all traversed sequences (the empty ones and the first not empty sequence found).

        Returns:
        the first non empty sequence or null if no one was found
      • reset

        public void reset()
        Resets the iterator back to the tree root and clear any cached data.