Class SetWindowFields.Window

    • Method Detail

      • documents

        public SetWindowFields.Output documents​(Object lower,
                                                Object upper)
        A window where the lower and upper boundaries are specified relative to the position of the current document read from the collection.
        Parameters:
        lower - the lower bound
        upper - the upper bound
        Returns:
        the Output
      • documents

        @Nullable
        @MorphiaInternal
        public List<Object> documents()
        Returns:
        the documents
        Developer note.
        This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
      • range

        public SetWindowFields.Output range​(Object lower,
                                            Object upper,
                                            TimeUnit unit)
        A window where the lower and upper boundaries are defined using a range of values based on the sortBy field in the current document.
        Parameters:
        lower - the lower bound
        upper - the upper bound
        unit - the unit to use
        Returns:
        the Output
      • range

        public SetWindowFields.Output range​(Object lower,
                                            Object upper)
        A window where the lower and upper boundaries are defined using a range of values based on the sortBy field in the current document.
        Parameters:
        lower - the lower bound
        upper - the upper bound
        Returns:
        the Output
      • range

        @Nullable
        @MorphiaInternal
        public List<Object> range()
        Returns:
        the range
        Developer note.
        This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
      • unit

        @Nullable
        @MorphiaInternal
        public TimeUnit unit()
        Returns:
        the unit
        Developer note.
        This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.