Class DefaultVertexParallelismInfo

    • Field Detail

      • PARALLELISM_AUTO_MAX

        public static final int PARALLELISM_AUTO_MAX
        The constant to use for the parallelism, if the system should use the number of currently available slots.
        See Also:
        Constant Field Values
    • Constructor Detail

      • DefaultVertexParallelismInfo

        public DefaultVertexParallelismInfo​(int parallelism,
                                            int maxParallelism,
                                            Function<Integer,​Optional<String>> rescaleMaxValidator)
        Create VertexParallelismInformation with max parallelism rescaling validation for a vertex.
        Parameters:
        parallelism - the vertex's parallelism
        maxParallelism - the vertex's max parallelism
        rescaleMaxValidator - the validation function to provide an error message if a max parallelism rescale is not allowed
      • DefaultVertexParallelismInfo

        public DefaultVertexParallelismInfo​(int minParallelism,
                                            int parallelism,
                                            int maxParallelism,
                                            Function<Integer,​Optional<String>> rescaleMaxValidator)