Class AbstractCompositeDocumentIterator

    • Field Detail

      • n

        public final int n
        The number of component iterators.
      • documentIterator

        public final DocumentIterator[] documentIterator
        The component document iterators.
      • indexIteratorsWithoutPositions

        protected int indexIteratorsWithoutPositions
        If indexIterator is not null, the number of index iterators without positions.
    • Constructor Detail

      • AbstractCompositeDocumentIterator

        protected AbstractCompositeDocumentIterator​(Index index,
                                                    Object arg,
                                                    DocumentIterator... documentIterator)
        Creates a new composite document iterator using a given list of component document iterators and a specified index.
        Parameters:
        index - an index that will constitute the only index for which this iterator will return intervals, or null to require the computation of the set of indices as the union of the indices of all component iterators.
        arg - an argument that will be passed to AbstractIntervalDocumentIterator.getIntervalIterator(Index, int, boolean, Object).
        documentIterator - the component iterators.
      • AbstractCompositeDocumentIterator

        protected AbstractCompositeDocumentIterator​(DocumentIterator... documentIterator)
        Creates a new composite document iterator using a given list of component document iterators.
        Parameters:
        documentIterator - the component iterators.