Class Query<R>

    • Field Detail

      • DFLT_PAGE_SIZE

        public static final int DFLT_PAGE_SIZE
        Default query page size.
        See Also:
        Constant Field Values
    • Method Detail

      • getPageSize

        public int getPageSize()
        Gets optional page size, if 0, then default is used.
        Returns:
        Optional page size.
      • setPageSize

        public Query<R> setPageSize​(int pageSize)
        Sets optional page size, if 0, then default is used.
        Parameters:
        pageSize - Optional page size.
        Returns:
        this for chaining.
      • isLocal

        public boolean isLocal()
        Returns true if this query should be executed on local node only.
        Returns:
        Local flag.
      • setLocal

        public Query<R> setLocal​(boolean loc)
        Sets whether this query should be executed on local node only.
        Parameters:
        loc - Local flag.
        Returns:
        this for chaining.
      • prepare

        protected int[] prepare​(int[] parts)
        Prepares the partitions.
        Parameters:
        parts - Partitions.