Class GetOptions

    • Method Detail

      • withExpiry

        public GetOptions withExpiry​(boolean expiry)
        If set to true, the get will fetch the expiry for the document as well and return it as part of the GetResult.
        Parameters:
        expiry - true if it should be fetched.
        Returns:
        the GetOptions to allow method chaining.
      • project

        public GetOptions project​(String path,
                                  String... morePaths)
        Allows to specify a custom list paths to fetch from the document instead of the whole.
        Parameters:
        path - a path that should be loaded if present.
        morePaths - additional paths that should be loaded if present.
        Returns:
        the GetOptions to allow method chaining.
      • project

        public GetOptions project​(Iterable<String> paths)
        Allows to specify a custom list paths to fetch from the document instead of the whole.
        Parameters:
        paths - each individual path that should be loaded if present.
        Returns:
        the GetOptions to allow method chaining.