Class GroupSelector<T>

    • Constructor Detail

      • GroupSelector

        public GroupSelector()
    • Method Detail

      • currentValue

        public abstract T currentValue()
        Get the group value of the current document N.B. this object may be reused, for a persistent version use copyValue()
      • copyValue

        public abstract T copyValue()
        Returns:
        a copy of the group value of the current document
      • setGroups

        public abstract void setGroups​(Collection<SearchGroup<T>> groups)
        Set a restriction on the group values returned by this selector If the selector is positioned on a document whose group value is not contained within this set, then advanceTo(int) will return GroupSelector.State.SKIP
        Parameters:
        groups - a set of SearchGroup objects to limit selections to